background image

Software Installation

Smartio

 C168H/HS User’s Manual

    3-11

Note !

Go directly to the 

step 7

 if you need not change any setting.

6.

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.

Содержание Moxa Smartio C168H

Страница 1: ...al 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 m...

Страница 2: ...ice 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 purpo...

Страница 3: ...ilt 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 fr...

Страница 4: ...are Installation Hardware installation for the Smartio C168 Series boards and connection option Opt8x is detailed Chapter 3 Software Installation This Chapter details the software installation configu...

Страница 5: ...e Configuration 2 4 Software Installation 3 1 Windows NT 3 1 Installing Driver 3 2 Configuring Board and Port 3 7 Updating Driver 3 9 Removing Driver 3 9 Windows 95 98 3 9 Installing Driver 3 10 Confi...

Страница 6: ...API 232 Library 4 15 Utilities 4 16 RS 485 Programming for Opt8J 4 17 Connection Option Opt8x and Cable Wiring 5 1 RS 232 Cable Wiring for Opt8A B C D S 5 1 RS 422 Cable Wiring for Opt8J F Z 5 7 RS 48...

Страница 7: ...ta loss even at high speed such as 921 6 Kbps which offers a reliable and high performance solution for serial multiport communications The Smartio C168 Series is equipped with custom designed ASIC ch...

Страница 8: ...nel 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 JP1 is designed in case that users forget the CAP addres...

Страница 9: ...ible systems not mentioned please refer to the respective operating system s manual for how to install and configure the standard driver MOXA Serial Comm Tools For easy application development MOXA pr...

Страница 10: ...urge protection for RS 232 C168HS v Isolation protection for RS 422 optional connection box Opt8F v High speed 16550C Communication Controller with on chip hardware flow control no data loss v PComm s...

Страница 11: ...board v Device driver diskettes l Windows NT and Windows 95 98 1 l DOS 1 l UNIX 1 v C168H HS User s Manual This Manual v PComm Lite diskette 1 You need also one of the following connection options Op...

Страница 12: ...or Opt8C and DB9 for Opt8D 1 meter long P1P2 P3 P4 P6 P5 P7 P8 Opt8C Opt8D Smartio C168 Series Opt8F Opt8Z v RS 422 connection box with 8 port female DB25 connectors isolation protection for Opt8F v 1...

Страница 13: ...port female DB25 connectors for MOXA 8 port boards including the Smartio C168 Series There are 8 DIP switches on the side of the Opt8J Each switch controls the communication mode RS 422 or RS 485 of e...

Страница 14: ...of how to install the Smartio C168 Series under each supported operating system The installation is simple and involves the following stages Configure Smartio C168 Series with io irq exe See Chapter...

Страница 15: ...ettings The Smartio C168 Series has the following default factory settings I O address 0x180 Port 1 0x188 Port 2 0x190 Port 3 0x198 Port 4 0x1A0 Port 5 0x1A8 Port 6 0x1B0 Port 7 0x1B8 Port 8 IRQ 10 IN...

Страница 16: ...ardware configuration effort i e installation without running configuration program Io irq exe Simply always short the jumper JP1 The software and hardware configuration will be completed at the same...

Страница 17: ...o 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 Smart...

Страница 18: ...wing default factory settings I O address 0x180 Port 1 0x188 Port 2 0x190 Port 3 0x198 Port4 0x1A0 Port 5 0x1A8 Port 6 0x1B0 Port 7 0x1B8 Port 8 IRQ 10 INT Vector 0x1C0 Configuration Access Port CAP 0...

Страница 19: ...ed 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 1 Run the utility Io irq exe...

Страница 20: ...ess 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...

Страница 21: ...ps is equal to the working speed 38 4 Kbps However if the port is driven by NON Moxa provided driver such as standard serial driver or Moxa drivers other than Windows NT and 95 98 such as DOS the real...

Страница 22: ...FFH 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...

Страница 23: ...ng 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...

Страница 24: ...e 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 sel...

Страница 25: ...dustio Configuration Panel dialog box click Add to enter Property dialog box to add the Smartio C168 Series board Select the C168 Series in the Board Type field If necessary type the desired interrupt...

Страница 26: ...rectly 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...

Страница 27: ...is mapped to COM4 sequentially If Auto Enumerating COM Number is not checked specify the COM number for individual port For instance the second port can be out of sequence say COM10 while the first po...

