CP-104UL User’s Manual 4-Port Serial Board for Universal PCI Bus Fourth Edition, June 2008 www.moxa.com/product 2008 Moxa Inc., all rights reserved. Reproduction without permission is prohibited.
CP-104UL User’s Manual The product described in this manual is furnished under a license agreement and may be used only in accordance with the terms of that agreement. Copyright Notice Copyright 2008 Moxa Inc. All rights reserved. Reproduction in any form without permission is prohibited. Trademarks MOXA is a registered trademark of Moxa Inc. All other trademarks or registered marks in this manual belong to their respective manufacturers.
Moxa Internet Services Customer satisfaction is our number one concern. To ensure that customers receive the full benefit of our products, Moxa Internet Services has been set up to provide technical support, driver updates, product information, and user’s manual updates. The following services are provided: E-mail for technical support address support@moxa.com.tw World Wide Web (WWW) site for product information address http://www.moxa.com or http://www.moxa.com.
Table of Contents 1 Introduction................................................................................. 1-2 Overview...................................................................................................................................... 1-2 A Smart Multiport Async Solution ....................................................................................... 1-2 Board Applications ......................................................................................................
1 1 Introduction Overview A Smart Multiport Async Solution The CP-104UL board is designed for the 32-bit PCI bus with Plug and Play feature. These boards offer 4 RS-232 serial ports for connecting terminals, modems, printers, scanners, cash registers, bar code readers, keypads, numeric displays, electrical scales, data acquisition equipment, and many other serial devices for the PC and compatible systems.
Introduction Operating System Support The CP-104UL board supports Windows 2000/XP/2003, Windows NT, Windows 95/98, DOS, FreeBSD, SCO, and Linux. For more detail installation guide, please refer to www.moxa.com. Moxa Serial Comm Tool For application development, Moxa provides an easy-to-use serial communication library (PComm) under Windows 2000/XP/2003 and Windows 95/98/NT.
Package Checklist You should find the following items in the CP-104UL board package: z CP-104UL 4-port serial board z Documentation and Software CD that contains drivers for Windows 2000/XP/2003, Windows NT, Windows 95/98, DOS, FreeBSD, SCO, and Linux.
Introduction Installation Guide This section gives a brief summary of how to install the CP-104UL board under each supported operating system. The installation is simple and involves the following stages: Check the PCI BIOS settings. Install the CP-104UL board. See Chapter 2, “Hardware Installation.” ↓ Install the software from the diskette. Configure the driver for the board and ports. See the respective OS section in Chapter 3, “Software Installation.” ↓ Connect the devices with the cable.
2 2 Hardware Installation The installation of the CP-104UL board involves both hardware and software. Software installation is discussed in the next chapter. In this chapter, we discuss hardware installation. The no-switch-no-jumper CP-104UL board’s IRQ number and I/O addresses are assigned automatically by the PCI BIOS. For this reason, the board MUST be plugged in before installing the driver software. Installing the CP-104UL board Step 1: Power off the PC.
3 3 Software Installation In this chapter, the driver software installation, configuration, and driver update/removal procedures are described for various operating systems, including Windows 2003, Windows 2000/XP, Windows NT, Windows 95/98, DOS, SCO, and Linux. Before proceeding with the software installation, be sure to first complete the hardware installation discussed in the previous chapter.
2. The Welcome to the Found New Hardware Wizard window will open automatically. Select Install from a list or specific location (Advanced) and click on Next to continue. 3. Select Search for the best driver in these locations., check Include this location in the search, and then click on Browse. You should be able to locate the \Software\Win2K-XP2003 folder on the software CD. Click on Next to continue.
Software Installation 4. Wait while the installation wizard searches. The next window that opens cautions you that although this software hasn’t passed Windows Logo testing, this driver has already been tested and been shown that it can support Windows OS. Click on Continue Anyway to proceed. 5. Wait while the driver software is installed. The next window shows the model number of the board, and indicates that Windows has completed the driver installation.
6. The Found New Hardware Wizard window will open to help you install the driver for Moxa Port 0. Select Install from a list or specific location (Advanced). Click on Next to continue. 7. Select Search for the best driver in these locations., check Include this location in the search, and then click on Browse. You should be able to locate the \Software\Win2K-XP2003 folder on the software CD. Click on Next to continue. 8. Wait while the installation wizard searches.
Software Installation although this software hasn’t passed Windows Logo testing, this driver has already been tested and been shown that it can support Windows OS. Click on Continue Anyway to proceed. 9. Wait while the port driver is being installed. Click on Finish to continue with the rest of the installation procedures. 10. Repeat steps 6 to 9, until the port driver installation for every port is completed.
How to Check the Installation There are three ways to check the installation of the CP-168U Series board. Using Device Manager 1. Use your mouse to position the cursor over your desktop’s My computer icon, click the right mouse button, and then select Properties. 2. When the System Properties window opens, click on the Hardware tab, and then click on Device Manager. 3.
Software Installation 1. Click on a specific port from the CP-168U Series Installation window, and then click on [Port Setting] to open the Port X dialog box. 2. 3. Select a COM number for the port from the Port Number pull-down list. Check the Auto Enumerating COM Number check-box to have subsequent ports mapped to continuous COM numbers. For example, if COM 3 is assigned to Port 1, then COM 4 will be automatically assigned to Port 2. Select an Rx FIFO Trigger from the Rx FIFO Level pull-down list.
High Middle Low 6. CP-104UL v2 Tx FIFO Rx FIFO 128 120 64 60 1 1 CP-104UL v1 Tx FIFO Rx FIFO 64 56 32 28 1 1 Unit: Bytes Click [OK] in the Port X dialog box to confirm the port settings, and then click [OK] in the Property dialog box to complete the port settings. Using PComm The PComm Diagnostic program is a very useful tool for checking the status of Moxa’s multiport boards. It provides internal and external testing of IRQ, TxD/RxD, UART, CTS/RTS, DTR/DSR, DTR/DCD, etc.
Software Installation Installing the Driver The following procedure shows how to install the CP-168U driver for the first time under Windows 2000 and Windows XP. First make sure the board or boards have already been plugged into the system’s PCI or PCI-X slot(s). Windows 2000 Windows XP 1. Windows 2000 can auto-detect new devices, 1. and activate the Found New Hardware function to install a device driver for Plug and Play devices. 2. Click on Next to continue. 3.
5. Wait while the installation wizard searches. The next window that opens cautions you that although this software hasn’t passed Windows Logo testing, this driver has already been tested and been shown that it can support Windows OS. Click on Continue Anyway to proceed. The next window shows the model number of the board, and indicates that Windows has completed the driver installation. Click on Finish to continue with the rest of the installation procedure. 5.
Software Installation 8. The next window shows the model number of the board, and indicates that Windows has completed the driver installation. Click on Finish to continue with the rest of the installation procedure. 9. The next Welcome to the Found New Hardware Wizard window to open starts the port installation stage. Click on Next to continue. 10. Select Search for a suitable driver for my 7. The next Welcome to the Found New Hardware Wizard window that opens starts the port installation procedure.
device [recommended], and then click on Next to continue. 11. Select Specify a location and then click on Next to continue. Windows Logo testing, this driver has already been tested and been shown that it can support Windows OS. Click on Continue Anyway to proceed. 10. Wait while the installation wizard searches. 12. Insert the Moxa Driver CD into the CD-ROM drive, and then specify the location of the file 11. Wait while the wizard installs the software.
Software Installation Finish to install the board’s second port. 14. After all files have been copied to the system, the Completing the Found New Hardware 13. Repeat the above procedure (Step7 to Step Wizard window will open to indicate that it 12) for the rest of the board’s ports. The last has finished installing “Port 0.” Click on window to open completes installation of Finish to install the board’s second port. Port 7. 15.
If the driver installation was successful, you will be able to see the model number of the CP-168U board listed under Multi-port serial adapters. You may also expand the Ports (COM & LPT) item to check the status of the COM ports. If you see a question mark on top of the icon, then the installation might have a problem. Check the Event Log to determine the reason for the problem.
Software Installation the system will prompt you to take care of port configuration, which is discussed in this section. 1. Click on a specific port from the CP-168U Series Installation window, and then click on [Port Setting] to open the Port X dialog box. 2. 3. Select a COM number for the port from the Port Number pull-down list. Check the Auto Enumerating COM Number check-box to have subsequent ports mapped to continuous COM numbers.
High Middle Low 6. CP-104UL v2 Tx FIFO Rx FIFO 128 120 64 60 1 1 CP-104UL v1 Tx FIFO Rx FIFO 64 56 32 28 1 1 Unit: Bytes Click [OK] in the Port X dialog box to confirm the port settings, and then click [OK] in the Property dialog box to complete the port settings. Moxa PComm Utility This utility, which comes with Moxa PComm Lite, provides a convenient way to diagnose problems with Moxa boards, and provides internal and external testing of IRQ, TxD/RxD, UART, CTS/RTS, DTR/DSR, DTR/DCD, etc.
Software Installation Select the Hardware tab, and then click on Device Manager. Use the mouse to place the cursor over the CP-168U Series board under Multiport serial adapters, and then click the right mouse button. Select the Uninstall… option. Windows 2000 Windows XP Click OK to proceed with the un-installation of the board.
Windows 2000 Windows XP The Device Manager window will automatically refresh to show that the driver and ports for the CP-168U Series board have been removed. Windows 95/98 The Windows 95/98 driver supports up to 128 serial ports, from COM1 to COM128.
Software Installation Installing the Driver Thanks to Windows 95/98’s Plug and Play capability, you can easily plug the CP-168U board into an available PCI slot, and then get to work right away with very little installation effort. Windows 95/98 will automatically detect the presence of the new board, and prompt you to install the software driver. You simply need to have the driver CD available to complete the installation process.
Install the Universal PCI or PCI board in the system Start Windows 95/98 to detect the board Driver installed before? Yes No Install the driver from the driver CD. See the section, “First Time Driver Installation” Configure the port. See the section, “Port Configuration” The CP-168U board’s ports should be ready to work. See the section, “Board and Ports Ready” First Time Driver Installation This stage gives the steps for installing the CP-168U board driver for the first time.
Software Installation 1. Upon detecting the first new CP-168U Series board, Windows 95/98 will automatically display a New hardware found message box, and then display the following dialog boxes. Click the Next button to proceed. Windows 95 Windows 98 2. Click on [Other Locations]. 2. Select [Display a list...] and then click on [Next].
3. Type E:\Software\Win9x\Windows.95 in the Location input box, and then click [OK] from the Select Other Location window. The system will start reading the files from the CD. 3. Select Other Devices and then click on [Next]. 4. Click on [Finish]. 4. Click on [Have Disk]. 5. Type E:\Win9x\Windows.95 and click [OK]. The system will start reading the files from the CD.
Software Installation 6. Click on [Next]. 7. Click on [Next]. Board and Port Ready Board and Port Ready for Windows 95 and Windows 98 are slightly different. In finishing this stage, the driver installation will be complete. Windows 95 Windows 98 After the port configuration, you can immediately After the port configuration, click on [Finish]. The use the COM ports of the CP-168U board without COM ports of the CP-168U board can be used restarting Windows 95. without restarting Windows 98.
NOTE If an error message similar to “CP-168U board(BusNo=x, DevNo=x, Port1=COMx) interrupt number is invalid!” pops up, refer to the “Troubleshooting” chapter for solutions. If you want to add more boards after installing the driver, simply plug the additional CP-168U board into an empty PCI slot, and Windows 95/98 will automatically detect the newly plugged board. Skip to Port Configuration to take care of port settings.
Software Installation 2. Click on the desired CP-168U board, and then click on [Properties]. 3. Select the [Ports Configuration] tab, click on the specific port, and then click on the [Port Setting] button. 4. Check the Auto Enumerating COM Name check-box to assign continuous COM numbers for subsequent ports. For example, if COM3 is assigned to Port 1, then COM4 will be automatically assigned to Port 2. Select an Rx FIFO Trigger from the Rx FIFO Level pull-down list.
7. 8. To complete the update, click [OK] in the Port X dialog box, click [OK] in the CP-168U board Properties dialog box, and then click [OK] on the Device Manager tab. Restart the system to activate the latest configuration. Updating the Driver This section shows how to update the Windows 95/98 driver. 1. 2. Open [Control Panel], click on the [System] icon, and select the [Device Manager] tab. Click on the Moxa CP-168U board and then click on [Properties].
Software Installation 3. Select the [Driver] tab, and click on [Update Driver...]. 4. Click on [Have Disk...] and type the path of the new driver. 5. Insert the driver CD into the CD-ROM drive, and then click [OK] in the Install from Disk window. The system will automatically prompt you to restart the system. Click [Yes] to restart the system, or [No] if you want to reboot the system later. 6. Removing the Driver This section explains how to remove the CP-168U board driver. 1. 2.
3. Click [Yes] in the following message box to confirm that you want to remove the driver. 4. Click [OK] in the Add/Remove Programs Properties dialog box. Windows NT Windows NT supports up to 256 serial ports, from COM1 to COM256. To fully utilize Windows NT’s multi-process and multi-thread advanced features, pure 32-bit Windows NT device drivers were developed for the CP-168U board and other Moxa multiport boards. The drivers conform to the Win32 COMM API standard.
Software Installation Installing the Driver First Time Driver Installation The following procedure shows how to install the CP-168U driver for the first time. First make sure the board or boards are already plugged into the system’s PCI slot(s). 1. 2. 3. 4. 5. Log into NT as Administrator. Copy the folder Windows.nt located under \Software\WinNT on the software CD, to your computer’s hard disk (under the C: drive, for example).
8. Select the just installed CP-168U board from the Board Type pull-down list, click on a specific port item, and then click on the [Port Setting] button to open the Port X window. 9. Select a COM number for the specific port from Port Number pull-down list. 10. Check the Auto Enumerating COM Number check-box to have subsequent ports mapped to continuous COM numbers. For example, if COM3 is assigned to Port 1, then COM4 will be automatically assigned to Port 2. 11.
Software Installation 13. Click [OK] in the Port X dialog box to confirm the port settings, and then click [OK] in the Property dialog box to complete the port settings and return to the Moxa Smartio/Industio Configuration Panel dialog box. The configured CP-168U board will now appear in the Moxa Smartio/Industio Configuration Panel dialog box, as shown below. 14.
Æ [Moxa Utility] Æ [Moxa Smartio/Industio Configuration Panel] Æ [Property], and then refer to the instructions in the previous section, “First Time Driver Installation.” 1. 2. Open the [Control Panel], click on the [Network] icon, and select the [Adapters] tab. Click on Moxa Smartio/Industio Family Adapter from the Network Adapters list to highlight it, and then click on [Properties] to open the Moxa Smartio/Industio Configuration Panel dialog box to change port settings and advanced FIFO configuration.
Software Installation Configuring Another CP-168U Board In this section, we explain how to configure another Moxa CP-168U board that is already installed. Up to four CP-168U boards can be installed in one system under Windows NT, provided sufficient system resources are available.
Updating the Driver Take the following steps to update the CP-168U board driver. 1. 2. 3. 4. 5. 6. Open [Control Panel], click on the [Network] icon, and select the [Adapters] tab. Click on Moxa Smartio/Industio Family Adapter from the Network Adapter list. Click the [Remove] button in the Network dialog box. Click the [Close] button in the Network dialog box. Restart the system. Refer to the instructions given in the “First Time Driver Installation” section to install the new driver.
Software Installation DOS Moxa DOS API-232 is a software package that assists users to develop and/or debug programs for serial communications. This section will show you how to install the package, how to set up the driver, and how to load or unload the driver.
2. After the installation is complete, a message window will open to ask if you want to run the SETUP.EXE file. It is strongly recommended that you press Y to run this SETUP.EXE file. Setting up the Driver The following steps are using CP-134U Series as an example. This section does not illustrate all the convenient functions of the setup program that you would see during the configuration process. Press F1 to refer to the on-line help instructions if necessary. 1. Run the BIN\SETUP.EXE file.
Software Installation 2. Press Enter to select the proper model name, in this case, CP-134U Series. 3. Press PgDn to configure the CP-134U’s port settings, including port number, flow control, etc. You can enter/modify each port’s settings now. These displayed values are the port’s initial values as the driver is loaded.
NOTE Up to now you have completed the configuration for CP-134U Series board. You might skip this step and go directly to step 4 if you need not change any setting or configure any board. 4. Press F10 to save the modifications and exit the SETUP program. Legends Some noticeable fields and functions are explained below. Port number This is actually the port ID of each port. The application software will refer to the port by its port number (ID). A duplicated port number is not allowed.
Software Installation Loading the Driver Having completed the setup, now you can load the driver BIN\DP-DRV.EXE at the DOS prompt. The driver will detect the board you installed automatically. If the board(s) is(are) detected, a message similar to below will show: Smartio/Industio Family DOS driver Version 1.5 Setup driver … CP-134U series (Bus= x ,Dev=y) : OK! Device driver setup O.K. It means that the CP-134U Series driver is installed properly.
Warning: loading /lib/modules/2.4.20-8/kernel/drivers/char/mxser.o will taint the kernel: no license See http://www.tux.org/lkml/#export-tainted for information about tainted modules Moxa Smartio/Industio family driver version 1.7 Tty devices major number = 30, callout devices major number = 35 Found Moxa CP-168U series board(BusNo=2,DevNo=13) Module mxser loaded, with warnings 5. You can use Moxa diagnostic utility to verify the driver status. # cd /moxa/mxser/utility/diag # .
Software Installation /tmp/moxa/mxintall /tmp/moxa/sco.tar 3. # cd/tmp/mxinstall # ./mxinstall 4. The window shown below will open next. Press any key to continue. Copyright© 2008 Moxa Technologies Co., Ltd. All Rights Reserved. Moxa Smartio Family Device Driver Installation (Ver. 1.6) For SCO UNIX System V/386 Release 3.2 Tar files, please wait…..O.K. Press any key to continue 5. The Basic Configuration window will open next.
C104 PCI Series CP-104U Series CP-168U Series CP-104JU Series 7. Some basic information of this board will be shown next, such as I/O address, Bus No., Device No. Since you selected the PCI board you installed, the resource was assigned to this board by the SCO system. PCI Boards Selecting 1 I/O Addr= AC00, BusNo=2, DevNo=13 Enter: Select 8. ESC: Exit Press Enter to return to the main screen. Smartio Family Basic Configuration Board No. Board Type I/O Address Interrupt Bus/Dev No.
Software Installation 12. The window shown below will open next. ----------------------------------------[Message]---------------------------------------------Do you want to rebuild the system? (y/n) Rebuilding kernel. Please wait…. 13. After the system is rebuilt, the system will return to shell command. You can use Moxa Smartio Multiport Serial Board now.
4 4 Serial Programming Tools Moxa supports a class of easy to use, yet powerful serial programming libraries and communication troubleshooting utilities under Windows NT/2000/XP/2003 and Windows 95/98. Use these Moxa Serial Programming Tools to decrease your software development time. In the following sections, we describe the installation of the library, and the utilities supported for various programming platforms.
external testing of IRQ, TxD/RxD, UART, CTS/RTS, DTR/DSR, DTR/DCD, etc. It allows the user to check the function of both software and hardware. To run the Diagnostic program, click on [Start]Æ[Program]Æ[PComm Lite]Æ[Diagnostic].
Serial Programming Tools Monitor (for Moxa boards under Windows NT/2000/XP/2003) A useful port status monitoring program allows you to monitor data transmission of selected Moxa COM ports. It monitors data transmission/receiving throughput, and communication line status, with data updated and displayed on the screen at regular time intervals. Click on a specific port to see a graph of the current communication parameters and status of that port.
Terminal Emulator Terminal Emulator can be used to connect to various ports to see if data transmission is functioning correctly. Terminal Emulator features multi-windows, and supports VT100 and ANSI terminal types. You can transfer data interactively, send patterns periodically, and transfer files using ASCII, XMODEM, YMODEM, ZMODEM, and KERMIT protocols. To run Terminal Emulator, click on [Start]Æ[Program]Æ[PComm Lite]Æ[Terminal Emulator].
5 5 Connection Cables and Cable Wiring In this chapter, we illustrate the possible connections and cable wiring for the CP-104UL boards. In serial data communications, DTE stands for Data Terminal Equipment, such as a PC’s COM1/2, serial printers, and terminals, and DCE stands for Data Communication Equipment, such as modems.
DB-9/M Pin Assignment (CBL-M44M9x4-50, Opt4-M9B) MODE PIN RS232 1 DCD 2 RxD 3 TxD 4 DTR 5 GND 6 DSR 7 RTS 8 CTS D B 2 5 / M Pin Assignment (CBL-M44M25x4-50) MODE PIN RS-232 2 TxD 3 RxD 4 RTS 5 CTS 6 DSR 7 GND 8 DCD 20 DTR ent (Opt4-RJ45B) MODE PIN 1 2 3 4 5 6 7 8 5-2 CP-104UL User’s Manual RS-232 DSR RTS GND TxD RxD DCD CTS DTR RJ 45 Pi n As si gn m
6 6 Troubleshooting Common CP-104UL board errors and possible corresponding solutions are given below. If the problem still cannot be solved after following these suggestions, contact your dealer or Moxa for help, or use the Problem Report Form at the end of this manual to report problems to your dealer to receive faster technical support. General Troubleshooting 1. The Moxa PCI board cannot be detected by the Moxa driver while installing the driver. Hardware causes and solutions: A.
1. After the system reboots, the error message, “Another driver in the system, which did not report its resources, has already claimed the interrupt used by xxx.” appears in the Event Log. This indicates the Moxa board was found, but the IRQ conflicts with another adapter. Check the PCI BIOS IRQ settings first, and then select an IRQ that is available. 2. After the system reboots, the error message, “Cannot find any configured Moxa Smartio/Industio series board!” appears in the Event Log.
A. A Technical Reference Specifications • • • • • • • • • Bus interface: Number of ports: I/O address: IRQ: Data bits: Stop bits: Parity: UART: Speed: • • • • • Connectors: Data signals: Surge protection: Operating temp: Power Requirement • Dimensions: 32-bit PCI 4 Assigned by PCI BIOS Assigned by PCI BIOS 5, 6, 7, 8 1, 1.5, 2 None, even, odd, space, mark Moxa UART (16C550C or compatible) 50 bps to 921.6Kbps (CP-104UL v2) 50 bps to 230.
throughput, special features such as on-chip FIFO and on-chip hardware flow control are used to reduce the number of interrupts to the onboard CPU, and to prevent loss of valuable data.
Return Procedure For product repair, exchange, or refund, you must: z Provide evidence of original purchase. z Fill out the Problem Report Form (PRF) as detailed as possible for shorter product repair time. z Obtain a Return Merchandise Authorization (RMA) number from the sales representative or dealer. z Carefully pack the product in an anti-static package, and send it, pre-paid, to the dealer.