The content of this manual is also available in CD-ROM and at Moxa Web Site.
May 1999 (6th Edition)
Moxa Technologies Co., Ltd.
Tel:+866-2-8665-6373
Fax:+886-2-8665-6372
www.moxa.com
support@moxa.com.tw
Smartio C104H/HS 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.
Disclaimer
Information in this document is subject to change without notice and does not represent a commitment on
the part of Moxa.
Moxa provides this document “as is”, without warranty of any kind, either expressed or implied,
including, but not limited to, the particular purpose. Moxa may make improvements and/or changes in
this manual or in the product(s) and/or the program(s) described in this manual at any time.
Information provided in this manual is intended to be accurate and reliable. However, Moxa
Technologies assumes no responsibility for its use, or for any infringements of rights of the fourth parties
which may result from its use.
This product could include technical or typographical errors. Changes are periodically made to the
information herein; these changes may be incorporated in new editions of the publication.
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
addres
s:support@moxa.com.tw
FTP site for free driver update
address:
user ID: ftp
password:your_email_address
World Wide Web (WWW) Site for product info
address:
ftp.moxa.com
or
ftp.moxa.com.tw
www.moxa.com
or
www.moxa.com.tw
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”.
If you encounter any problem during installation, please refer to Chapter “Troubleshooting”.
+ In this manual, C104 Series refers to C104H and C104HS.
Chapter 1 Introduction
Overview and features of the Smartio C104 Series boards, list of items and overall installation guide.
Chapter 2 Hardware Installation
Hardware installation for the Smartio C104 Series boards and connection cable.
Chapter 3 Software Installation
This Chapter details the software installation, configuration, driver loading/unloading, driver
upgrade and removal for various operating systems: Windows NT, Windows 95/98, DOS and
Windows 3.x.
Chapter 4 Serial Programming Tools
This Chapter roughly describes the programming tools for various O.S. platforms, including PComm
under Windows NT, Windows 95/98, API-232 under DOS and Windows 3.x.
Chapter 5 Connection Cable and Cable Wiring
This Chapter describes the RS-232 cable wiring for the connection cable.
Chapter 6 Troubleshooting
This Chapter describes the problems and possible answers for Smartio C104 Series boards.
Appendix Technical Reference
Specification details, UART, I/O port address map, and DB37 pinouts are described.
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. With the well-designed and fine-tuned device driver, the
Smartio boards make full use of the 32 byte Tx/Rx FIFO and on-chip H/W flow
control, so that they can transfer data without data loss even at high speed such as
921.6 Kbps, which offers a reliable and high performance solution for serial
multiport communications.
The
Smartio C104 Series 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. Full range of I/O addresses and IRQs are
available. In addition, with
the family is designed without jumper or switch. These features make each port on
the board truly independent to any other port and thus compatible with most existing
multiport boards.
on-board EEPROM for storing the configuration data,
The
Smartio Series is also available in PCI bus. Please contact MOXA
dealer/distributor or MOXA Web site for more details.
Smartio C104H/HS User’s Manual 1-1
Hardware Configuration Method
JP1
Switch
Smartio
ON
1 2 3 4
Family
Jumper
.........
.........
Traditional
Multipoort Board
New : set I/O addressTraditional : set switch and
and IRQ via softwareand jumper manually for
Utility.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,
read and write the on-board EEPROM for configuration information through the
CAP (Configuration Access Port) address. The CAP address is the only channel
via which the configuration utility Io-irq.exe can access the board, which is identical
to
the first port's base I/O address.
The only jumper,
Normally JP1 is left open. When JP1 is short, the CAP address is forced to a fixed
I/O address,
must to keep JP1 always short.
JP1, is designed in case that users forget the CAP address.
0xA700. However, to adopt quick installation (described later), it is a
Io-irq.exe, which
Quick Installation
To ease the hardware configuration, users who install only one Smartio C104
Series board under Windows NT/95/98
installation
Because the series 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.
1-2 Smartio C104H/HS User’s Manual
are recommended to adopt quick
described in Chapter 2.
Introduction
Surge Protection
To prevent the boards from damage caused by lighting or high potential voltage,
surge protection technology is introduced in some model to protect the board.
Operating System Support
The series 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.
For other compatible systems not mentioned, please refer to the respective operating
system’s manual for how to install and configure the standard driver.
MOXA Serial Comm Tool
For easy application development, MOXA provides an easy-use serial
communication library under Windows NT/95/98 (
(
API-232). Users can use this library to develop your own applications using
Microsoft C, Turbo C, Assembly, QuickBASIC, Turbo Pascal, Clipper, Visual Basic,
Visual C++, Borland Delphi, etc.
Utilities, such as diagnostic and monitor, are
included for diagnosing the board/port or monitoring the communication status.
PComm) and Windows 3.x/DOS
Wide Applications
The Smartio C104 Series are suitable for many applications. Here are a few:
l Internet/Intranet Connection
l Remote Access Application
l Multi-user Application
l Industrial Automation
l Office Automation
l Telecommunication
l PC-based (vending) Machine or Kiosk System
l Point-of-Sale (POS) System
Smartio C104H/HS User’s Manual 1-3
Features
The Smartio C104 Series consists of members as follows,
C104H4 port RS-232, high speed 16550C or compatible UART
C104HS4 port RS-232, surge protection, 16550C or compatible UART
v Custom-designed ASIC, compact board size (half-size)
v No switch no jumper, easily configured by software
v Independent I/O address, IRQ setting for each of 4 serial ports
v 16 bit AT bus architecture, more IRQs supported
v Surge protection for RS-232 (C104HS)
v High speed 16550C Communication Controller with on-chip hardware flow
control, no data loss
v PComm serial communication tool
v Support popular OS¡ÐWindows NT, Windows 95/98, DOS, Windows 3.x,
Linux
vCompatible with many other OS¡ÐQNX, SCO UNIX/OpenServer, SCO
XENIX, PICK OS, Multiuser DOS, Free BSD, OS/2
C104H/HS
Windows NT
Windows 95/983
DOS3
Windows 3.x3
LinuxR
QNXC
SCO UNIX/OpenServerC
SCO XENIXC
FreeBSDC
OS/2C
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
1-4 Smartio C104H/HS User’s Manual
3
Check List
Smartio
C104 Series
Introduction
Upon unpacking the Smartio C104 Series package, you should find the following
items in the package,
v Smartio C104 Series 4-port high performance async board
v Device driver diskettes:
l Windows NT and Windows 95/98 ¡Ñ1
l DOS/Windows 3.x ¡Ñ1
v C104H/HS User's Manual (This Manual)
v PComm Lite diskette ¡Ñ1
v Opt 4C: DB37 to 4¡ÑDB25 male connectors or
Opt 4D: DB37 to 4
¡ÑDB9 male connectors
P1P2
P3P4
Smartio C104H/HS User’s Manual 1-5
Installation Guide
This section gives a brief summary of how to install the Smartio C104 Series under
each supported operating system. The installation is simple and involves the
following stages:
Configure
io-irq.exe. See Chapter “Hardware
Install the
Install the software from the disketteSee Chapter “Software
Configure the driver for the board and portsInstallation” for respective OS
Connect the devices with the cable See Chapter “Connection
Restart the systemSee Chapter “Software
Check the driver initialization statusInstallation”
If the system restart successfully, you may
develop your applications orSee Chapter “Serial
execute the desired applicationsProgramming Tools”
Smartio C104 Series with
Smartio C104 Series board Installation”
Cable and Cable Wiring”
1-6 Smartio C104H/HS User’s Manual
2
JP1
Smartio C104 Series
2
2 Hardware Installation
The installation of the Smartio C104 Series 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.
Default Settings
The Smartio C104 Series has the following default (factory) settings:
I/O address:
IRQ:10
INT Vector:0x1C0
CAP Jumper JP1: Open
Note !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 C104H/HS User’s Manual 2-1
Now you should do either the normal hardware installation (detailed in the later
section, “Hardware Installation with IO-IRQ Utility”) or
installation
latter is provided to facilitate the hardware installation, only under the circumstances
that:
u Only one Smartio C104 Series board is allowed to install in a system.
u Windows NT and 95/98 are the only operating systems supported.
u I/O address 0xA700 must be free
(detailed right in the next section, “Quick Hardware Installation”). The
Quick Hardware Installation
To fully utilize the superior feature of flexible hardware configuration design of the
Smartio C104 Series, a quick and easy method of installation is designed for users,
which absolutely free the users from hardware configuration effort, i.e.,
without running configuration program: Io-irq.exe
jumper JP1. The software and hardware configuration will be completed at the same
time while doing the software configuration.
the quick hardware
installation
. Simply always short the
Besides, the speed range will be set to
called
High Speed Spectrum and detailed in the section, “Hardware Installation
with IO-IRQ Utility”.
How to Do Quick Hardware Installation
Users who install only one Smartio C104 Series board under Windows NT/95/98
are strongly recommended to do the quick installation as follows:
1. Short the jumper JP1 on the upper-left corner of the board.
2. Plug the board in PC with the desired system installed, which is powered off in
advance.
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 software
2-2 Smartio C104H/HS User’s Manual
from 50 to 921.6K bps by default, which is
Hardware Installation
configuration program will automatically update the hardware settings.
After this, users already complete the whole installation.
4. Shutdown System (Windows NT/95/98).
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. However, remember to
cold start the system every time the
configuration changed.
Hardware Installation with IO-IRQ Utility
This section is for those who can not use quick hardware installation:
u Install two or more Smartio C104 Series boards in a system.
u Fail to install, due to the I/O address 0xA700 is not available or has conflict in the system.
u Use operating systems other than Windows NT and 95/98.
Before proceeding the
Installation”, do
software installation, detailed in the next chapter, “Software
hardware configuration to setup the I/O address and IRQ with
“Io-irq.exe”, detailed in the next section.
Remember to keep the hardware settings in mind for the software installation.
The
Smartio C104 Series has the following default (factory) settings:
Because the ASIC-designed Smartio C104 Series has no switch and no jumper for
configuring manually the I/O address, IRQ, INT vector, etc. of the boards, you
must
Smartio C104H/HS User’s Manual 2-3
run the software utility, Io-irq.exe, in the driver diskette under DOS system to
change the hardware configuration.
1. Choose a PC that has DOS system inside.
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.
The
Smartio C104 Series has the following default (factory) settings,
I/O address:
IRQ:10
INT Vector: 0x1C0
Configuration Access Port (CAP): 0x180
5. Run the utility “Io-irq.exe” contained in the driver diskette to set up I/O address,
IRQ and INT vector of the board. Please refer to the next section, “IO-IRQ Utility
and Hardware Configuration” for more details. Or follow the on-line help to
configure the
After completing the hardware configuration, the board is ready for use under
operating systems, such as Windows NT and 95/98, DOS, Windows 3.x, etc.
Smartio C104 Series board.
IO-IRQ Utility and Hardware Configuration
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
correctly. With the correct CAP address, the utility can find the configuration stored
in the
on-board EEPROM and display it on the configuration panel. The CAP
address is the only channel via which the configuration utility Io-irq.exe can access
the board.
2-4 Smartio C104H/HS User’s Manual
0xA700. The CAP address must be typed
Hardware 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.
Smartio C104H/HS User’s Manual 2-5
3. Enter the CAP address of the Smartio C104 Series board to be configured.
4. Configure the following parameters as necessary.
Port IndexIndicate the port index for each port.
I/O addressEnter the base I/O address for each port, either sequentially or
not. Avoid to conflicting with any other devices.
IRQEnter the IRQ, 2, 3, 4, 5, 7, 10, 11, 12 or 15, for each port,
independently or not.
SpeedThis 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.
both normal and high speed spectra.
2-6 Smartio C104H/HS User’s Manual
Smartio C104 Series support
Hardware Installation
Note that, currently, port that uses MOXA Windows NT and
95/98 driver
Smartio C104 Series board is configured as High Speed
Spectrum
NT and 95/98 driver
example, the displayed speed 38.4 Kbps is equal to the working
speed 38.4 Kbps.
will run at the displayed speed. To be clear, when
, any port driven by the Moxa-provided Windows
will display the exact working speed. For
However, if the port is driven by
such as
standard serial driver, or Moxa drivers other than
Windows NT and 95/98, such as
equal to
8 times of the displayed speed. For example, a port, if
NON Moxa-provided driver,
DOS, the real working speed is
set to Normal Speed Spectrum with 38.4 Kbps, will work at 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
INT VectorEnter 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.
5. Press F10 to save the configuration and exit the utility.
2-8 Smartio C104H/HS User’s Manual
There are two modes for the
using interrupt vector, the other is not using interrupt vector.
Driver employing interrupt vector scheme is supposed to have
better performance than employing polling scheme.
Smartio C104 Series driver. One is
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”.
If it is necessary for you to develop your own applications, please also refer to the
next chapter, “Serial Programming Tools”, for programming issues.
Windows NT
Windows NT supports up to 256 serial ports, from COM1 to COM256. To fully
integrate the advanced features of Windows NT, multi-process and multi-thread,
pure 32-bit Windows NT device drivers are developed for the
multiport boards. The driver conforms to Win32 COMM API standard.
3
3
3 Software Installation
Smartio C104 Series
l To install the driver for the first time, please go directly to the next section,
“Installing Driver”.
l 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”.
l To update or remove the driver, please go to the section, “Updating Driver” or
“Removing Driver”.
Smartio C104H/HS User’s Manual 3-1
Installing Driver
Following is the procedure for installing the Smartio C104 Series driver for the
first time
Note !Make sure the board(s) has(have) already been plugged in the system
1. Please log in NT as Administrator.
2. Open the [Control Panel], click on the [Network]icon and select the
3. Click on the [Add]button, thenthe [Have Disk...] button in “Select Network
4. Specify the exact path of the driver diskette, A:\WINDOWS.NT. Then click
under Windows NT 4.0.
slot(s) if you are doing
[
Adapters] tab.
Adapter”.
[
OK].
quick installation.
3-2 Smartio C104H/HS User’s Manual
Software Installation
5. Select “MOXA Smartio/Industio Family multiport board” in the “Select
OEM Option” dialog box, and then click [
Smartio/Industio Configuration Panel
” dialog box to start the installation.
OK] to enter the “Moxa
6. In the “Moxa Smartio/Industio Configuration Panel” dialog box, click [Add]
to enter “
“
C104 Series” in the “Board Type” field. If necessary, type the desired interrupt
vector address, in the “INT Vector” field. Select the desired interrupt number in
the “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.
Property” dialog box to add the Smartio C104 Series board. Select the
Smartio C104H/HS User’s Manual 3-3
Loading...
+ 51 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.