C104P User’s Manual Universal 4 Port Serial Board May 1999 (7th 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.
C104P User’s Manual The software 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. If you are a software programmer, you may refer to Chapter 4 “Serial Programming Tools”. If you need cable wiring information, please see Chapter “Connection Cable and Cable Wiring”.
Table of Contents Introduction ..................................................................... 1-1 Overview................................................................................................................ 1-1 Features................................................................................................................. 1-4 Check List .............................................................................................................. 1-5 Installation Guide............
Windows NT and Windows 95/98 .......................................................................... 4-1 Installation................................ ................................ ................................ ..................... 4-1 PComm Programming Library ................................ ................................ .......................... 4-2 Utilities ................................ ................................ ................................ ..........................
1 1 Introduction Overview The Standard Multiport Async Solutions The term Smartio stands for smart multiport serial I/O solution. The Smartio C104 Series multiport boards offer 4 serial ports for connecting terminals, modems, printers, data acquisition equipment and any other serial devices to the PC/AT and its compatible systems. The C104P is equipped with custom-designed ASIC chip which replaces lots of conventional ICs and reduces the board to half-size. The whole family supports 16 bit architecture.
Hardware Configuration Method JP1 Switch ON Jumper 1 2 3 4 C104P New : set I/O address and IRQ via software Utility. ......... ......... Traditional Multipoort Board Traditional : set switch and and jumper manually for I/O address and IRQ. Instead of using traditional jumper or switch for IRQ and I/O address settings, hardware configuration of each port is easily set by DOS utility, Io-irq.
Introduction Operating System Support The C104P is operational under most popular operating systems such as Windows NT, Windows 95/98, SCO UNIX/XENIX/OpenServer, DOS, Windows 3.x, OS/2, Linux, QNX, FreeBSD, etc. However, MOXA device drivers for Windows NT, Windows 95/98, Linux, DOS and Windows 3.x are provided for easier installation, configuration and better performance. In this manual, chapters for MOXA Windows NT, Windows 95/98, DOS and Windows 3.x device drivers are included.
Features v v v v v v v Custom-designed ASIC, compact board size (half-size) No switch no jumper, easily configured by software Independent I/O address, IRQ setting for each of 4 serial ports 16 bit AT bus architecture, more IRQs supported PComm serial communication tool Support popular OS¡Ð Windows NT, Windows 95/98, DOS, Windows 3.x, Linux Compatible with many other OS ¡Ð QNX, SCO UNIX/OpenServer, SCO XENIX, Free BSD, OS/2 C104P Windows NT Windows 95/98 DOS Windows 3.
Introduction Check List Upon unpacking the C104P package, you should find the following items in the package, v v v v v C104P 4-port serial async board Device driver diskettes: l Windows NT and Windows 95/98 ¡Ñ 1 l DOS/Windows 3.
Installation Guide This section gives a brief summary of how to install the C104P under each supported operating system. The installation is simple and involves the following stages: Configure C104P with io-irq.exe.
2 2 Hardware Installation The installation of the C104P consists of hardware and software installation. The hardware installation is detailed in this chapter. The next chapter deals with the software installation for various operating systems.
Now you should do either the normal hardware installation (detailed in the later section, “Hardware Installation with IO-IRQ Utility”) or the quick hardware installation (detailed right in the next section, “Quick Hardware Installation”). The latter is provided to facilitate the hardware installation, only under the circumstances that: u u u Only one C104P board is allowed to install in a system. Windows NT and 95/98 are the only operating systems supported.
Software Installation 5. DO power OFF and then ON (or Reset) the PC. (Please cold start.) 6. Restart System (Windows NT/95/98). It is very important to keep the JP1 always short in this case. Without running the hardware configuration program, Io-irq.exe under DOS prompt, the software configuration program will automatically update the hardware settings of the board while updating the software settings. This saves the trouble doing hardware configuration.
2. Power off the PC. 3. Make sure no hardware conflict and plug the board in a free 16-bit slot of the PC, one board at a time with JP1 open. + If you are installing multiple boards, insert one board at a time and configure it using the Io-irq program before inserting the next board. This is to prevent conflict between two boards with same default hardware settings.
Software Installation 1. Run the utility “Io-irq.exe” contained in the driver diskette to set up I/O address, IRQ and INT vector of the board. 2. Select “Smartio/Industio ISA Family” and press ENTER key.
3. Enter the CAP address of the C104P board to be configured. 4. Configure the following parameters as necessary. Port Index Indicate the port index for each port. I/O address Enter the base I/O address for each port, either sequentially or not. Avoid to conflicting with any other devices. IRQ Enter the IRQ, 2, 3, 4, 5, 7, 10, 11, 12 or 15, for each port, independently or not. Speed This field specifies the use of normal or high speed capability. Normal speed ranges from 50 bps to 115.2 Kbps.
Software Installation INT Vector Enter the interrupt vector I/O address for all ports. I/O address for interrupt vector is from 00000H to 0FFFFH. Interrupt vector is one byte of I/O address, in which each bit is used to indicate the occurrence of interrupt for corresponding port. To use interrupt vector, type in the hardware Interrupt vector I/O address. If not using interrupt vector, type 0 or leave blank as the interrupt vector. There are two modes for the C104P driver.
2-8 C104P User’s Manual
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, Windows 95/98, DOS and Windows 3.x. Before proceeding with the software installation, complete the hardware installation, detailed in previous chapter, “Hardware Installation”.
Installing Driver Following is the procedure for installing the C104P driver for the first time under Windows NT 4.0. Note ! Make sure the board(s) has(have) already been plugged in the system slot(s) if you are doing quick installation. 1. Please log in NT as Administrator. 2. Open the [Control Panel], click on the [Network] icon and select the [Adapters] tab. 3. Click on the [Add] button, then the [Have Disk...] button in “Select Network Adapter”. 4.
Software Installation 5. Select “MOXA Smartio/Industio Family multiport board” in the “Select OEM Option” dialog box, and then click [OK] to enter the “Moxa Smartio/Industio Configuration Panel” dialog box to start the installation. 6. In the “Moxa Smartio/Industio Configuration Panel” dialog box, click [Add] to enter “Property” dialog box to add the C104P board. Select the “C104 Series” in the “Board Type” field. If necessary, type the desired interrupt vector address, in the “INT Vector” field.
Note ! You may go directly to the step 8 if you need not change any setting. 7. In the “Property” dialog box, select the desired port in the port list and click [Port Setting] to enter the individual “Port #” setting dialog box to change the port COM number mappings or FIFO settings.
Software Installation l Port Number You have to set up all the ports of the board with the desired “COM number”, which should not conflict with other COM number in use. In this “Individual Port Setting” dialog box, you may have two ways to map the physical ports to COM numbers depending on the check box “Auto Enumerating COM number”. If “Auto Enumerating COM Number” is checked and specify the COM number of the first port, subsequent ports are mapped to continuous COM numbers.
9. When configuration is done, click on [OK] button in the “Network Settings” dialog box. 10. Restart Windows NT system. The latest configuration will not take effect unless the system restarts. Note ! The latest configuration will not take effect unless the system estarts. 11. Once the system restarts, you may check the event log issued by the MOXA driver to see if the ports of the board are initialized successfully.
Software Installation Note ! 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” chapter) or the Microsoft Win32 API. You can also execute any ready-made applications, such as PComm utility Terminal emulator (See “Serial Programming Tools” chapter) or HyperTerminal to transmit/receive data, as well as Remote Access Service to provide dial-up networking capabilities.
3. Click on the [Property] button to open the “Moxa Smartio/Industio Configuration Panel” dialog box. Please see steps 6-10 in the previous section, “Installing Driver”, for more details. In this configuration panel, you may: l Click [Property] to enter “Property” dialog box to configure the selected board with the correct “COM Number”, “INT Vector”, “Interrupt no” and “Base I/O Port Address”.
Software Installation Updating Driver To update the driver for the C104P board, simply remove the driver, as described in the next section, and reinstall it as detailed in the section, “Installing Driver”. Removing Driver To remove the driver for the C104P board, 1. Open the [Control Panel], click on the [Network] icon, and select the [Adapters] tab. 2. Select “MOXA Smartio/Industio Family Adapter” in the adapter list, then click on the [Remove] button and the [OK] button to remove the driver. 3.
Installing Driver Up to four C104P boards can be installed together as long as the I/O addresses and IRQ number resources are sufficient and available in a system. The following is the procedure for installing C104P for the first time under Windows 95/98: 1. Run Setup95.exe in the driver diskette. 2. Click on [Next>] button in the “Welcome ...” message dialog box. And then click on [Next>] button in the “Ready ...” message dialog. 3. Click on [Finish] button in the “Complete ...
Software Installation Note ! 6. Go directly to the step 7 if you need not change any setting. In the “Property” dialog box, select the desired port in the port list and click [Port Setting] to enter the individual “Port #” setting dialog box to change the port COM number mappings or FIFO settings.
l Port Number You have to set up all the ports of the board with the desired “COM number”, which should not conflict with other COM number in use. In this “Individual Port Setting” dialog box, you may have two ways to map the physical ports to COM numbers depending on the check box “Auto Enumerating COM number”. If “Auto Enumerating COM Number” is checked and specify the COM number of the first port, subsequent ports are mapped to continuous COM numbers.
Software Installation 8. Restart Windows 95/98 system. Note ! The latest configuration will not take effect unless the system restarts. 9. When system restarts, all the error conditions of the board will be popped up onto the screen if any. Otherwise, everything should be fine. If error message like “Smartio C104 Series (CAP=0x0180, port 1=COM3): Board is not found” appears, refer to chapter, “Troubleshooting”, for solutions.
Configuring Board and Port If you already have installed the driver and want to re-configure the C104P board and ports, add more boards or delete boards under Windows 95/98, the following is the procedure for you. 1. Click on the Taskbar [Start] button, then select [Programs] menu, then [MOXA Utilities] menu and then [Moxa Smartio/Industio Configuration Panel] icon. 2. The Smartio/Industio configuration panel will be popped up.
Software Installation Updating Driver Open [Control Panel] icon, and then [System] icon, and then select [Device Manager] tab. Then select and open the “MOXA Smartio/Industio multiport board” option and then select the “C104 Series”. Click on [Properties] button and then select [Driver] tab and then click on [Update Driver] button.
Removing Driver Open [Control Panel] icon, and then [Add/Remove Programs] icon, and then select [Install/Uninstall] tab. Then select and open the “MOXA Smartio/Industio Driver” option and then enter [OK] to remove the 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 setup up the driver, and how to load or unload driver. For details of the serial programming (API-232 Library) and utilities, please refer to the next chapter, “Serial Programming Tools”. Installing Driver Run the installation program, DOSINST.EXE, in the DOS/Windows 3.x driver diskette.
After installation is complete, you will be prompted to proceed running setup program. It is strongly recommended to do so. Driver Setup The following are steps for setting up the C104P driver. Note that it is not intended to illustrate all the convenient functions of the setup programs when configuring the boards. Please refer to the F1 on-line help instructions as running setup program. 1. Run the setup program, BIN\SETUP.EXE, in the API-232 directory.
Software Installation 2. Press Enter to pop up the SETUP dialog box. In the SETUP dialog box, Press F8 to specify the CAP Address and press ENTER and then type Y (YES) to load the configuration of the board to be setup.
3. Now the configuration of the desired C104P board will be shown along with other default settings, such as port number, buffer size, etc. Note ! 3-20 C104P User’s Manual Up to now you have completed the setup for C104P board. You may skip this step and go directly to the next step 5 if you need not change any setting or configure any board.
Software Installation You may now enter/modify each port’s configuration. These displayed values are the port initial values as driver is loaded. Legend: Port number: Some noticeable fields and functions are explained below. This is actually the port ID of each port. The application software will refer to the port by its port number (ID). Duplicated port number is not allowed. That is, each MOXA serial port is referred to as port number in terms of serial programming.
F6: INT vector: This is to set interrupt vector for each port. You can set this feature to “Yes” (default) and gain best performance for the board. 4. To setup one more board, please follow the same instructions 2 to 3 described above. 5. Press F10 to save the latest configuration and exit the SETUP program. Loading Driver Having completed the setup, you can load the driver, “BIN\SER-DRV.EXE”, at the DOS prompt. The driver will detect the C104P board automatically.
Software Installation It means the C104P driver is installed properly. At this point, you are ready to execute application that supports API-232 functions, or start developing applications using API-232 library. If something went wrong, for instance, the board does not match the configuration or the board is missing, the screen will show a message like: API-232 Version 3.
Installing Driver 1. Run WININST.EXE in the DOS/Windows 3.x driver diskette, click [OK] in the “Driver Installation” dialog box to install the driver. 2. When installation completed the program group “MOXA Standard COMM Driver” and “Board Configuration” dialog boxes appear. If the default settings are what you desired, click [Save] to save the configuration and exit.
Software Installation If you need to modify the settings, click [Modify], type in the desired I/O address in the “Address” field and select the desired IRQ and COM number. Then click [OK] and [Save] to save the new configuration and exit. 3. When configuration completed, you have to quit and restart Windows so that the changes you made will take effect.
Configuring Driver The configuration program, Configuration, in the “MOXA Standard COMM Driver” program group, has the easiest way to configure the 4 ports of C104P. Either from COM1 to COM4, from COM2 to COM5, from COM3 to COM6, from COM4 to COM7, from COM5 to COM8 or from COM6 to COM9, depending on user's need. Normally COM1 is used by mouse and to fully use the 4 MOXA ports, thus COM3 to COM6 is recommended. In this case, the original COM1 and COM2 on PC will be still available.
Software Installation Removing Driver The program, Driver Removal, in the “MOXA Standard COMM Driver” program group is provided to remove the installed driver from the Windows.
3-28 C104P User’s Manual
4 4 Serial Programming Tools Moxa supports easy but powerful serial programming library and communication troubleshooting utilities under Windows NT, Windows 95/98, DOS and Windows 3.x. You will save greatly the developing time, using MOXA Serial Programming Tools. The following sections will details the installation, the library and the utilities for various platforms.
PComm Programming Library The serial communication library is to assist users to develop programs for serial communications for any COM port complying with Microsoft Win32 API. It can ease the implementation of multi-process and multi-thread serial communication programs and hence greatly reduce the developing time. For complete library function description and example programs for Visual C++, Visual Basic and Delphi, please see help file and example programs in PComm directory for more details.
Serial Programming Tools Diagnostic (for MOXA boards only) A convenient diagnostic program provides internal and external testing, such as IRQ, TxD/RxD, UART, CTS/RTS, DTR/DSR, DTR/DCD testing, etc., for the MOXA boards and ports to verify correct operation of both the software and hardware.
Monitor (for MOXA boards under Windows NT Only) A useful port status monitoring program allows you to watch the selected MOXA COM ports' data transmitting/receiving throughput and communication line status which are updated and displayed on the screen at every time interval. In addition, you may click on one of the specific displayed port in order to see the current communication parameters and status of that port.
Serial Programming Tools Terminal Emulator The Terminal Emulator features multi-windows and supports terminal types of VT100 and ANSI. You can transfer data interactively, send pattern periodically or transfer file using ASCII, XMODEM, YMODEM, ZMODEM and KERMIT protocols.
DOS Installation API-232 Library is the professional serial programming tool for DOS. It is installed automatically along with the MOXA DOS drivers. The installation is detailed in Chapter “Software Installation”. DOS API-232 Library DOS API-232 library supports languages like Microsoft C, Turbo C, Macro Assembly, QuickBasic, Turbo Pascal, Clipper, etc. Sample programs for each supported language are included, and placed in the sub-directory ..\EXAMPLE\% language of the API-232 directory.
Serial Programming Tools There are three major functions in Data Scope utility: 1. The Data Scope utility offers transparent monitoring of serial communication lines and allows data to be streamed to disk storage for later analysis. 2. The TTY terminal emulation utility allows user to view the signal status and transfer data interactively or files using ASCII, XMODEM, YMODEM, ZMODEM and KERMIT protocols. 3.
Diagnose The Diagnose, BIN\DIAGNOSE.EXE, is a utility that can help users to diagnose the hardware condition of each port of the selected board. See on-line help for more details. Before executing it, please remove the Moxa driver in advance via executing “Mxdrv/Q” if the Moxa driver is running in the background. Windows 3.x Windows COMM API Library (Win16) MOXA Windows-compatible COMM Driver supports Microsoft Windows COMM API such as OpenComm(), ReadComm(), WriteComm(), etc.
Serial Programming Tools Utility The utility, TTY, in the “MOXA Standard COMM Driver” program group is intended to help users monitor and debug RS-232 communications under Windows 3.x which can manipulate ports from COM1 to COM9. It is just a simplest example program which can send and receive data after each port opened with selected communication parameters. Multiple windows for ports simultaneously are available for a demonstration of multitasking feature of Windows 3.x.
4-10 C104P User’s Manual
5 5 Connection Cable and Cable Wiring In serial data communications, the term DTE is for Data Terminal Equipment like PC COM1/2, serial printer and terminal. The term DCE is for Data Communication Equipment like modem.
Type 1: To connect C104P to a DTE device.
Connection Cable and Cable Wiring Type 2: To connect C104P to a DCE device.
Type 3: To connect C104P 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 dash-lines of the following diagrams. If the “Hardware flow control” feature is set to “OFF”, you could just leave RTS, CTS, DSR, DTR, DCD open, ignoring the connection indicated in dash-lines.
6 6 Troubleshooting Common C104P problems and possible solutions are listed below. If you still have problems, 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 at once for faster technical support. General Troubleshooting 1. The MOXA driver, while installing the driver, cannot detect the MOXA board. Hardware causes and solutions: a. The board is not installed or missing (absent). Please install it. b.
Software Causes and Solutions: a. C104P checks the line status (CTS) before it sends data out 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. Check the line status of the suspected port using the diagnostic LED indicators on the mini tester. b. Perhaps the application controlling the board is not correctly written according to the corresponding API of the operating system.
Troubleshooting irq.exe can access to the board. The following procedure instructs user to recover once the CAP is unknown. Step 1. Power off the PC. OFF Step 2. Install jumper onto the JP1 of the board. Install jumper JP1 Step 3. Power on the PC. Now the CAP address of the board will be 0xA700. ON Step 4. Execute Io-irq under DOS environment. Step 5. A:> Io-irq Enter CAP address 0xA700 to access the board. Step 6.
Step 8. Power off the PC. OFF Step 9. Remove the jumper on position JP1. Remove jumper JP1 Step 10. Power on the PC. ON Windows NT This section is specific for troubleshooting under Windows NT. For general problems and solutions, please see the previous section, “General Troubleshooting”. 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.
Troubleshooting a. Some partial decoded network board may interfere with our board. Please avoid from using 0x300 as I/O address for those network boards. b. Check hardware configuration of C104P board by IO-IRQ.EXE. Then make sure the hardware configuration, including I/O addresses for each port, Interrupt Vector, IRQ, is identical to that of the driver. c. The I/O addresses may conflict with other devices, please change another set of I/O address such as I/O:0x280, Interrupt Vector:0x2C0. d.
c. The I/O addresses may conflict with other devices, please change another set of I/O address such as I/O:0x280, Interrupt Vector:0x2C0. d. The board(s) is not plugged properly. Please make sure the board is seated firmly in the expansion slot. e. The slot for plugging the board is defective. In this case, please try other slots until you find a good one. f. The board might be defective. DOS This section is specific for troubleshooting under DOS.
Appendix A Technical Reference Specifications v v v v v 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: Surge protection: Operating temp: Power requirement: Dimensions: Operating Systems: ISA (EISA compatible) 4 0x0000 ~ 0xFFFF 2, 3, 4, 5, 7, 10, 11, 12, 15 5, 6, 7, 8 1, 1.5, 2 none, even, odd, space, mark 4¡Ñ 16550 or compatible 50 ~ 115.
Smartio C104 Series Windows NT Windows 95/98 DOS Windows 3.
Technical Reference PC I/O Port Address Map The following is the list of the I/O port addresses commonly used, which is good for preventing I/O address conflict when configuring C104P.
DB37 Connector Pinouts The following lists the pin assignments of the DB37 connector on the bracket. Pin no. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 Note: Signal Pin no. DCD3 GND CTS3 RxD3 RI4 DTR4 DSR4 RTS4 TxD4 DCD2 GND CTS2 RxD2 RI1 DTR1 DSR1 RTS1 TxD1 make shield grounded to connector.
Problem Report Form C104P Customer name: Company: Tel: Email: Fax: Date: 1. Moxa Product: C104P Serial Number: ____________ 2. Moxa Driver Version: ________________ 3. Moxa hardware settings: 3.1 Please check the hardware configuration by IO-IRQ.EXE from DOS or Windows 95/98 DOS Prompt. PORT I/O IRQ 1 2 3 4 Interrupt Vector: ________ 3.2 Jumper JP1 on the board: o open o short 4. Operating System: o Windows 95 o Windows 98 o Windows NT 3.51 o Windows NT 4.0 o DOS o Windows 3.1 o Others 5.
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 anti-static package, and send it, pre-paid, to the dealer.