Страница 28: ...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 l Enter the Administrative group click on the Event Viewer icon...

Страница 29: ...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 netwo...

Страница 30: ...ector Interrupt no and Base I O Port Address Please see steps 6 to 8 in the previous section Installing Driver for more details except that the Board Type field is not supposed to be changed l Click A...

Страница 31: ...onfiguration 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 98 multi process and multi thread pure 32 bit Window...

Страница 32: ...sh button in the Complete message dialog to enter the configuration panel 4 The Moxa Smartio Industio Configuration Panel dialog will pop up for you to configure the boards and ports 5 In the Moxa Sma...

Страница 33: ...te Go directly to the step 7 if you need not change any setting 6 In the Property dialog box select the desired port in the port list and click Port Setting to enter the individual Port setting dialog...

Страница 34: ...to COM4 sequentially If Auto Enumerating COM Number is not checked specify the COM number for individual port For instance the second port can be out of sequence say COM10 while the first port is mapp...

Страница 35: ...P 0x0180 port 1 COM3 Board is not found appears refer to chapter Troubleshooting for solutions Note Once the board and the driver are installed and the driver restarts successfully you can start to de...

Страница 36: ...er 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 P...

Страница 37: ...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 Propertie...

Страница 38: ...er s Manual 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...

Страница 39: ...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...

Страница 40: ...are steps for setting up the Smartio C168 Series 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...

Страница 41: ...rtio C168H HS User s Manual 3 19 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...

Страница 42: ...Series board will be shown along with other default settings such as port number buffer size etc Note Up to now you have completed the setup for Smartio C168 Series board You may skip this step and g...

Страница 43: ...rt is referred to as port number in terms of serial programming You may map the port number range to the one you prefer between 0 and 255 as long as no port number overlapping condition or port number...

Страница 44: ...an load the driver BIN SER DRV EXE at the DOS prompt The driver will detect the Smartio C168 Series board automatically If the board s is are detected a message similar to below will show API 232 Vers...

Страница 45: ...R DRV Q at the DOS prompt UNIX There are various UNIX operating systems such as SCO UNIX UNIX SVR4 2 XENIX and Solaris etc Different types of UNIX drivers are required for different UNIX Moxa supports...

Страница 46: ...tar command Step 4 Extract the files by tar xvf dev fd0135ds18 tmp moxa mxinstall if A floppy drive Step 5 Start the installation program tmp moxa mxinstall Now follow the prompted instructions to fi...

Страница 47: ...X driver how many Smatio C168 Series boards are installed what their basic setting I O or IRQ etc It is also used to remove the Smartio C168 Series UNIX driver from the system Whenever the setting is...

Страница 48: ...is in high speed status otherwise in normal speed status If the following error message appears For SCO UNIX OpenServer WARNING C168 board IRQ at 11 mismatch base address at 0x180 For UNIX SVR4 2 WAR...

Страница 49: ...g the same physical 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 The convention of the MOXA t...

Страница 50: ...8 Note also that the 50 baud rate B50 will no longer stand for 50 bps instead it means 57600 bps and 75 baud rate B75 for 115 2 Kbps Furthermore if the C168 Family H Series board is set to High Speed...

Страница 51: ...eld Non Modem and Modem Baud Rate This field stands for the initial baud rate symbol and hunt sequence for Non Modem Modem tty It is simply for setting parameters of getty entries in system file etc i...

Страница 52: ...trigger level Tx FIFO trigger level and RTS CTS hardware flow control Baud Rate Mapping There are two different baud rate tables can be selected High Band and Low Band The highest baud rate for High B...

Страница 53: ...200 B300 300 300 300 B600 600 600 600 B1200 1200 1200 1200 B1800 1800 1800 1800 B2400 2400 2400 2400 B4800 4800 4800 4800 B9600 9600 9600 9600 B19200 19200 19200 19200 B38400 38400 38400 38400 Note Yo...

Страница 54: ...RTS CTS hardware flow control function in driver is enabled Port Monitoring This utility gives you a quick view about all the MOXA ports activities You can easily learn each port s total received tra...

Страница 55: ...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 fu...

Страница 56: ...form pattern or file transfer with protocols such as ZModem Driver Removal If you want to remove the Smartio C168 Series device driver and return to your previous system configuration simply press Ent...

