Mini pci express multiport serial board (51 pages)
Summary of Contents for Moxa Technologies Smartio C168H
Page 1
Smartio C168H/HS User’s Manual Universal 8 Port Serial Board May 1999 (6th 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.tw...
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. Disclaimer Information in this document is subject to change without notice and does not represent a commitment on the part of Moxa.
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.
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.
Table of Contents Introduction ..............1-1 Overview........................ 1-1 Features......................... 1-4 Check List ......................1-5 Installation Guide....................1-8 Hardware Installation ............2-1 Default Settings ..................... 2-1 Quick Hardware Installation ................... 2-2 How to Do Quick Hardware Installation................2-2 Hardware Installation with IO-IRQ Utility..............2-3 IO-IRQ Utility and Hardware Configuration........
Page 6
Setting MOXA Ports to Terminal.................. 3-35 Serial Programming Tools ..........4-1 Windows NT and Windows 95/98 ................4-1 Installation........................4-1 PComm Programming Library ..................4-2 Utilities .......................... 4-2 UNIX ........................4-6 Programming the MOXA Ports ........
The Smartio C168 Series is also available in PCI bus. Please contact MOXA dealer/distributor or MOXA Web site for more details. Smartio C168H/HS User’s Manual...
Series board under Windows NT/95/98 are recommended to adopt quick installation described in Chapter 2. Because the family is so flexible in hardware configuration that they are compatible virtually with all kinds of other manufacturer's multiport boards using 16450 or 16550 UART. Smartio C168H/HS User’s Manual...
Wide Applications The Smartio C168 Series are suitable for many applications. Here are a few: Internet/Intranet Connection Remote Access Application Multi-user Application Industrial Automation Office Automation Telecommunication PC-based (vending) Machine or Kiosk System Point-of-Sale (POS) System Smartio C168H/HS User’s Manual...
SCO XENIX FreeBSD 3: Driver supported by Moxa and shipped with product R : Driver supported by Moxa but sent by request C : Driver supported by OS Note: MOXA FTP site is available for driver download Smartio C168H/HS User’s Manual...
PComm Lite diskette¡Ñ You need also one of the following connection options: Opt8A/Opt8B/Opt8S RS-232 connection box with 8 DB25 female/male/female ports, respectively (surge protection for Opt8S). 1.5 meter DB62 to DB62 cable. Smartio C168 Series Opt8A/Opt8B/Opt8S Smartio C168H/HS User’s Manual...
Page 12
P1P2 P3 P4 Smartio C168 Series P7 P8 Opt8C/Opt8D Opt8F/Opt8Z RS-422 connection box with 8 port female DB25 connectors (isolation protection for Opt8F). 1.5 meter DB62 to DB62 cable. 110V or 220V adapter. Smartio C168 Series Opt8F/Opt8Z Smartio C168H/HS User’s Manual...
Page 13
RS-422/485 Port Switch of Opt8J 1 2 3 4 5 6 7 8 RS-422 Mode Set the respective switch to OFF position to use RS-422 interface. This means the port is always ready to transmit and receive data simultaneously (full-duplex). Smartio C168H/HS User’s Manual...
Cable and Cable Wiring” Restart the system See Chapter “Software Check the driver initialization status Installation” If the system restart successfully, you may develop your applications or See Chapter “Serial execute the desired applications Programming Tools” Smartio C168H/HS User’s Manual...
If the default settings above are what you desire and good for the system without conflicts, you may simply install the board in the system and go directly to the next chapter, “Software Installation”. Otherwise, follow the instructions below. Smartio C168H/HS User’s Manual...
3. Process software installation, detailed in the next chapter. This is to specify the desired I/O address, IRQ and INT Vector in the software configuration panel, no matter what hardware settings are on the board. The Smartio C168H/HS User’s Manual...
Note that the CAP address, e.g. 0x180, is identical to the first port's I/O address except in one case that the JP1 jumper is installed before powering on the PC. In this case, the CAP address will be forced to 0xA700. The CAP address must be Smartio C168H/HS User’s Manual...
Page 19
CAP address is the only channel via which the configuration utility Io-irq.exe can access the board. 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. Smartio C168H/HS User’s Manual...
Page 20
This field specifies the use of normal or high speed capability. Normal speed ranges from 50 bps to 115.2 Kbps. High speed ranges from 50 bps to 921.6 Kbps. Smartio C168 Series support both normal and high speed spectra. Smartio C168H/HS User’s Manual...
Page 21
38.4 Kbps for sure; while a port, if set to High Speed Spectrum with displayed speed 38.4 Kbps, will actually work at 307.2 Kbps (38.4 Kbps¡Ñ 8 ). The following is the 8 times speed mapping list for quick reference purpose, particularly for DOS driver. Smartio C168H/HS User’s Manual...
Page 22
Driver employing interrupt vector scheme is supposed to have better performance than employing polling scheme. 5. Press F10 to save the configuration and exit the utility. Smartio C168H/HS User’s Manual...
If you already have installed the driver and want to re-configure the board and port, add more boards or delete boards, please refer to the section, “Configuring Board and Port”. To update or remove the driver, please go to the section, “Updating Driver” or “Removing Driver”. Smartio C168H/HS User’s Manual...
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. Specify the exact path of the driver diskette, A:\WINDOWS.NT. Then click [OK]. Smartio C168H/HS User’s Manual...
Page 25
“Interrupt No.” field. Type the desired base I/O address, in the “Base I/O Port Address” field. All the settings should match settings that are physically set on the board and conflict with no other devices. Smartio C168H/HS User’s Manual...
Page 26
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. Smartio C168H/HS User’s Manual...
Page 27
If you need to install more than one board, click [Add] and repeat steps 6 to 8 to configure another board. Up to four Smartio C168 Series boards can be installed in a system. Click [OK] to finish the configuration. Smartio C168H/HS User’s Manual...
Page 28
Smartio C168 Series, with first serial port COM3, has been enabled” for each configured board. If an error message similar to “Cannot find any configured MOXA Smartio C168 Series board!” appears, refer to the “Troubleshooting” chapter for solutions. Smartio C168H/HS User’s Manual...
If you already have installed the driver and want to re-configure the ports, please follow this procedure. In the [Control Panel], click on the [Network] icon and select the [Adapters] tab. 2. Select “MOXA Smartio/Industio Family Adapter” in “Network Adapters”. Smartio C168H/HS User’s Manual...
Page 30
Please see steps 6 to 8 in the previous section, “Installing Driver”, for more details. Click [Remove] to remove the board currently selected from the configured board list. Click [OK] to confirm the configuration changes you made. Click [Cancel] to leave the dialog with the configuration unchanged. Smartio C168H/HS User’s Manual...
If you already have installed the driver and want to re-configure the board and port, add more boards or delete boards, please refer to the section, “Configuring Board and Port”. To update or remove driver, please go to the sections, “Updating Driver” and “Removing Driver”. Smartio C168H/HS User’s Manual...
“Interrupt No.” field. Type the desired base I/O address, in the “Base I/O Port Address” field. All the settings should match settings that are physically set on the board and conflict with no other devices. Smartio C168H/HS User’s Manual 3-10...
Page 33
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. Smartio C168H/HS User’s Manual 3-11...
Page 34
If you need to install more than one board, click [Add] and repeat steps 5 to 7 to configure another board. Up to four Smartio C168 Series boards can be installed in a system. Click [OK] to finish the configuration. Smartio C168H/HS User’s Manual 3-12...
Page 35
(See “Serial Programming Tools” chapter) or the Microsoft Win32 API. You can also execute any ready-made applications, PComm utility such as Terminal emulator (See “Serial Programming Tools” chapter) HyperTerminal transmit/receive data, as well as Remote Access Service to provide dial-up networking capabilities. Smartio C168H/HS User’s Manual 3-13...
Please see steps 5 to 7 in the previous section, “Installing Driver”, for more details. Click [Remove] to remove the board currently selected from the configured board list. Click [OK] to confirm the configuration changes you made. Click [Cancel] to leave the dialog with the configuration unchanged. Smartio C168H/HS User’s Manual 3-14...
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 “C168 Series”. Click on [Properties] button and then select [Driver] tab and then click on [Update Driver] button. Smartio C168H/HS User’s Manual 3-15...
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. Smartio C168H/HS User’s Manual 3-16...
“Serial Programming Tools”. Installing Driver Run the installation program, DOSINST.EXE, in the DOS driver diskette. Specify the target API-232 directory (e.g. C:\MOXA) where software driver will be copied. Press F2 to start the installation. Smartio C168H/HS User’s Manual 3-17...
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. Select “Smartio/Industio ISA Family” in the “Driver Selection” dialog box. Smartio C168H/HS User’s Manual 3-18...
Page 41
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. Smartio C168H/HS User’s Manual 3-19...
Page 42
Up to now you have completed the setup for Smartio C168 Series 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. Smartio C168H/HS User’s Manual 3-20...
Page 43
RxD buf size: The receiving (input) buffer allocated in the system for each port. F5: Group Edit: This is a convenient function that helps you edit the configuration of several ports at one time as a group. Smartio C168H/HS User’s Manual 3-21...
Setup driver … Device driver setup O.K. It means the Smartio C168 Series 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. Smartio C168H/HS User’s Manual 3-22...
Related issues such as device naming, baud rate settings and terminal enable are stated. If you are interested in UNIX serial programming, extended Ioctl() commands are provided in Chapter “Serial Programming Tools” for advanced programming. UNIX-specific troubleshooting is included in Chapter “Troubleshooting”. Smartio C168H/HS User’s Manual 3-23...
UNIX SVR4.2 (and UnixWare). Ask your dealer for newly supported device drivers. If your system is none of the listed, choose the closest one to try. Copyright (C) 199x Moxa Technologies Co., Ltd. All Rights Reserved. MOXA UNIX Device Driver Installation Ver. x.x Smartio C168H/HS User’s Manual...
Page 47
IO-IRQ utility under DOS environment. The IO-IRQ utility is contained in the Dos/Windows3.x driver diskette. Only up to two Smartio C168 Series boards are allowed to be installed under UNIX systems when MOXA UNIX driver is used. Smartio C168H/HS User’s Manual 3-25...
Page 48
“WARNING! C168 board interrupt vector disabled (Board base = 0x180 )!”, indicates the base address of the board is not found or interrupt vector of the board is disabled. In these cases, all ports will not work. Please see Chapter “Troubleshooting” for solutions. Smartio C168H/HS User’s Manual 3-26...
Users can use the administration utility, moxaadm, to change the Smartio C168 basic and advanced configuration, to monitor the ports' activity, to use terminal emulation and to remove the installed MOXA driver from the system. Smartio C168H/HS User’s Manual 3-28...
UNIX system “getty default” file, i.e., “/etc/gettydefs”. Modify this field to suit your need. In some cases, you may need to modify the “getty default” file as well. For example, in some UNIX systems, the “9600” symbol indicated 8-data-bit no-parity while in Smartio C168H/HS User’s Manual 3-29...
B38400 (mapped to 38.4K bps). If users wish to use the baudrate higher than 38.4K bps for MOXA boards, this baud rate will be re-mapped to the lower as defined in the below baudrate-mapping table: Smartio C168H/HS User’s Manual 3-30...
Page 53
Note: You can press F1 on-line help to get more baud rate mapping information. In [Port Feature Settings] sub-dialog, there are three noticeable fields: Rx FIFO Trigger Rx FIFO trigger levels, at 1, 4, 8 or 14 bytes, are available, and the default value is 14 bytes. Smartio C168H/HS User’s Manual 3-31...
Page 54
You can reset all ports' count by <HOME> key. <+> <-> (plus/minus) keys to change the displaying time interval. Press Enter on the port, that cursor stay, to view the port's communication parameters, signal status, and input/output queue. Smartio C168H/HS User’s Manual 3-32...
Page 55
Note that this is only a dumb terminal emulation without handling full screen operation. Besides, data scope function with pattern/file transfer is provided. 1. Select and Press Enter on item “Communication Setup” to setup up all the communication parameters for connection. Smartio C168H/HS User’s Manual 3-33...
Enter in this function entry and answer “Y” to confirm. Then the system will be rebuild. This may take some time. If you answer “N”, no action will be taken Smartio C168H/HS User’s Manual 3-34...
1. Edit (e.g. use vi editor) the file /etc/inittab. 2. Modify the tty entry from "ma11:23:off:/etc/getty ttye11 9600" to "ma11:23:respawn:/etc/getty ttye11 9600". 3. # init q Or refer to your UNIX system manuals for how to activate a tty port. Smartio C168H/HS User’s Manual 3-35...
To install PComm, please run \Setup.exe in the diskette. Note that PComm diagnostic and monitor utilities are for MOXA boards only. MOXA Windows NT or Windows 95/98 device driver as well as MOXA board are required. The driver are installed separately and detailed in Chapter “Software Installation”. Smartio C168H/HS User’s Manual...
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. Utilities The followings are short descriptions of each utility. For details, please see on-line help as running utilities. Smartio C168H/HS User’s Manual...
Page 61
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. Smartio C168H/HS User’s Manual...
Page 62
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. Smartio C168H/HS User’s Manual...
Page 63
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. Smartio C168H/HS User’s Manual...
SVR4.x UNIX. The variable moxa_fd is the returned file descriptor by open() a specific MOXA port. For example, int moxa_fd; moxa_fd = open(“/dev/ttye11”,O_RDWR); 1. MIBUFED This function let you know how many bytes queued in input buffer when this function is issued. Smartio C168H/HS User’s Manual...
Page 65
This function let you know the byte count queued in output buffer when this function is issued. Syntax for SCO UNIX/OpenServer #define MOBUFED 0x402 count; /* number of bytes queued in the output buffer */ ioctl(moxa_fd, MOBUFED, &count); Smartio C168H/HS User’s Manual...
Page 67
= (char *)&setting; ioctl(moxa_fd, I_STR, &ioc); 5. MLOWATER Sometimes the application software may not be able to write any further data to the output buffer because of the output buffer being full. The application has to wait Smartio C168H/HS User’s Manual...
Page 68
/* low water value of output buffer (default = 512 bytes) */ ioc.ic_cmd = MLOWATER; ioc.ic_timout = 0; ioc.ic_len = sizeof(int); ioc.ic_dp = (char *)&lowater; ioctl(moxa_fd, I_STR, &ioc); 6. MSTATUS This function is used to know the RS-232 line status (CTS/DSR/DCD). Smartio C168H/HS User’s Manual 4-10...
Page 69
(HWFLowControlOff) in order to take over the control of DTR or RTS signal via function MTCRTS or MTCDTR. MTCRTS and MTCDTR can be effective only after the RTS flow control bit of MHWFLOW is turned off. Smartio C168H/HS User’s Manual 4-11...
You can reset all ports' count by <HOME> key. <+> <-> (plus/minus) keys to change the displaying time interval. Press Enter on the port, that cursor stay, to view the port's communication parameters, signal status, and input/output queue. Smartio C168H/HS User’s Manual 4-13...
Page 72
Note that this is only a dumb terminal emulation without handling full screen operation. Besides, data scope function with pattern/file transfer is provided. 1. Select and Press Enter on item “Communication Setup” to setup up all the communication parameters for connection. Smartio C168H/HS User’s Manual 4-14...
Transfer library available, supporting Hayes compatible modem control as well as ASCII, KERMIT, XMODEM, YMODEM and ZMODEM file transfer protocol functions. For complete API-232 function description, please see file API-232.TXT in the API-232 directory for more details. Smartio C168H/HS User’s Manual 4-15...
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. The Diagnostic test utility provides port connection test with two MOXA ports connected via a properly wired cable. Smartio C168H/HS User’s Manual 4-16...
RTS is asserted and for receiving data if RTS is not asserted. RTS scheme is suitable for any system, including Windows NT and Windows 95/98, DOS, or UNIX, that permits RTS control from application programs. Smartio C168H/HS User’s Manual 4-17...
Page 76
4. Turn off RTS and ready for receiving data. */ For more information on these functions, please refer to PComm library on-line Help file for Windows NT and Windows 95/98 or API-232.txt file for DOS, respectively Smartio C168H/HS User’s Manual 4-18...
Opt8A: 8-port RS-232 DB25 female connection box Opt8B: 8-port RS-232 DB25 male connection box Opt8C: Octopus cable with 8 male RS-232 DB25 ports Opt8D: Octopus cable with 8 male RS-232 DB9 ports Opt8S: 8-port RS-232 DB25 surge protected female connection box Smartio C168H/HS User’s Manual...
Page 78
The followings are pin assignments for various connection options: Opt8A/S (DCE, DB25 Female) 20 DSR Opt8B/C (DTE, DB25 Male) 20 DTR Opt8D (DTE, DB9 Male) Smartio C168H/HS User’s Manual...
Page 79
PC COM2 port, Serial Printer, Opt8A/S Terminal, or any DTE Device Opt8A/S DTE Device DB25 Female DB25 Male Null Modem Cable PC COM2 port, Serial Printer, Opt8B/C Terminal, or any DTE Device Opt8B/C DTE Device DB25 Male DB25 Male Smartio C168H/HS User’s Manual...
Page 80
Terminal, or any DTE Device Opt8D DTE Device DB9 Male DB25 Male Type 2: To connect Smartio C168 Series to a DCE device. Null Modem Cable Modem, Opt8A/S or any DCE Device Opt8A/S DCE Device DB25 Female DB25 Female Smartio C168H/HS User’s Manual...
Page 81
Connection Option (Opt8x) and Cable Wiring Straight-through Cable Modem, Opt8B/C or any DCE Device Opt8B/C DCE Device DB25 Male DB25 Female Modem Opt8D or any DCE Device Opt8D DCE Device DB9 Male DB25 Female Smartio C168H/HS User’s Manual...
Page 82
PC COM2 port, Serial Printer, Opt8A/S Terminal, or any DTE Device Opt8A/S DTE Device DB25 Female DB25 Male PC COM2 port, Serial Printer, Opt8B/C Terminal, or any DTE Device Opt8B/C DTE Device DB25 Male DB25 Male Smartio C168H/HS User’s Manual...
Opt8F: Connection box with 8 female RS-422 DB25 ports and Max. 500V DC isolation protection which prevents damage caused by high potential voltage. Opt8Z: Connection box with 8 female RS-422 DB25 ports but without isolation protection. Smartio C168H/HS User’s Manual...
Page 84
Opt8J only 19 CTS-(A) The RS-422 transmission distance can reach as long as 4000ft. The connection box needs an external power adapter to supply 5V DC power. Either 110V or 220V AC power adapter is selectable. Smartio C168H/HS User’s Manual...
RTS+(B) CTS-(A) RTS-(A) Note: Stands for termination resistor near the receiving side 2. The suggested termination resistor for AWG #26 cable is 100 ohm. 3. The suggested termination resistor for phone cable is 600 ohm. Smartio C168H/HS User’s Manual 5-11...
The cable or the board is defective. You may use other ports, cables or boards to verify. In addition, the PComm “Diagnostic” utility for Windows NT and Windows 95/98 is good for testing MOXA boards and port conditions. If Diagnostic reports error, replace the faulty components. Smartio C168H/HS User’s Manual...
Page 90
4. What to do if user forgets or does not know the Configuration Access Port (CAP) address of Smartio C168 Series? The Smartio C168 Series multiport boards are designed without jumper or switch, so the configuration is completed only by DOS utility Io-irq.exe. Smartio C168H/HS User’s Manual...
Page 91
Enter CAP address 0xA700 to access the board. Enter the “Configuration Access Port” in HEX: A700 Step 6. The previous hardware configuration will be shown. Modify them if necessary. Remember the CAP address this time. Step 7. Exit the IO-IRQ. Smartio C168H/HS User’s Manual...
Please make sure there is no conflict with other adapter’s IRQ. Check the BIOS IRQ settings first. Make sure that an IRQ is available. 2. After the system reboots, the error message “Cannot find any configured MOXA Smartio/Industio Series board!” appears in the Event Log. Smartio C168H/HS User’s Manual...
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 Smartio C168 Series board by IO- IRQ.EXE. Then make sure the hardware configuration, including I/O Smartio C168H/HS User’s Manual...
The above error messages imply that the system resources are exhausted. You should tune the kernel parameters to a larger value and rebuild the kernel to be able to accommodate the new configuration. Refer to UNIX system manual about how to tune the parameters and rebuild kernel. Smartio C168H/HS User’s Manual...
Page 95
Please use the last good kernel backup to boot again. The kernel backup in SCO UNIX is /unix.moxa while in UNIX SVR4.2 /stand/unix.moxa. b. Then remove the C168 driver. Refer. c. Re-install the C168 driver once more. Smartio C168H/HS User’s Manual...
To increase the overall data throughput, special features such as on-chip FIFO and on-chip hardware flow control are used to reduce the number of interrupts to the onboard CPU and to prevent any loss of valuable data. Smartio C168H/HS User’s Manual...
Problem Report Form Smartio C168 Series Customer name: Company: Tel: Fax: Email: Date: 1. Moxa Product: Smartio C168 Series Model : oC168H oC168HS 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.
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 anti-static package, and send it, pre-paid, to the dealer.
Need help?
Do you have a question about the Smartio C168H and is the answer not in the manual?
Questions and answers