Intellio C218Turbo User’s Manual A High Performance 8 Port Async Board for ISA bus Dec. 1999 (3rd 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.
Intellio C218Turbo 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. 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 Option (Opt8x) and Cable Wiring".
Table of Contents Introduction ................................................................................ 1-1 Overview ........................................................................................................... 1-1 Features ............................................................................................................ 1-3 Check List.......................................................................................................... 1-3 System Requirements ............
PComm Programming Library .................................................................................... 4-2 Utilities ...................................................................................................................... 4-2 UNIX.................................................................................................................. 4-6 Programming the MOXA Ports.................................................................................
1 1 Introduction Overview Intellio - Intelligent Multiport Serial I/O Solutions The Intellio C218Turbo is an 8 port high performance intelligent serial interface board designed for 16-bit ISA bus. It is suitable for remote access, industrial control and office automation, where an 386/486/Pentium PC system needs to communicate with multiple modems, data acquisition equipment, serial printers and any other serial devices through RS-232/RS-422/RS-485 interfaces.
Surge/Isolation Protection To prevent the boards from damage caused by lightning or high potential voltage, TVSS (Transient Voltage Surge Suppressor) and high potential difference protector technologies are introduced in some connection options to protect the multiport controller. This is critical to harsh environment such as factory, severe weather such as lightning, or other high interference situations. Major Operating System Support It supports most popular O.S.
Introduction Features The following is a summary of all the outstanding features of C218Turbo: High speed serial communication channel-max. 921.6 Kbps per port (Max. speed may be limited by certain connection option such as Opt8J, which supports max. speed 460.8 Kbps only.
PComm Lite programming library and utilities for Windows NT/95/98 API-232 programming library and utility for DOS/Windows 3.x User’s Manual (PDF) C218Turbo User's Manual (This Manual) 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.
Introduction Installation Guide This section gives a brief summary of how to install the C218Turbo under each supported operating system. Installation is simple and involves the following stages: Set IRQ, memory address for the board Install C218Turbo board And connection option (cable/box) See Chapter 2 Install software from diskette And configure driver for board and ports See respective O.S.
1-6 Intellio C218Turbo User's Manual
2 2 Hardware Installation The installation of C218Turbo consists of hardware installation and software installation. For software installation, please refer to the respective section of operating systems in the next chapter. Hardware installation is stated in this chapter. You must manually assign the C218Turbo hardware configuration for IRQ and base memory address via a jumper and a switch. Hence, it is a must to have the board configured first before installing software driver.
JP1 (ON: install jumper) (*: default) 1 2 3 4 5 ON OFF OFF OFF OFF OFF ON OFF OFF OFF OFF OFF ON OFF OFF OFF OFF OFF ON OFF OFF OFF OFF OFF ON OFF OFF OFF OFF OFF OFF OFF OFF OFF OFF OFF OFF OFF OFF OFF OFF OFF OFF OFF OFF 6 OFF OFF OFF OFF OFF ON OFF OFF OFF 7 OFF OFF OFF OFF OFF OFF ON OFF OFF 8 OFF OFF OFF OFF OFF OFF OFF ON OFF 9 OFF OFF OFF OFF OFF OFF OFF OFF ON IRQ 2 3 4 5 7 10 11* 12 15 ASIC ON SW1 1 2 3 4 5 6 JP1 Step 4: Choose a base memory address (occupying 16KB) which is not used by
Hardware Installation Note ! Make a note of the selected IRQ number and base memory address for software driver configuration. Step 5: Remove the slot cover bracket if present. Step 6: Plug the C218Turbo Control Board firmly into any free 16-bit ISA slot. Step 7: Fasten the holding screw to make the Control Board fixed. Step 8: Replace the system cover. Step 9: Connect one of the connection box/cable (also adapter if required) detailed in the next section, “Installing Connection Option Opt8x”.
ASIC ON O 1 2N 3 4 5 6 C218 Turbo Opt8A/Opt8B/Opt8S Opt8C/Opt8D Hold one end of the DB62 cable and plug it into the DB62 connector on the bracket of the C218Turbo. Screw it carefully until it fits. P8 P7 P6 P5 ASIC ON O 1 2N 3 4 5 6 P4 P3 P2 P1 C218 Turbo Opt8C/Opt8D Opt8J/Opt8F/Opt8Z Hold one end of the DB62 cable and plug it into the DB62 connector on the bracket of the C218Turbo. Carefully screw it until it is tight.
Hardware Installation ASIC ON O 1 2N 3 4 5 6 C218 Turbo Opt8J/Opt8F/Opt8Z If you can't make the C218Turbo work properly after installation, please refer to Chapter “Troubleshooting”. Refer to Chapter “Connection Option (Opt8x) and Cable Wiring” for RS-232/RS422/RS-485 cable wiring. And also to Chapter “Serial Programming Tools” for RS232/RS-422/RS-485 programming details.
12345678 DIP ON RS-422/485 Port Switch of Opt8J 1 2 3 4 DIP 5 6 7 8 ON 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). RS-485 Mode The Opt8J supports only 2-wire RS-485 communication. Set the respective switch to ON position to use RS-485 interface. This means the port can transmit data only when RTS is asserted, and receive data only when RTS is not asserted (half-duplex).
3 3 Software Installation In this chapter, software driver installation, configuration and driver upgrade/removal procedures are described for various operating systems, including Windows NT, Windows 95/98, UNIX DOS, and Linux. Before proceeding with software installation, hardware installation detailed in previous Chapter should be completed in advance. However, if you need to develop your own applications, please refer to the next Chapter “Serial Programming Tools” for serial programming issues.
Installing Driver The following is the procedure for installing the C218Turbo driver for the first time under Windows NT 4.0. 1. Please Login NT as Administrator. 2. From [Control Panel], open [Network] icon and then select [Adapters] tab. 3. Click on [Add] button, then [Have Disk...] button for “Select Network Adapter”. 4. Specify the exact path for the driver diskette, A:\WINDOWS.NT. Then click on [OK] button.
Software Installation 5. Select “MOXA Intellio Family Multiport Board” in “Select OEM Option” dialog and then click [OK] to enter the “MOXA Configuration Panel” dialog box to start the installation. 6. In the “MOXA Configuration Panel” dialog box, click [Add] to enter “Property” dialog box to add the Intellio C218Turbo board. Select the “C218Turbo” in the “Board Type” field and choose the appropriate one, C800 to DC00, in the “Memory Bank” field and appropriate one, 2 to 15, in the “Interrupt No.
Setting” dialog box to change the port COM number mappings. 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”.
Software Installation Note ! You may skip the following settings and go directly to the next step 8 if you do not require any particular performance tuning for the driver. In the “Advanced Settings” dialog, you may customize the driver with the following two features: UART FIFO Enable: You can set this feature to “Enable” (default) and gain best performance for the board.
data throughput in large data transmission. Classical Mode: It lets MOXA ports behave like generic COM ports. Transmission for small data packets would be more precisely and reliable. 8. Click [OK] in the “Individual Port Setting” and the “Property” dialog boxes to go back to the “MOXA Configuration Panel” dialog box. Click [OK] to finish the configuration. However, if you installed more than one board, click [Add] and repeat steps 6 and 7 to configure another board.
Software Installation Note ! Please double check if all the C218Turbo components: Control Board, link cable and external cable/box, are connected and fastened tightly in order to ensure the system and driver will start successfully later. 11. After system restarted, you may check the event log issued by MOXA drive to see if the ports of the board are initialized successfully.
1. Open [Control Panel], click [Network] icon and select [Adapters] tab. 2. Select “MOXA Intellio Family Adapter” item for “Installed Adapter Cards:”. 3. Click on [Properties] button to start the “MOXA Configuration Panel” dialog. Please see steps 6-10 in the previous Section “Installing Driver” for more details.
Software Installation In this configuration panel, you may: Click [Property] to enter “Property” dialog box to configure the selected board with the correct “Memory Bank”, “IRQ” and “COM Number”. Please see steps 6 to 8 in the previous section, “Installing the Driver”, for more details, except that the “Board Type” field is not supposed to be changed. Click [Add] to add one more board that is not yet configured in the system.
Windows 95/98 Windows 95/98 supports up to 128 serial ports, from COM1 to COM128. To fully integrate the advanced features of Windows 95, multi-process and multi-thread, pure 32-bit Windows 95 virtual device port drivers (VxD) compliant with communication driver (VCOMM) are developed for C218Turbo and other MOXA multiport boards. The drivers conform to Win32 COMM API standard. If you are the first time driver installer, please go directly to the section “Installing Driver”.
Software Installation In this configuration panel, you may: Click on [OK] button to confirm the configuration changes you made. Click on [Cancel] button to leave the dialog with the configuration unchanged. Click on [Add] button to add one more board that is not yet configured in the system. At most four of combination of C218Turbo Series boards can be installed together as long as the memory resources are sufficient and available in a system.
In the “Property” dialog, you may click on [Port Setting] button to pop up the following “Individual Port Setting” dialog to change the port COM number mappings.
Software Installation In the “Individual Port Setting” dialog, you may have two ways to map the physical ports to COM numbers depending on the check box “Auto Enumerating COM number”. Sequential Port Mapping: (Enable “Auto Enumerating COM number”) Specify the COM number of the first port and subsequent ports are mapped to continuous COM numbers. For instance, if first port is mapped to COM10, then second port is mapped to COM11 sequentially.
In the “Advanced Settings” dialog, you may customize the driver with the following two features: UART FIFO Enable: You can set this feature to “Enable” (default) and gain best performance for the board. Disable: You can set this feature to “Disable” to avoid from data loss when communicating with communication devices using S/W flow control.
Software Installation 6. Restart Windows 95/98 system. Note ! The latest configuration will not take effect unless the system restarts. Note ! Please double check if all the C218Turbo components: Control Board, link cable and external cable/box, are connected and fastened tightly in order to ensure the system and driver will start successfully later. 7. When system restarts, all the error conditions of the board will be popped up onto the screen if any. Otherwise, everything should be fine.
Updating Driver Open [Control Panel] icon, and then [System] icon, and then select [Device Manager] tab. Then select and open the “Moxa Intellio Multiport Board” option and then select the “C218Turbo”. Click on [Property] button and then select [Device 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.
Software Installation UNIX There are various UNIX operating systems, such as SCO UNIX, UNIX SVR4.2, and Solaris, etc. Different types of UNIX drivers are required for different UNIXs. Moxa supports device drivers currently for SCO UNIX, UNIX SVR4.2, and XENIX. In this chapter, driver installation procedure is described. Administration utility, mxadm, is explained, which is for configuration, monitor and terminal emulation.
Follow the instructions prompted to finish the driver installation Copyright (C) 1999 Moxa Technologies Co., Ltd. All Rights Reserved. MOXA UNIX Device Driver Installation Ver. x.x Please select one of the following OS: 1. SCO UNIX 2. UNIX SVR4.2 3. XENIX Select: Please type 1 for SCO UNIX 3.2.x, SCO OpenServer or SCO Open Desktop. Type 2 for UNIX SVR4.2, UnixWare or MITUX. Type 3 for XENIX. Please select one of the devices where the driver diskette/files put: 1. /dev/fd0135ds18 (A: 1.44MB) 2.
Software Installation Step 7. After system rebooted, please run “mxadm” to configure the board and port settings. Select and open “Basic Configuration” to do basic board and port configuration. You may further optionally select and open “Advanced Configuration” to do advanced settings. Select and open “Board Reset” to reset the driver and board for the latest configuration to take effect. For more details, see later Section “Administration Utility “mxadm””.
MOXA TTY Device Naming Convention If the C218Turbo is successfully configured, there will be two tty devices created for each port at /dev directory: one is non-MODEM tty (e.g. ttya11), and the other is MODEM tty (e.g. ttyA11). The two devices are actually accessing the same port except that the MODEM tty has to check the ON status of DCD signal to be able to open device, and closing device automatically as DCD signal is OFF.
Software Installation Administration Utility “mxadm” You can use the administration utility, mxadm, to change the C218Turbo basic and advanced configuration, to reset the board, to tune performance and to remove the installed MOXA driver from the UNIX system, which are detailed as follows. For the details of the rest utilities: port monitoring, and terminal emulator, please refer to Section “UNIX” of Chapter “Serial Programming Tools”.
In the “Basic Configuration” dialog, you should first press Enter in board type field to select board type, C218Turbo. Then press Enter in Memory field to select desired base memory bank. 2. Press PageDown to enter “getty Setting” sub-dialog, there are some noticeable fields for initialize the port for getty usage. You may skip this step if you will not use getty utility. Non-Modem and Modem Baud Rate This field stands for the initial baud rate symbol and hunt sequence for Non-Modem /Modem tty.
Software Installation In some cases, you may need to modify the “getty default” file as well. For example, in some UNIXs, the “9600” symbol indicated 8-data-bit no-parity while in others it may stand for 7-data-bit, even-parity. So, please examine the “getty default” file carefully, and make sure the terminal settings is the same. Otherwise, garbled data will be inevitable.
Baud Rate Mapping This advanced feature is set to “High Band” by default, indicating that the baud rate 50, B50, will no longer stand for 50 bps. Instead, B50 means 57600 bps, B75 is for 115.2 Kbps, B110 is for 230.4 Kbps, and B134 is for 460.8 Kbps, and B150 is for 921.6 Kbps. You may press F1 Help for on-line details. If this feature is set to “Low Band”, the original definition of UNIX baud rate mapping are used. 2.
Software Installation Feature In “Port Feature Settings” sub-dialog, port feature [Terminal] is the only choice if On Board Line Discipline is set to “Enable”. This is good for terminal application users. However, if On Board Line Discipline is set to “Disable”, port feature could be either [Transparent] or [Terminal]. In case of [Terminal], all the tty line discipline jobs will be done on host which surely is a burden to the host.
Performance Tuning The utility let you tune the favored response time for those ports with Resp = Norm or Slow in [Port Feature] sub-menu of Advanced configuration. Ten response time levels (0-9) are available for tuning. The idea is that the faster response time will consume more host CPU resource while slower response consume less resource. If the host CPU is fast enough or a quick response is highly demanded, choose level 9 would be suitable.
Software Installation However, before the board reset is issued, user must make sure that 1. All enabled ports must be disabled. 2. All processes related to the C218Turbo, including getty or tty monitor, are killed. After board reset, the following message may show if it is successful. MOXA Serial I/O Board (Ver x.x) Downloading MOXA-C218Turbo (MemBank=XX000) is found. If one of the following messages appears, please see Chapter “Troubleshooting”.
Checking Board Initialization Status When the system starts up and enters into the multiuser mode, you should see the board initialization status report, which is same as one of the messages described in the “Board Reset” part of previous Section. Setting MOXA Ports to Terminal To enable the “Terminal” port for login purpose, taking ttya11 as an example, SCO UNIX/OpenServer/Open Desktop/XENIX, # enable /dev/ttya11 UNIX SVR4.2, UnixWare and MITUX, 1. 2. 3. Edit (e.g. use vi editor) the file /etc/inittab.
Software Installation DOS With over ten years of professional expertise in serial communications, Moxa provides high-performance DOS device drivers and powerful library functions, which are integrally called DOS API-232. MOXA DOS device driver supports maximum of 256 serial ports. In this chapter, driver installation, setup, loading and unloading procedures are described. Device naming issue is discussed.
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 configuring the C218Turbo boards and setup the 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. First, press Enter on the board type field to specify the board type, C218Turbo. 3. Now the default base memory address and IRQ of the desired C218Turbo board will be shown along with default port number range.
Legend Board Type: Ports: Port number: Choose the board type, C218Turbo. The number of ports for C218Turbo, which is 8. 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. Memory Bank: Base memory address of the board. Duplication is not allowed. Interrupt no.: The IRQ number of the board. All C218Turbo boards will share one same IRQ.
Software Installation Legend: Some noticeable fields and functions are explained below. On board TxD buf: The transmit (output) buffer already allocated on the C218Turbo board for each port. Cannot be altered. On board RxD buf: The receive (input) buffer already allocated on the C218Turbo board for each port. Cannot be altered. External RxD buf: Extra receive (input) buffer you wish to allocate for each port. This will consume the DOS conventional memory. Default value is 0.
5. To setup more boards, please follow the same instructions 2 to 4 described above. The maximum supported number of C218Turbo boards is 4 in one system under the DOS system as long as free ISA slots are available and IRQ and Memory resources are not used up. Driver Loading Having completed the setup, you can load the driver, “BIN\MX-DRV.EXE”, at the DOS prompt. The driver will detect the C218Turbo automatically. If the board(s) is(are) detected, a message similar to below will show: API-232 Version x.
Software Installation 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 x.x MOXA Intellio ISA series communication driver Setup driver … C218Turbo board 1: Bank [xxx] not found! Driver execution failure! It means the C218Turbo driver is not installed properly. Please refer to Chapter “Troubleshooting” for possible reasons and solutions.
3-36 Intellio C218Turbo 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, UNIX, and DOS. 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.
UNIX Programming the MOXA Ports The system calls that apply to standard tty port can also be applied to MOXA port since MOXA port conforms to UNIX tty standard. System calls are like open(), ioctl(), read(), write(), close(), etc. Please refer to your UNIX Programmer's Reference manual. However, these system services only provide limited functions and thus may not satisfy the sophisticated programmers' need.
Serial Programming Tools Syntax for SCO UNIX/XENIX #define MIBUFED 0x401 int count; /* number of bytes queued in the buffer */ ioctl(moxa_fd, MIBUFED, &count); Syntax for UNIX SVR4 #include #include #define MIBUFED 0x401 struct strioctl ioc; int count; /* number of bytes queued in the buffer */ ioc.ic_cmd = MIBUFED; ioc.ic_timout = 0; ioc.ic_len = sizeof(int); ioc.
ioc.ic_dp = (char *)&count; ioctl(moxa_fd, I_STR, &ioc); Note: See MIBUFED for influence of STREAMS driver. 3. MTCRTS This function, only valid when hardware flow control is turned off (see MHWFLOW), is used to drive RTS signal on or off. Syntax for SCO UNIX/XENIX #define MTCRTS #define TurnON #define TurnOFF 0x403 1 0 ioctl(moxa_fd, MTCRTS, TurnON); ioctl(moxa_fd, MTCRTS, TurnOFF); Syntax for UNIX SVR4 #include #include #define MTCRTS #define TurnON #define TurnOFF struct strioctl int
Serial Programming Tools Syntax for SCO UNIX/XENIX #define MTCDTR 0x404 #define TurnON 1 #define TurnOFF 0 ioctl(moxa_fd, MTCDTR, TurnON); ioctl(moxa_fd, MTCDTR, TurnOFF); Syntax for UNIX SVR4 #include #include #define MTCDTR #define TurnON #define TurnOFF struct strioctl int 0x404 1 0 ioc; setting; setting = TurnON /* or TurnOFF */; ioc.ic_cmd = MTCDTR; ioc.ic_timout = 0; ioc.ic_len = sizeof(int); ioc.ic_dp = (char *)&setting; ioctl(moxa_fd, I_STR, &ioc); 5.
Syntax for SCO UNIX/XENIX #define MLOWATER int 0x405 lowater; /* low water value of output buffer (default = 512 bytes) */ ioctl(moxa_fd, MLOWATER, lowater); Syntax for UNIX SVR4 #include #include #define MLOWATER 0x405 struct strioctl ioc; int lowater; /* 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.
Serial Programming Tools 7. MHWFLOW This function is used to enable/disable hardware flow control. The first open() function of a port will set the hardware flow control bits on or off depending on the [RTS/CTS Hardware Flow Control] configuration in mxadm. However, users might want to control the DTR or RTS signal on their will, thus the RTS flow control bit should be turned off (HWFLowControlOff) in order to take over the control of DTR or RTS signal via function MTCRTS or MTCDTR.
Utilities You can use the administration utility, mxadm, to monitor port activity and to do terminal emulation, which are details as follows. Port Monitoring This utility gives you a quick view about all the MOXA ports' activities. You can easily learn each port's total received/transmitted (Rx/Tx) character count since the time when the monitoring is started. Rx/Tx throughputs per second are also reported in interval basis (e.g.
Serial Programming Tools Terminal Emulator This utility provides data sending and receiving ability of all tty ports, especially for MOXA ports. It is quite useful for testing simple application, for example, sending AT command to a modem connected to the port or used as a terminal for login purpose. 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.
2. Select and enter “Terminal” to enter terminal emulation. Or select and enter “Advanced Transfer Modes” to perform pattern or file transfer with protocols such as ZModem.
Serial Programming Tools 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 ..
Data Scope The Data Scope, BIN\SCOPE.EXE, is a suite of utility programs that can help users with system troubleshooting and serial communication debugging. 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.
Serial Programming Tools 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.
RS-485 Programming for Opt8J If you intend to do RS-485 communication with Opt8J, please follow the RS-485 programming guide below and also refer to Chapter “Connection Option (Opt8x) and Cable Wiring” for more Opt8J RS-485 operation details. The Opt8J supports only 2-wire half-duplex RS-485 communication. Data+/- pins are served for both data transmitting and receiving, depending on the RTS signal. The port switch of each port should be set to On position.
Serial Programming Tools sio_write(port, buff, 10); /* Write 10 byte characters in "buff". The function blocks until last character transmitted */ /* Turn off RTS signal. The RS-485 port is ready for receiving data. */ /* Read 10 bytes */ sio_RTS(port, 0); sio_read(port, buff, 10); Solution 2 There is a dedicated RS-458 function in PComm or API-232 library. It integrates the above functions of solution 1 regarding sending data as one. sio_putb_x(port, buff, tick ); /* 1.
4-20 Intellio C218Turbo User's Manual
5 5 Connection Option (Opt8x) 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.
The followings are pin assignments for various connection options: Opt8A/S (DCE, DB25 Female) 2 3 4 5 6 7 8 20 RxD TxD CTS RTS DTR GND DCD DSR Opt8B/C (DTE, DB25 Male) 2 3 4 5 6 7 8 20 TxD RxD RTS CTS DSR GND DCD DTR Opt8D (DTE, DB9 Male) 1 2 3 4 5 6 7 8 DCD RxD TxD DTR GND DSR RTS CTS 5-2 Intellio C218Turbo User's Manual DSR 20 8 7 6 5 4 3 2 DCD GND DTR RTS CTS TxD RxD
Connection Option (Opt8x) and Cable Wiring Type 1: To connect C218Turbo to a DTE device.
PC COM2 port, Serial Printer, Terminal, or any DTE Device Opt8D Opt8D DTE Device DB9 Male DB25 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 TxD RxD RTS CTS DSR DTR GND DCD Type 2: To connect C218Turbo to a DCE device.
Connection Option (Opt8x) and Cable Wiring Straight-through Cable Modem, or any DCE Device Opt8B/C Opt8B/C DCE Device DB25 Male DB25 Female TxD RxD RTS CTS DSR DTR GND DCD 2 3 4 5 6 20 7 8 2 3 4 5 6 20 7 8 RxD TxD CTS RTS DTR DSR GND DCD Modem or any DCE Device Opt8D Opt8D DCE Device DB9 Male DB25 Female RxD TxD CTS RTS DTR DSR GND DCD 2 3 8 7 4 6 5 1 2 3 4 5 6 20 7 8 RxD TxD CTS RTS DTR DSR GND DCD Intellio C218Turbo User's Manual 5-5
Type 3: To connect C218Turbo to a DTE with 3-pin wiring. If [Hardware flow control] feature is set to “ON”, user must loop back (or short) the RTS with CTS and DSR with DTR, DCD on MOXA site.
Connection Option (Opt8x) and Cable Wiring PC COM2 port, Serial Printer, Terminal, or any DTE Device Opt8D Opt8D DTE Device DB9 Male DB25 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 TxD RxD GND RTS CTS DTR DSR DCD If [Hardware flow control] feature is set to “OFF”, users could just leave RTS, CTS, DSR, DTR, DCD open.
PC COM2 port, Serial Printer, Terminal, or any DTE Device Opt8B/C Opt8B/C DTE Device DB25 Male DB25 Male TxD RxD GND RTS CTS DSR DTR DCD 2 3 7 4 5 6 20 8 2 3 7 4 5 6 20 8 TxD RxD GND RTS CTS DTR DSR DCD PC COM2 port, Serial Printer, Terminal, or any DTE Device Opt8D Opt8D DTE Device DB9 Male DB25 Male RxD TxD GND RTS CTS DTR DSR DCD 5-8 Intellio C218Turbo User's Manual 2 3 5 7 8 4 6 1 2 3 7 4 5 6 20 8 TxD RxD GND RTS CTS DTR DSR DCD
Connection Option (Opt8x) and Cable Wiring RS-422 Cable Wiring for Opt8J/F/Z RS-422 connection boxes designed for C218Turbo are: Opt8J: Opt8F: Opt8Z: Connection box with 8 female RS-422/485 DB25 ports. Set the port switch to OFF position (RS-422) for the desired port(s). Connection box with 8 female RS-422 DB25 ports and Max. 500V DC isolation protection which prevents damage caused by high potential voltage. Connection box with 8 female RS-422 DB25 ports but without isolation protection.
The followings are operation modes for RS-422: RS-422 Point-to-point Opt8J/F/Z 3 TxD+(B) 16 TxD-(A) 2 RxD+(B) 14 RxD-(A) 7 GND RS-422 Device RxD+(B) RxD-(A) TxD+(B) TxD-(A) GND RS-422 Broadcasting Opt8J/F/Z 3 TxD+(B) 2 RxD+(B) 16 TxD-(A) 14 RxD-(A) 7 GND RS-422 Device 1 RxD+(B) TxD+(B) RxD-(A) TxD-(A) GND RS-422 Device N RxD+(B) TxD+(B) RxD-(A) TxD-(A) GND Opt8J RS-422 with Handshaking Opt8J 3 TxD+(B) 16 TxD-(A) 2 RxD+(B) 14 RxD-(A) 7 GND 5 RTS+(B) 13 RTS-(A) 4 CTS+(B) 19 CTS-(A) 5-10 Intellio C218Tur
Connection Option (Opt8x) and Cable Wiring RS-485 Cable Wiring for Opt8J One RS-485 connection box designed for C218Turbo is: Opt8J: Connection box with 8 female RS-422/485 DB25 ports. Set the port switch to ON position (RS-485) for the desired port(s). The Opt8J supports only 2-wire half-duplex RS-485 communication. Data+/- pins are served for both data transmitting and receiving, depending on the RTS signal.
RS-422/485 Impedance Matching For RS-422/485 serial communications, when an electrical signal travels through two different resistance junctions in a transmission line, the impedance mismatch will sometimes cause signal reflection. Signal reflection causes signal distortion, which in turn will contribute communication errors. The solution to this problem is to establish the same impedance at the line ends as in the line itself by terminating them with resistors.
6 6 Troubleshooting Common C218Turbo problems and possible solutions are listed below, in addition to those operating systems specific ones. If you still have problems, contact your dealer or Moxa for help. Or report it using “Problem Report Form” at the end of this manual to your dealer at once for faster technical support. General Troubleshooting This section is for general problems and solutions. Troubleshooting specific for various O.S. is detailed in the following Sections. 1.
e. Your mother board does not have vacant IRQ for the C218Turbo. Make sure the desired IRQ is available and not used by other ISA board or reserved by PCI bus in PCI/PnP BIOS. 2. MOXA board and driver (transmitting/receiving) data. activated but can not transfer Hardware Causes and Solutions a. Check messages issued by Moxa driver and make sure the driver is successfully activated without any problem. b. Check if wrong cable wiring.
Troubleshooting Windows NT This section is specific for troubleshooting under Windows NT. For general problems and solutions, please see previous Section “General Troubleshooting”. 1. After system reboot, error message “MOXA C218Turbo Series Multiport Board at base memory [XX000]: IRQ test failure!” appears in Event Log. a. IRQ number assigned in driver is not identical to IRQ setting on the Moxa board. b. Other PCI devices occupy the assigned IRQ. Please reboot and enter BIOS.
Windows 95/98 This section is specific for troubleshooting under Windows 95/98. For general problems and solutions, please see previous Section “General Troubleshooting”. 1. After system reboot, error message “C218 Turbo at base memory [XX000] is absent or occupied by others!” appears. a. Make sure you’re using the right driver. Please note that C218 plus board requires version 3.x driver while C218Turbo board requires version 5.x driver. b. Check if the board is properly plugged into ISA/EISA bus slot. c.
Troubleshooting UNIX This section is specific for troubleshooting under UNIX. For general problems and solutions, please see previous Section “General Troubleshooting”. 1. During system reboot, error message “WARNING! C218Turbo (XX000) not found!” appears. a. Make sure you’re using the right driver. Please note that C218 Plus board requires version 3.x driver while C218Turbo requires version 5.x driver. b. Check if the board is properly plugged into ISA/EISA bus slot. c.
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. “Time out table overflow”: NCALL parameter too small. “File table overflow”: NFILE or NINODE parameter too small. “Region table overflow”: NREGION or NPROC parameter too small. 5. The newly rebuilt kernel could not boot.
Troubleshooting DOS This section is specific for troubleshooting under DOS. For general problems and solutions, please see previous Section “General Troubleshooting”. 1. After executing MX-DRV.EXE, error message “MOXA C218Turbo Series Multiport Board at base memory [XX000] not found!” appears. a. Make sure you’re using the right driver. Please note that C218 Plus board requires version 3.x driver while C218Turbo board requires version 5.x driver. b.
6-8 Intellio C218Turbo User's Manual
A A Technical Reference Specifications Bus interface : Number of ports: Max. boards: Base memory addr.: IRQ: RISC processor: On-board buffer: Comm. controller: Speed (bps): Data bits : Stop bits : Parity: Data signals: Connectors: Surge protection: Operating temp.
C218Turbo Windows NT Windows 95/98 SCO UNIX/OpenServer/XENIX UNIX SVR4.2 DOS Linux 2.0.x/2.2.x ✓: Note: ✓ ✓ ✓ ✓ ✓ ✓ Driver supported by Moxa and shipped with product MOXA FTP service is available for newest driver download Dual-Ported RAM There is 512 KB of dual-ported DRAM on the C218Turbo, which is used as a data buffer and memory map device for the mother board. It is called “dual-ported” because it is accessed by both mother board CPU and the C218Turbo on-board CPU.
Technical Reference DB62 Connector Pinouts The following lists the pin assignments of the DB62 connector on the bracket. You may fabricate octopus cable for DB25 to 8 x DB9 with these pin outs information. Pin no. Signal Pin no. Signal Pin no.
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.
Problem Report Form Intellio C218Turbo Customer name: Company: Tel: Email: Fax: Date: 1. Moxa Product: C218Turbo Serial Number:___________ 2. Moxa Driver Version: ________________ 3. Moxa hardware settings: Memory Bank Address: ________ IRQ: ________ 4. Operating System: DOS Windows 95 Windows 98 Windows NT 3.51 Windows NT 4.0 SCO UNIX 3.2.4 SCO OpenServer Release 5 XENIX SVR4.2 UNIX (SCO) UnixWare ver _._ Linux2.0.x Linux2.2.x other 5.