Страница 57: ...to the Terminal for login purpose taking ttya11 as an example SCO UNIX OpenServer enable dev ttye11 UNIX SVR4 2 1 Edit e g use vi editor the file etc inittab 2 Modify the tty entry from ma11 23 off et...

Страница 58: ...3 36 Smartio C168H HS User s Manual...

Страница 59: ...ion library for easy programming in most popular languages useful utilities such as diagnostic monitor and terminal emulator illustrative example programs and comprehensive on line documents The seria...

Страница 60: ...e 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...

Страница 61: ...3 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 v...

Страница 62: ...ows 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 m...

Страница 63: ...nual 4 5 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 usi...

Страница 64: ...1 To get byte count in input buffer 2 MOBUFED 0x402 To get byte count in output buffer 3 MTCRTS 0x403 To control RTS output signal 4 MTCDTR 0x404 To control DTR output signal 5 MLOWATER 0x405 To set o...

Страница 65: ...ic_dp char count ioctl moxa_fd I_STR ioc Note Due to the characteristics of STREAMS driver the returned count of bytes buffered only reflect the data buffered on MOXA board not including the data buf...

Страница 66: ...xa_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...

Страница 67: ...R 0x404 define TurnON 1 define TurnOFF 0 ioctl moxa_fd MTCDTR TurnON ioctl moxa_fd MTCDTR TurnOFF Syntax for UNIX SVR4 2 include sys stropts h include sys sysmacros h define MTCDTR 0x404 define TurnON...

Страница 68: ...a timeout sensitive application e g facsimile FAX transmission discontinuous data may falter the operation The default low water is 512 bytes You can enlarge it but better not exceed one half of the...

Страница 69: ...c ic_cmd MSTATUS ioc ic_timout 0 ioc ic_len sizeof int ioc ic_dp char status ioctl moxa_fd I_STR ioc 7 MHWFLOW This function is used to enable disable hardware flow control The first open function of...

Страница 70: ...MHWFLOW RTSFlowControlBitOn ioctl moxa_fd MHWFLOW CTSFlowControlBitOn RTSFlowControlBitOn Syntax for UNIX SVR4 2 include sys stropts h include sys sysmacros h define MHWFLOW 0x40e define HWFlowControl...

Страница 71: ...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 the las...

Страница 72: ...ple 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 op...

Страница 73: ...tware 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 ar...

Страница 74: ...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 anal...

Страница 75: ...ming 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...

Страница 76: ...ks until last character transmitted sio_RTS port 0 Turn off RTS signal The RS 485 port is ready for receiving data sio_read port buff 10 Read 10 bytes Solution 2 There is a dedicated RS 485 function i...

Страница 77: ...or Data Communication Equipment like modem RS 232 Cable Wiring for Opt8A B C D S RS 232 8 port connection boxes octopus cable designed for Smatio C168 Series are Opt8A 8 port RS 232 DB25 female connec...

Страница 78: ...n assignments for various connection options Opt8A S DCE DB25 Female 2 RxD 3 TxD 4 CTS 5 RTS 6 DTR 7 GND 8 DCD 20 DSR Opt8B C DTE DB25 Male 2 TxD 3 RxD 4 RTS 5 CTS 6 DSR 7 GND 8 DCD 20 DTR Opt8D DTE D...

Страница 79: ...pt8A S Straight through Cable Opt8A S DTE Device DB25 Female DB25 Male RxD 2 2 TxD TxD 3 3 RxD CTS 4 4 RTS RTS 5 5 CTS DTR 6 6 DSR DSR 20 20 DTR GND 7 7 GND DCD 8 8 DCD PC COM2 port Serial Printer Ter...

Страница 80: ...2 2 TxD TxD 3 3 RxD CTS 8 4 RTS RTS 7 5 CTS DTR 4 6 DSR DSR 6 20 DTR GND 5 7 GND DCD 1 8 DCD Type 2 To connect Smartio C168 Series to a DCE device Modem or any DCE Device Opt8A S Null Modem Cable Opt8...

Страница 81: ...through Cable Opt8B C DCE Device DB25 Male DB25 Female TxD 2 2 RxD RxD 3 3 TxD RTS 4 4 CTS CTS 5 5 RTS DSR 6 6 DTR DTR 20 20 DSR GND 7 7 GND DCD 8 8 DCD Modem or any DCE Device Opt8D Opt8D DCE Device...

