Smartio C104H/PCI Series User’s Manual Smartio 4 Ports Serial Board for PCI Bus Jun. 1999 (2nd Edition) The content of this manual is also available in CD-ROM and at Moxa Web Site. Moxa Technologies Co., Ltd. Tel: +866-2-8665-6373 Fax: +886-2-8665-6372 www.moxa.com support@moxa.com.
Smartio C104H/PCI Series 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 the agreements. Copyright Notice Copyright 1999 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’s satisfaction is always our number one concern. To ensure that customers get the full benefit of our services, Moxa Internet Services have been built for technical support, product inquiry, new driver update, user’s manual update, etc. The followings are the services we provide. E-mail for technical support address: support@moxa.com.tw FTP site for free driver update address: ftp.moxa.com or ftp.moxa.com.
About This Manual This manual is composed of six Chapters and one Appendix. This manual is written for installer, system administrator and software programmer. If you are a first-time installer and system administrator, we recommend you to go through the whole manual except Chapter 4 “Serial Programming Tools”. If you are a software programmer, you may refer to Chapter 4 “Serial Programming Tools”. If you need cable wiring information, please see Chapter 5 “Connection Cable and Cable Wiring”.
Table of Contents Introduction ................................................................................
UART 16C550C------------------------------------------------------------------------------------------------ A-2 DB37 Connector Pinouts ------------------------------------------------------------------------------------ A-3
1 1 Introduction Overview Smartio - The Smart Multiport Async Solution The term Smartio represents smart multiport serial I/O solution. The Smartio C104H/PCI Series boards, including C104H/PCI and C104HS/PCI, are designed for 32-bit PCI bus with Plug and Play feature.
l PC-based (vending) Machine or Kiosk System l Point-of-Sale (POS) System PCI Solution The board complies with PCI Spec. 2.1 needing neither switch nor jumper. The hardware configuration for the IRQ and Memory addresses is automatically assigned by the PCI BIOS. Hence, the board MUST be plugged first before installing the software driver. For more PCI information, please refer to Appendix “Technical Reference”.
Introduction Features The Smartio C104H/PCI Series consists of members as follows: C104H/PCI: 4 RS-232 ports, high speed 16C550C or compatible UART C104HS/PCI: 4 RS-232 ports, surge protection, 16C550C or compatible UART v v v v v v v Support PCI, Plug and play, no switch, no jumper Reliability¡ÐHigh speed 16C550C Communication Controllers with on-chip hardware flow control guarantees no data loss Compact size design, half size Surge protection (C104HS/PCI) Easy installation¡Ð32-bit PCI bus with Plug and
Check List Upon unpacking the Smartio C104H/PCI Series, you should find the following items in the package: v v Smartio C104H/PCI Series 4 port serial board Device driver diskettes: l Windows NT and Windows 95/98 ¡Ñ1 l v v PComm Lite ¡Ñ ¡Ñ1 Smartio C104H/PCI Series User’s Manual (This manual) Connection cable Opt4C:DB37 to DB25¡Ñ4 or Opt4D:DB37 to DB9¡Ñ4 P1 P2 P3 P4 1-4 Smartio C104H/PCI Series User’s Manual Smartio C104H/PCI Series
Introduction Installation Guide This section gives a brief summary of how to install the Smartio C104H/PCI Series under each supported operating system. The installation is simple and involves the following stages: Check the PCI BIOS settings Install the Smartio C104H/PCI Series board and the connection cable See Chapter 2 “Hardware Installation” Install the software from the diskette Configure the driver for the board and ports See respective O.S.
1-6 Smartio C104H/PCI Series User’s Manual
2 2 Hardware Installation The installation of the Smartio C104H/PCI Series consists of hardware and software installation. The respective sections of the operating systems in the next chapter will discuss more about the software installation. The hardware installation is described in this chapter. The no-switch-no-jumper Smartio C104H/PCI Series board hardware configuration for IRQ number and I/O addresses is automatically assigned by the PCI BIOS.
Connecting the Fan-out Cable Step 7: Connect the connection cable. P1 P2 Smartio C104H/PCI Series P3 P4 Step 8: Note! Step 9: Power on the PC and the BIOS will automatically set the IRQ and I/O address. 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.
3 3 Software Installation In this chapter, the software driver installation, configuration and driver update/removal procedures are described for various operating systems, including Windows NT, and Windows 95/98. Before proceeding with the software installation, complete the hardware installation first. If it is required to develop your own applications, please refer to the next chapter, “Serial Programming Tools” for serial programming issues.
Installing Driver First Time Installing Driver Following is the procedures for installing the Smartio C104H/PCI Series driver for the first time under Windows NT 3.51/4.0. Make sure the board (s) has (have) already been plugged in the system PCI slot (s). 1. Please log in NT as Administrator. 2. Open [Control Panel], click [Network] icon and select [Adapters] tab. 3. Click [Add] button, then [Have Disk...] button in [Select Network Adapter] dialog box. 4.
Software Installation 5. Select MOXA Smartio/Industio Family multiport board in Select OEM Option dialog box, and click [OK] to start driver installation. Moxa Smartio/Industio Configuration Panel dialog box appears. 6. Click [Add] button to open Property dialog box to change port setting and advanced FIFO configuration done automatically by the system. 7. Select the newly plugged C104H/PCI board from the Board Type pull-down list. 8. Click on a specific port Item. 9.
10. Select a COM number for the specific port from Port Number pull-down list. Note! Step 11 is optional, if you want to assign COM numbers to ports manually. 11. Check Auto Enumerating COM Number check-box then the subsequent ports are 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. Note! You may skip Step 12 to 15, if the system doesn’t require a special performance tuning. 12.
Software Installation 13. Check Set the change to all ports check-box then if desire to apply Rx FIFO Trigger just defined to all ports. 14. Select a Tx FIFO Size from Tx FIFO Size pull-down list. Tx FIFO sizes from 1 to 16 bytes are available, and the default value is 16 bytes. 15. Check Set the change to all ports check-box then the if desire to apply Tx FIFO Size just defined to all ports. 16. Click [OK] button in Port X dialog box to confirm the port setting. 17.
18. Click [OK] button in MOXA Smartio/Industio Configuration Panel to return to Network dialog box. 19. Click [OK] button in to exit Network dialog box. 20. Restart the PC. Note! The driver configuration will NOT take effect until you restart the PC. Note! Double check if all the Smartio C104H/PCI Series components – the control board and the external 1X4 cable – are connected and fastened tightly to make sure that the system and the driver start successfully.
Software Installation Note! If an error message similar to “Cannot find any configured MOXA Smartio/Industio series board!” pops up, refer to the Troubleshooting chapter for solutions. 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.
Configuring Board and Port Re-configure Port Setting If the driver is installed and only desire to re-configure the ports, please refer to the following procedures. Except procedures listed below, it is also allowed to do so by clicking [Start] è [Program Files] è [MOXA Utility] è [MOXA Smartio/Industio Configuration Panel] è [Property] and then also refer to step 6-21 in the previous section “First Time Installing Driver”. 1. Open [Control Panel], click [Network] icon and select [Adapters] tab. 2.
Software Installation 4. Click [Property] button in MOXA Smartio/Industio Configuration Panel dialog box to open Property dialog box. 5. Then please refer to Step 6 to 21 in “First Time Installing Driver” of “Windows NT” section.
Add Another C104H/PCI Series Board Configuration If another MOXA C104H/PCI Series board is plugged and needed to be reconfigured, please see this section for details. Up to four C104H/PCI Series board can be installed in ONE system under Windows NT as long as the system sources is sufficient.
Software Installation 4. Then please refer to Step 6 to 21 in “First Time Installing Driver” of “Windows NT” section. Remove Existing C104H/PCI Series Board Configuration By unplugging C104H/PCI board, the system will automatically remove the configuration.
Smartio/Industio Configuration Panel dialog box. Updating Driver To update the driver for the Smartio C104H/PCI Series board, simply follow the following procedures. 1. Open [Control Panel], click [Network] icon, and select [Adapters] tab. 2. Click on MOXA Smartio/Industio Family Adapter in the Network Adapter list. 3. Click [Remove] button in Network dialog box. 4. Click [Close] button in Network dialog box. 5. Restart the system. 6.
Software Installation 4. Click [Close] button to exit Network dialog box. 5. Restart the system to activate the new configuration. Windows 95/98 Windows 95/98 driver supports up to 128 serial ports, from COM1 to COM128. To fully utilize the advanced features of Windows 95/98, multi-process, multi-thread and pure 32-bit Windows 95/98 virtual device port drivers (VxD) compliant with communication drivers (VCOMM) are developed for the Smartio C104H/PCI Series and other MOXA multiport boards.
Board and Port”. To update the driver, please go to Section “Updating Driver”. To remove the driver, please go to Section “Removing Driver”. Installing Driver You can easily plug the Smartio C104H/PCI Series board and work right away with very little installation efforts under Windows 95/98 supporting Plug and Play capability. Windows 95/98 will automatically detect the presence of the newly plugged board and prompt you to install the software driver for the first time.
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 with the diskette See Section “First Time Driver Installation Stage” Configure the port See Section “Port Configuration Stage” The ports of the Smartio C104H/PCI Series Board are ready to work.
described in two columns. Follow the steps in the left column for Windows 95 or the right column for Windows 98 respectively. If one MOXA C104H/PCI Series board had been previously installed and another MOXA C104H/PCI Series board was plugged, the system will prompt you to do Port Configuration Stage discussed in the next section and skips this stage. 1.
Software Installation Smartio C104H/PCI Series User’s Manual 3-17
3. Type A:\Windows.95 in the Location field, and click [OK] button in Select Other Location dialog box. The system will start reading the files from the diskette. 3. Select Other Devices and click [Next] button. 4. Click [Have Disk] button. 4. Click [Finish] button. 5. Type A:\Windows.95 and click [OK] button. The system will start reading the files from the diskette.
Software Installation 6. Click [Next] button. 7. Click [Next] button. Port Configuration Stage After the driver is installed, MOXA C104 PCI Series Installation dialog box will be displayed automatically and the port mapping is automatically done by the system. If one MOXA C104H/PCI Series board had installed previously and another MOXA C104H/PCI Series board was plugged, the system will prompt you to do port configuration directly discussed in this section. 1. Click on a specific port. 2.
3. Select a COM number for the specific port from Port Number pull-down list. Note! 4. Check Auto Enumerating COM Number check-box then the subsequent ports are 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. Note! 5. Step 4 is optional, if you want to assign COM numbers to Ports manually. You may skip Step 5 to 8, if the system doesn’t require a special performance tuning.
Software Installation 7. Select a Tx FIFO Size from Tx FIFO Size pull-down list. Tx FIFO sizes from 1 to 16 bytes are available, and the default value is 16 bytes. 8. Check Set the change to all ports check-box then the if desire to apply Tx FIFO Size just defined to all ports. 9. Click [OK] button in Port X dialog box to confirm the port setting. 10. Click [OK] button in Property dialog box to complete the port setting.
Board and Port Ready Stage Board and Port Ready Stage for Windows 95 and Windows 98 is a slight different. In this last stage, you will complete the driver installation. Windows 95 After the port configuration, you can immediately use the COM ports of the Smartio C104H/PCI Series board without restarting Windows 95. Note! Windows 98 After the port configuration, click [Finish] button. The COM ports of the Smartio C104H/PCI Series board can be used without restarting Windows 98.
Software Installation Service to provide dial-up networking capabilities. Configuring Board and Port If desire to re-configure the COM number for the ports of installed boards and drivers under Windows 95/98, please follow procedures listed below. Instead of following procedures listed below, it is also allowed to do so by clicking [Start] è [Program Files] è [MOXA Utility] è [MOXA Smartio/Industio Configuration Panel] è [Property] è [Port Setting].
4. Click on the specific port and click [Port Setting] button to re-assign the desired COM number for the Smartio C104H/PCI Series port mapping. Note! 5. Check Auto Enumerating COM Name check-box to assign continuous COM numbers for subsequent ports. For example, if COM 3 is assigned to Port 1, then COM 4 will be automatically assigned to Port 2. Note! 6. Step 5 is optional, if you want to assign COM numbers to Port manually.
Software Installation Check Set the change to all ports check-box if desire to apply this setting to all ports. Tx FIFO sizes from 1 to 16 bytes are available, and the default value is 16 bytes. 8. Click [OK] button in Port X dialog box. 9. Click [OK] button in C104 PCI Series Properties dialog box. 10. Click [OK] button in Device Manager tab. 11. Restart the system to activate the latest configuration.
2. Click on MOXA C104 PCI Series and click [Properties] button 3. Select [Driver] tab. 4. Click [Update Driver...] button. 5. Click [Have Disk...] button and type the path of the new driver.
Software Installation 6. Insert the source diskette in the floppy drive if there is any. 7. Click [OK] button in Install from Disk dialog box. 8. The system will automatically prompt you to restart the system, click [Yes] button to restart the system. Or [No] button if you want to reboot the system later. Removing driver This section explains how to remove the Smartio C104H/PCI Series board driver. 1.
3. Click [Yes] button in the following shown message box to confirm the driver removal. 4. Click [OK] button in Add/Remove Programs Properties dialog box.
4 4 Serial Programming Tools Moxa supports some easy but powerful serial programming libraries and communication troubleshooting utilities under Windows NT and Windows 95/98. It will save your developing time with the MOXA Serial Programming Tools. The following sections will detail the installation, the library and the utilities for various platforms.
PComm Programming Library The serial communication library helps you to develop programs for serial communications for any COM port complying with Microsoft Win32 API. It facilitates the implementation of multi-process and multi-thread serial communication programs and hence remarkably reduces developing time. This serial communication library provides a complete library function and sample programs for Visual C++, Visual Basic and Delphi.
Serial Programming Tools Diagnostic (for MOXA boards only) A convenient diagnostic program ONLY for MOXA boards and ports provides internal and external testing including IRQ, TxD/RxD, UART, CTS/RTS, DTR/DSR, DTR/DCD testing, etc. It will verify if both the software and hardware function correctly. To run Diagnostic program, click [Start]; select [Program Files] then [P PComm Lite] and [Diagnostic].
Monitor (for MOXA boards under Windows NT Only) A useful port status monitoring program allows you to watch over the selected MOXA COM ports. It monitors data transmitting/receiving throughput and communication line status that are updated and displayed on the screen at time intervals. By clicking on the specific displayed port, you can visualize the current communication parameters and status of that port. PComm Lite] To run Monitor program, click [Start]; select [Program Files] then [P and [Monitor].
Serial Programming Tools Terminal Emulator The Terminal Emulator obviously serves as an emulator to connect various ports to see if the transmission functions correctly. It features multi-windows and supports terminal types of VT100 and ANSI. It allows you to transfer data interactively, send pattern periodically or transfer file using ASCII, XMODEM, YMODEM, ZMODEM and KERMIT protocols. To run Terminal Emulator program, click [Start], select [Program Files], then [P PComm Lite] and [Terminal Emulator].
4-6 Smartio C104H/PCI Series User’s Manual
5 5 Connection Cable and Cable Wiring This chapter will illustrate the possible connections and cable wiring for C104H/PCI Series board. In serial data communications, the term DTE is Data Terminal Equipment, such as PC COM1/2, serial printers and terminals. The term DCE is Data Communication Equipment, like modems.
C104H/PCI DB9 Male (Opt4D) 1 2 3 4 5 6 7 8 DCD RxD TxD DTR GND DSR RTS CTS According to cable options and devices connected, several possible connection types are illustrated as below. Type 1: To connect C104H/PCI Series to a DTE device.
Connection Cable and Cable Wiring PC COM2 port, Serial Printer, Terminal, or any DTE Device Opt4D C104H/PCI DB9 Male RxD TxD CTS RTS DTR DSR GND DCD 2 3 8 7 4 6 5 1 2 3 4 5 6 20 7 8 DTE Device DB25 Male TxD RxD RTS CTS DSR DTR GND DCD Type 2: To connect C104H/PCI Series to a DCE device.
Modem or any DCE Device Opt4D C104H/PCI DB9 Male RxD TxD CTS RTS DTR DSR GND DCD 2 3 8 7 4 6 5 1 2 3 4 5 6 20 7 8 DCE Device DB25 Female RxD TxD CTS RTS DTR DSR GND DCD Type 3: To connect C104H/PCI Series to a DTE with 3-pin wiring. If the Hardware flow control feature is set to ON, you must loop back (or short) the RTS with CTS and DSR with DTR, DCD on MOXA site, indicated in dashlines of the following diagrams.
Connection Cable and Cable Wiring PC COM2 port, Serial Printer, Terminal, or any DTE Device Opt4D C104H/PCI DB9 Male RxD TxD GND RTS CTS DTR DSR DCD 2 3 5 7 8 4 6 1 2 3 7 4 5 6 20 8 DTE Device DB25 Male TxD RxD GND RTS CTS DTR DSR DCD Smartio C104H/PCI Series User’s Manual 5-5
5-6 Smartio C104H/PCI Series User’s Manual
6 6 Troubleshooting Common Smartio C104H/PCI Series errors and possible corresponding solutions are listed below. If the problem still cannot be solved by following solutions given, contact dealers or Moxa for help or use the Problem Report Form at the end of this manual to report problems to your dealer at once for 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.
MOXA boards and port conditions. If Diagnostic reports error, replace the malfunctioned faulty components. Software Causes and Solutions: A. Smartio C104H/PCI Series 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. Please refer to the Connection Cable and Cable Wiring chapter for proper wiring and check the line status of the suspected port using the diagnostic LED indicators on the mini tester.
Troubleshooting 4. Windows NT system panic (blue screen). The possible reason is an IRQ or I/O address conflict with other ISA Bus adapters, like LAN and SCSI boards, or the system BIOS. Please refer to the corresponding problem in the previous section “General Troubleshooting” for solutions. Windows 95/98 This section is specific for troubleshooting under Windows 95/98. For general problems and solutions, please see the previous section, “General Troubleshooting”. 1.
6-4 Smartio C104H/PCI Series User’s Manual
A 7 Technical Reference Specification v v v v v v v v v v v Bus interface: Number of ports: I/O address: IRQ: Data bits: Stop bits: Parity: UART: Speed (bps): Connectors: Data signals: v v Surge protection: Operating temp: v Power requirement: v 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 ~ 921.6K 4¡ÑDB25 male (Opt4C) or 4¡ÑDB9 male (Opt4D) RS-232¡ÐTxD, RxD, RTS, CTS, DTR, DSR, DCD, GND Max.
board will have different system configurations if switching to a different PCI slot, which may be called slot-sensitive or slot-dependent. This may also apply to PCI slots in PC with different motherboard, which may use different device number sets. For example, some use 17, 18, 19, and 20 for identifying the respective PCI slots but some use 11, 12, 13 and 14. Due to the slot-dependency, it is necessary to re-configure the software driver once the board is plugged in different PCI slots.
Technical Reference DB37 Connector Pinouts The following lists the pin assignments of the Smartio C104H/PCI Series DB37 connector on the bracket. With this information, you may fabricate any type of fanout cables, such as DB37 to 4 x RJ45. Pin no. Signal 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 DCD3 GND CTS3 RxD3 RI4 DTR4 DSR4 RTS4 TxD4 DCD2 GND CTS2 RxD2 RI1 DTR1 DSR1 RTS1 TxD1 Pin no.
A-4 Smartio C104H/PCI Serieses User’s Manual
Problem Report Form Smartio C104H/PCI Series Customer name: Company: Tel: Email: Fax: Date: 1. Moxa Product: C104H/PCI Series: o C104H/PCI o C104HS/PCI Serial Number:__________ 2. Moxa Driver Version: ________________ 3. Moxa Hardware Settings: PCI slot number ________________________ 4. Operating System: oWindows 95 oWindows 98 oWindows NT 3.51 oWindows NT 4.0 oDOS oOthers 5. PC Host: Make _________ Model _________ 6. CPU: Speed _____MHz Make ______ Model ______ 7.
Return Procedure For product repair, exchange or refund, you must: v Provide evidence of original purchase. v Fill out the Problem Report Form (PRF) as detailed as possible for shorter product repair time. v Obtain a Return Merchandise Authorization (RMA) number from the sales representative or dealer. v Carefully pack the product in an anti-static package, and send it, pre-paid, to the dealer.