Smartio CP-104UL User’s Manual Smartio 4-Port Serial Board for PCI Bus First Edition, January 2003 Moxa Technologies Co., Ltd. Tel: +866-2-8919-1230 Fax: +886-2-8919-1231 www.moxa.com support@moxa.com.
Smartio 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 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-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.
PCI Solution The CP-104UL 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.
Features The Smartio CP-104UL board comprises the following boards: CP-104UL 4 RS-232 ports, embedded ESD 16 KV surge protection, Moxa or 16C550C compatible UART 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-104UL board package: Smartio CP-104UL 4-port serial board Device driver diskettes: Windows NT/2000/XP, Windows 95/98, and Linux Smartio CP-104UL User’s Manual (this manual) 1-4 Smartio CP-104UL User’s Manual
Installation Guide This section gives a brief summary of how to install the Smartio CP-104UL board under each supported operating system. The installation is simple and involves the following stages: Check the PCI BIOS settings. Install the Smartio 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 Smartio 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 Smartio 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 Smartio CP-104UL 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-104UL 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. Open the [Control Panel], click the [Network] icon, and then select the [Adapters] tab. Click the [Add] button, and then the [Have Disk...] button in the [Select Network Adapter] dialog box.
Software Installation 6. 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. 7. Select the just installed CP-104UL 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.
8. 9. Select a COM number for the specific port from 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 COM3 is assigned to Port 1, then COM4 will be automatically assigned to Port 2. 10. Select an Rx FIFO Trigger from 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 Smartio/Industio Configuration Panel dialog box. The configured CP-104UL board will now appear in the MOXA Smartio/Industio Configuration Panel dialog box, as shown below. 13. 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. 14. Restart the PC. Note! The driver configuration will NOT take effect until you restart the PC.
Once the board and the driver are installed and the driver restarts successfully, you can start 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-104UL Board In this section, we explain how to configure another MOXA CP-104UL board that is already installed. Up to four CP-104UL boards can be installed in one system under Windows NT, provided sufficient system resources are available.
3. 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. Removing an Existing CP-104UL Board Configuration First shut down your PC, and then physically remove the CP-104UL board from the PCI slot. The next time you start up the PC, the system will automatically remove the configuration.
Software Installation 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. Removing the Driver To remove the Smartio CP-104UL board driver: 1. 2. 3.
drivers (VCOMM) have been developed for the Smartio CP-104UL and other MOXA multiport boards. The drivers conform to the Win32 COMM API standard. Installing the Driver Thanks to Windows 95/98’s Plug and Play capability, you can easily plug the Smartio CP104UL 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.
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-104UL board’s ports should be ready to work.
for Windows 95 or the right column for Windows 98. If one MOXA CP-104UL board was previously installed and another MOXA CP-104UL 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-104UL 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 the 3. Select Other Devices and then click on [Next]. 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-104UL Installation dialog box will be displayed, and the system will map the ports automatically. If one MOXA CP-104UL board was installed previously, and another MOXA CP-104UL 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-104UL COM ports of the Smartio CP-104UL board can be board 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] [Program Files] [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-104UL 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-104UL 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 already been plugged into the system’s PCI 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. Windows XP can auto-detect new devices, and activate the Found New Hardware function to install a device driver for Plug and Play devices. 2. Click on Next to continue. 2. Select Install from a list or specific location and then click on Next to continue.
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 F:/multi_bd/software/win2k as shown below (change the drive letter if needed). Click OK to continue. 3-22 Smartio CP-104UL User’s Manual 4. Wait while the driver software is installed. 5. The next window shows the model number of the board, and indicates that Windows has completed the driver installation.
Software Installation 6. Click Next to copy the driver files to your system. 7. 7. The next window shows the model number of the board, and indicates that Windows has 8. completed the driver installation. Click on Finish to continue with the rest of the installation procedure. Select Install the software from a specific location and then click on Next to continue. Input the location of the driver in the text input box, or use the Browse button to locate the appropriate folder.
8. The next Found New Hardware Wizard window to appear indicates that Windows has identified the board’s serial ports, and is starting to install the ports. 9. Click on Next to continue. 3-24 Smartio CP-104UL User’s Manual 9. Wait while the installation wizard searches.
Software Installation 10. Select Search for a suitable driver for my device [recommended], and then click on Next to continue. 10. Wait while the wizard installs the software. 11. Select Specify a location and then click on Next to continue.
12. Insert the Moxa Driver CD into the CD-ROM 11. After all files have been copied to the system, drive, and then specify the location of the file the Completing the Found New Hardware as F:/multi_bd/software/win2k as shown Wizard window will open to indicate that it below (change the drive letter, if needed). has finished installing “Port 0.” Click on Click OK to continue. Finish to install the board’s second port. 13. Click on Next to continue with the installation.
Software Installation 14. 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.
How to Check the Installation There are three ways to check the installation of the CP-134U Series board. Device Manager 1. You can check the installation of the board by selecting Start Settings Control Panel System, 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 CP134U 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 selecting Start Settings Control Panel System.
Software Installation Select the Hardware tab, and then click on Device Manager. Use the mouse to place the cursor over the CP-134U 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-134U 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].
Monitor (for MOXA boards under Windows NT Only) 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 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 PComm Lite] [Terminal Emulator].
4-6 Smartio CP-104UL User’s Manual
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.
Individual Port Pinouts—DB9 and DB25 Male RS-232 DB9 Pin No. 1 Signal DCD DB25 Pin No.
6 6 Troubleshooting Common Smartio 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.
A. Smartio CP-104UL 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 solutions, see the section, “General Troubleshooting.” 1. The system fails to find the Smartio CP-104UL 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-104UL 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: 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 4 × 16C550C or compatible 50 bps to 230.4bps DB44 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-104UL 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.