Страница 82: ...re is set to OFF you could just leave RTS CTS DSR DTR DCD open ignoring the connection indicated in dash lines PC COM2 port Serial Printer Terminal or any DTE Device Opt8A S Opt8A S DTE Device DB25 Fe...

Страница 83: ...CD 1 8 DCD RS 422 Cable Wiring for Opt8J F Z RS 422 connection boxes designed for Smartio C168 Series are Opt8J Connection box with 8 female RS 422 485 DB25 ports Set the port switch to OFF position R...

Страница 84: ...Z 2 RxD B 3 TxD B 14 RxD A 16 TxD A 7 GND 4 CTS B 5 RTS B 13 RTS A Opt8J only 19 CTS A The RS 422 transmission distance can reach as long as 4000ft The connection box needs an external power adapter t...

Страница 85: ...ce Opt8J F Z RS 422 Device 1 3 TxD B RxD B 3 TxD B RxD B 16 TxD A RxD A 2 RxD B TxD B 2 RxD B TxD B 16 TxD A RxD A 14 RxD A TxD A 14 RxD A TxD A 7 GND GND 7 GND GND RS 422 Device N RxD B TxD B RxD A T...

Страница 86: ...pins are served for both data transmitting and receiving depending on the RTS signal RS 485 Pinouts for Opt8J Opt8J 3 Data B 7 GND 16 Data A Multidrop RS 485 Half duplex Point to Point RS 485 Half dup...

Страница 87: ...roblem is to establish the same impedance at the line ends as in the line itself by terminating them with resistors The value of the termination resistor should equal the characteristic impedance of t...

Страница 88: ...5 12 Smartio C168H HS User s Manual...

Страница 89: ...ged in the system If that is the case re install the board and make sure that it fits well in a 16 bit slot this time Sometimes the slot for plugging the board is bad In this case try other slots unti...

Страница 90: ...ad to this trouble a The user forgets or does not know the Configuration Access Port CAP of the board See next problem 4 for how to solve this problem b The CAP of the board conflicts with other add o...

Страница 91: ...nce the CAP is unknown Step 1 Power off the PC OFF Step 2 Install jumper onto the JP1 of the board jumper JP1 Install Step 3 Power on the PC Now the CAP address of the board will be 0xA700 ON Step 4 E...

Страница 92: ...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 This indicates that the MOXA bo...

Страница 93: ...Smartio C168 Series conflicts with others The COM numbers of different boards happen to be the same Try to change the COM number mappings 4 Windows NT system panic blue screen The possible reason is a...

Страница 94: ...XE error message None serial port found appears a Make sure you re using the right driver b Check if the board is properly plugged into ISA EISA bus slot c Check if the I O address and IRQ settings in...

Страница 95: ...or NPROC parameter too small 2 Under UNIXs the newly rebuilt kernel could not boot Software Causes and Solutions The C168 driver might not be built into the new kernel correctly a Please use the last...

Страница 96: ...6 8 Smartio C168H HS User s Manual...

Страница 97: ...y none even odd space mark v UART 8 16550C or compatible v Speed bps 50 921 6K v Connectors 8 DB25 male or female v Data signals RS 232 TxD RxD RTS CTS DTR DSR DCD GND RS 422 TxD B TxD A RxD B RxD A G...

Страница 98: ...request Note Download the newest drivers from the MOXA FTP service UART 16C550C The UART chip 16C550C is an intelligent asynchronous controller capable of supporting one full duplex channel that simul...

Страница 99: ...troller 040 05F Timer 060 06F Keyboard 070 07F Real time clock 080 09F DMA page register 0A0 0BF Interrupt controller 2 0C0 0DF DMA controller 0F0 0FF Math coprocessor 100 1EF not usable 1F0 1F8 Fixed...

Страница 100: ...1 45 GND 3 RxD2 25 TxD2 46 CTS2 4 DSR2 26 DTR2 47 RTS2 5 DCD2 6 TxD3 27 RxD3 48 CTS3 7 DTR3 28 DSR3 49 RTS3 29 DCD3 50 GND 8 RxD4 30 TxD4 51 CTS4 9 DSR4 31 DTR4 52 RTS4 10 DCD4 32 GND 11 RxD5 33 TxD5...

Страница 101: ...n 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 UNIX o Others 5 PC Host Make _________ Model _________ 6 CPU Speed _____MHz Make ____...

Страница 102: ...er 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 de...

Отзывы: