Smartio CP-168U User’s Manual Smartio 8-Port RS-232 Serial Board for PCI Bus First Edition, February 2003 Moxa Technologies Co., Ltd. Tel: +866-2-8919-1230 Fax: +886-2-8919-1231 www.moxa.com support@moxa.com.
Smartio CP-168U 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 2003 Moxa Technologies Co., Ltd. All rights reserved. Reproduction in any form without permission is prohibited. Trademarks MOXA is a registered trademark of Moxa Technologies Co., Ltd. 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 1 Introduction Overview Smartio—The Smart Multiport Async Solution The term Smartio stands for smart multiport serial I/O solution. The Smartio CP-168U board is designed for the 32-bit PCI bus with Plug and Play feature. This board offers 8 RS232 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.
PCI Solution The CP-168U board complies with PCI Spec. 2.1, and does not use either switches or jumpers. The hardware configuration for the IRQ and memory addresses is automatically assigned by the PCI BIOS. Hence, the board MUST be plugged in before installing the driver software. For more PCI information, refer to the Technical Reference Appendix. Surge Protection To prevent the board from being damaged by lightning or high potential voltage, embedded 16 KV ESD protection is used in the CP-168U board.
Introduction Features The Smartio CP-168U board has 8 RS-232 ports, embedded ESD 16 KV surge protection, and uses a Moxa or 16C550C compatible UART, and has the following important features: Supports universal PCI, plug and play (no switches or jumpers) Fits both 3.
Package Checklist You should find the following items in the Smartio CP-168U board package: Smartio CP-168U 8-port serial board Software CD that contains drivers for Windows NT/2000/XP, Windows 95/98, and Linux.
Introduction Installation Guide This section gives a brief summary of how to install the Smartio CP-168U board under each supported operating system. The installation is simple and involves the following stages: Check the PCI BIOS settings. Install the Smartio CP-168U board. See Chapter 2, “Hardware Installation.” ↓ Install the software from the software CD. Configure the driver for the board and ports. See the respective OS section in Chapter 3, “Software Installation.
2 2 Hardware Installation The installation of the Smartio CP-168U 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 Smartio CP-168U 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 Smartio CP-168U board Step 1: Power off the PC.
Note! Step 8: Each board must occupy one unique IRQ and four 8-byte I/O addresses, which are assigned automatically by the PCI BIOS. However, you can select a free IRQ number manually via the PC’s BIOS setup for the PCI slot, but normally this method is not available for the I/O address. The possible IRQ numbers are 2, 3, 4, 5, 7, 10, 11, 12, and 15. The possible I/O addresses are from 0x0000 to 0xFFFF. Proceed with the software installation, as described in the next chapter, “Software Installation”.
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 NT, Windows 95/98, and Windows 2000/XP. Before proceeding with the software installation, be sure to first complete the hardware installation discussed in the previous chapter. Refer to the next chapter, “Serial Programming Tools,” for information on developing your own serial programming applications.
Installing the Driver First Time Driver Installation The following procedure shows how to install the Smartio 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. 6. Log into NT as Administrator. Copy the folder Windows.nt located under Software\WinNT\V5.7 on the software CD, to your computer’s hard disk (under the C: drive, for example).
Software Installation 7. The Moxa Smartio/Industio Configuration Panel dialog box appears. Click the [Add] button to open the Property dialog box to change port settings and advanced FIFO configuration done automatically by the system. 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. Select an Rx FIFO Trigger from the Rx FIFO Trigger pull-down list. Rx FIFO trigger levels of from 1 to 62 are available, with a default value of 56 bytes.
Software Installation will now appear in the MOXA Smartio/Industio Configuration Panel dialog box, as shown below. 14. Click [OK] in the MOXA Smartio/Industio Configuration Panel to return to the Network dialog box, and then click [OK] to exit the Network dialog box. 15. Restart the PC. Note! The driver configuration will NOT take effect until you restart the PC.
to develop applications with the PComm library (see “Serial Programming Tools”) or the Microsoft Win32 API. You can also use applications such as Terminal Emulator (see “Serial Programming Tools”), a PComm utility, or HyperTerminal, to transmit/receive data, as well as Remote Access Service to provide dial-up networking capabilities.
Software Installation 4. Next, refer to the instructions given in the previous section, “First Time Driver Installation” from the “Windows NT” section. 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.
refer to the instructions from the previous section, “Installing the Driver.” 1. 2. 3. 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. Click the [Properties] button to open the Moxa Smartio/Industio Configuration Panel dialog box. 4. Next, refer to the instructions from the “First Time Driver Installation” subsection.
Software Installation Panel dialog box. Updating the Driver Take the following steps to update the Smartio 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.
Windows 95/98 The Windows 95/98 driver supports up to 128 serial ports, from COM1 to COM128. To fully utilize the advanced multi-process and multi-thread features of Windows 95/98, pure 32-bit Windows 95/98 virtual device port drivers (VxD) compliant with communication drivers (VCOMM) have been developed for the Smartio CP-168U and other MOXA multiport boards. The drivers conform to the Win32 COMM API standard.
Software Installation Install the Smartio 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 Smartio CP-168U board’s ports should be ready to work.
for Windows 95 or the right column for Windows 98. If one MOXA CP-168U board was previously installed and another MOXA CP-168U board is plugged in, the system will prompt you to skip this stage, and take care of Port Configuration, which is discussed in the next section. 1. Upon detecting the first new Smartio 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.
Software Installation 3. Type E:\Software\Win9x\V5.7\Windows.95 in 3. Select Other Devices and then click on [Next]. the Location input box, and then click [OK] from the Select Other Location window. The system will start reading the files from the CD. 4. Click on [Finish]. 4. Click on [Have Disk]. 5. Type E:\Software\Win9x\V5.7\Windows.95 and click [OK]. The system will start reading the files from the CD.
6. Click on [Next]. 7. Click on [Next]. Port Configuration After the driver is installed, the MOXA CP-168U Installation dialog box will be displayed, and the system will map the ports automatically. If one MOXA CP-168U board was installed previously, and another MOXA CP-168U board is added, the system will prompt you to take care of port configuration, which is discussed in this section. 1.
Software Installation 2. 3. 4. 5. 6. 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 Trigger pull-down list. Rx FIFO trigger levels from 1 to 62 bytes are available, with a default value of 56 bytes.
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 Smartio CP-168U board COM ports of the Smartio CP-168U board can be without restarting Windows 95. used without restarting Windows 98.
Software Installation Configuring the Board and Ports Follow the procedures given below to re-configure the COM number for the ports of installed boards and drivers under Windows 95/98. In addition to following the procedures listed below, you may also click on [Start] [Programs] [MOXA Utility] [MOXA Smartio/Industio Configuration Panel] [Property] [Port Setting].
4. 5. 6. 7. 8. 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. Re-assign the Rx FIFO Trigger by selecting a number from the pull-down list. Check the Set the change to all ports check-box to apply this setting to all ports. Rx FIFO trigger levels from 1 to 62 bytes are available, with a default value of 56 bytes.
Software Installation 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]. 3. 4. Select the [Driver] tab. Click on [Update Driver...]. 5. 6. Click on [Have Disk...] and type the path of the new driver. 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.
Removing the Driver This section explains how to remove the Smartio CP-168U board driver. 1. 2. Open the [Control Panel], double click the [Add/Remove Programs] icon, and then select the [Install/Uninstall] tab. Click on the MOXA Smartio/Industio Driver option and then click on [Add/Remove] to start the driver removal process. 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.
Software Installation Installing the Driver The following procedure shows how to install the Smartio CP-168U Series 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 slot(s). Windows 2000 1. Windows XP 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.
4. Select Specify a location and then click on Next to continue. 5. Insert the Moxa Driver CD into the CD-ROM drive, and then specify the location of the file as E:/Software/Win2K/V1.5 as shown below (change the drive letter if needed). Click OK to continue. 3-22 Smartio CP-168U User’s Manual 4. 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.
Software Installation 6. 7. Click Next to copy the driver files to your system. 5. The next Welcome to the Found New Hardware Wizard window that opens starts the port installation procedure. Select Install the software from a specific location and then click on Next to continue. 6. Input the location of the driver in the text input box, or use the Browse button to locate the appropriate folder. 7. Wait while the installation wizard searches.
8. The next Welcome to the Found New 8. Hardware Wizard window to open starts the port installation stage. Click on Next to continue. 3-24 Smartio CP-168U User’s Manual Wait while the wizard installs the software.
Software Installation 9. Select Search for a suitable driver for my device [recommended], and then click on Next to continue. 9. After all files have been copied to the system, the Completing the Found New Hardware Wizard window will open to indicate that it has finished installing “Port 0.” Click on Finish to install the board’s second port. 10. Select Install the software automatically and then click on Next to continue. 10. Select Specify a location and then click on Next to continue. 11.
11. Insert the Moxa Driver CD into the CD-ROM drive, and then specify the location of the file as E:/Software/Win2K/V1.5 as shown below (change the drive letter, if needed). Click OK to continue. 12. Click on Next to continue with the installation. 3-26 Smartio CP-168U User’s Manual 12. Click on Finish to complete installation of Port 1.
Software Installation 13. After all files have been copied to the system, 13. Repeat the above procedure for the rest of the board’s ports. The last window to open the Completing the Found New Hardware completes installation of Port 7. Wizard window will open to indicate that it has finished installing “Port 0.” Click on Finish to install the board’s second port.
How to Check the Installation There are three ways to check the installation of the CP-168U Series board. Device Manager 1. You can check the installation of the board by selecting Start Settings Control Panel System, select the Hardware tab, and then click on the Device Manager button.
Software Installation 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.
Removing the Driver You can uninstall the board by first selecting Start System.
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.
The Device Manager window will automatically refresh to show that the driver and ports for the CP-168U Series board have been removed.
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 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.
This serial communication library provides a complete function library and sample programs for Visual C++, Visual Basic, and Delphi. To view detailed function descriptions and sample programs, click on [Start] [Program] [PComm Lite] [PComm Lib Help], [PComm Porting Notes] or [PComm Programming Guide], or refer to the sample programs in the PComm directory. Utilities In this section, we give brief descriptions of each utility.
Serial Programming Tools Diagnostic (for MOXA boards only) A convenient diagnostic program, ONLY for MOXA boards and ports, provides internal and 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]. A typical test report for the CP-168U Series board is shown below.
Monitor (for MOXA boards under Windows NT/2000/XP) 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. To run the Monitor program, click on [Start] [Program] [PComm Lite] [Monitor].
Serial Programming Tools 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].
4-6 Smartio CP-168U User’s Manual
5 5 Connection Cables and Cable Wiring In this chapter, we illustrate the possible connections and cable wiring for the CP-168U 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. RS-232 Cable Wiring DB62 Female Connector Pinouts Port No. Pin No.
Individual Port Pinouts—DB9 and DB25 Male RS-232 DB9 Pin No. 1 Signal DCD DB25 Pin No.
6 6 Troubleshooting Common Smartio CP-168U 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.
A. Smartio CP-168U board will check the line status (CTS) before transmitting data if the RTS/CTS flow control feature is set to Enable in the configuration or application program. Refer to the Connection Cable and Cable Wiring chapter for proper wiring options, and check the line status of the suspected port using the diagnostic LED indicators on the mini tester. B. The board’s control application might not be correctly written according to the corresponding API of the operating system.
Troubleshooting and solutions, see the section, “General Troubleshooting.” 1. The system fails to find the Smartio CP-168U board! C. The board(s) is (are) not properly plugged into the PCI slot. D. The PCI slot is defective. Please try other slots until you find one that works. E. The board itself might be defective. 2. After the system reboots, the error message “CP-168U board(BusNo=x, DevNo=x, Port1=COMx) interrupt number is invalid!” appears.
A. A Technical Reference Specifications • • • • • • • • • • • • • • Bus interface: Number of ports: I/O address: IRQ: Data bits: Stop bits: Parity: UART: Speed: Connector: Data signals: Surge protection: Operating temp: Power Requirement • Dimensions: 32-bit PCI 8 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 230.4bps DB62 female RS-232-TxD, RxD, RTS, CTS, DTR, DSR, DCD, GND ESD Max. 1600V 0 to 55℃ 191 mA max.
Due to this slot-dependency, it is necessary to re-configure the software driver once the board is plugged into a different PCI slot. Up to 4 Smartio CP-168U boards can be installed in one system. When installing more than one board, remember the order of boards to distinguish the installed boards. MOXA UART The MOXA UART is an intelligent asynchronous controller that supports one full duplex channel that simultaneously transfers data at a transmission speed of 230.4 Kbps.
Return Procedure For product repair, exchange, or refund, you must: Provide evidence of original purchase. Fill out the Problem Report Form (PRF) as detailed as possible for shorter product repair time. Obtain a Return Merchandise Authorization (RMA) number from the sales representative or dealer. Carefully pack the product in an anti-static package, and send it, pre-paid, to the dealer.