Home
Industio CP-132U Series User`s Manual
Contents
1. E m Computer C3 Disk drives 2 Display adapters T 2 DVD CD ROM drives 5z Floppy disk controllers 23 Floppy disk drives 25 IDE ATASATAPI controllers 3 Keyboards 3 Mice and other pointing devices mj Monitors EJ Multi port serial adapters Ep MOXA CP 132U Series PCI Bus Bl Network adapters V Ports COM amp LPT amp SCSI and RAID controllers I Sound video and game controllers UH System devices Universal Serial Bus controllers 1 ogoan MOXA PComm Utility Windows XP 8 Device Manager File Action View Help e j mi amp igim iS 14 Computer amp Disk drives E Display adapters 4 DVD CD ROM drives 124 Floppy disk controllers 44 Floppy disk drives D E H F E A F H H E E Ig D T S IDE ATA ATAPI controllers gt Keyboards Mice and other pointing devices B Monitors ZX Multi port serial adapters Ep MOXA CP 132U Series PCI Bus EB Network adapters JW Ports COM amp LPT S Communications Port COM1 S Communications Port COM2 a ECP Printer Port LPT1 A MOXA Communication Port 1 COM19 A J MOXA Communication Port 2 COM20 SCSI and RAID controllers Sound video and aame controllers This utility which comes with MOXA PComm Lite and Pro provide
2. Configure the kernel cd usr src linux make menuconfig You will go into a menu driven system Please select Character devices Non standard serial port support enable the Moxa SmartIO support driver with for built in not M then select Exit to exit this program Rebuild kernel The following instructions explain how to rebuild the Linux kernel and are included here for your reference for more details refer to the Linux documentation in directory cd usr src linux make clean takes a few minutes make dep takes a few minutes make bzlmage takes about 10 20 minutes make install copies boot image to the correct position Make sure the boot kernel vmlinuz is in the correct position If you use the lilo utility you should check the etc lilo conf image item specified in the vmlinuz path or you will load the wrong or old boot kernel image vmlinuz After checking etc lilo conf run lilo Note that if the result of make bzImage is ERROR then you must go back to the Linux configuration setup Type make menuconfig from directory usr src linux Make tty device and special file cd moxa mxser driver 4 msmknod Make utility cd moxa mxser utility make clean make install Reboot Industio CP 132 Series User s Manual 3 99 Static driver configuration for Linux kernel 2 0 3x and 2 2 14 or earlier l Create link cd usr src linux drivers
3. To create a tty device the shell script will need the major number for a dial in device and callout device You will also need to specify the total number of installed MOXA boards Default major numbers for a dial in device and callout device are 30 and 35 respectively If you need to change the numbers refer to Section 3 7 to see the detailed procedure Msmknod will delete any special files occupying the same device naming 2 Build the MOXA driver and utilities Before using the MOXA driver and utilities you need to compile all of the source code This step only needs to be executed once But of course you will need to re compile the source code if you modify the source code For example if you change the driver s major number see Section 3 7 then you will need to redo this step Find Makefile in moxa mxser and then run Industio CP 132 Series User s Manual 937 make clean make install The driver files mxser o and utilities will be properly compiled and copied to system directories respectively 3 Load the MOXA driver insmod mxser lt argument gt will activate the module driver You may run Ismod to check if mxser o 15 activated If the MOXA board is an ISA board the lt argument gt 1s needed Please refer to section 3 4 5 for more information Based on the above description you may manually execute insmod mxser to activate this driver and run rmmod mxser to remove it However it s better to
4. To upgrade or remove the driver go to either the Updating the Driver or Removing the Driver sections Installing the Driver Because of Windows 95 98 s Plug and Play capability you can easily plug in the Industio CP 132U Series board and get to work right away with very little installation effort Windows 95 98 will automatically detect the presence of the newly plugged board and prompt you to install the driver software from the driver diskette At most 4 Industio CP 132U Series boards can be installed in ONE system provided I O addresses and IRQ number resources are sufficient and available in the system The following flow chart illustrates the driver installation stages of the Industio CP 132U Series boards Each stage will be discussed in turn Industio CP 132 Series Users Manual 9 9 Install the Smartio PCI board in the system Start Windows 95 98 to detect the board Driver installed before Yes Install the driver from the diskette See the First Time Driver Installation section Configure the port See the Port Configuration section The Industio CP 132U Series ports should now be ready for use See the Board and Ports Ready section 3 10 Industio CP 132 Series User s Manual Software Installation First Time Driver Installation Stage This stage presents the steps for installing the Industio CP 132U Series board driver for the first time The installation of t
5. GND 2 DB9 male ports Max 2000V CP 132I CP 132UI CP 132IS ESD max 25000V EFT max 2000V CP 132S CP 132IS ESD max 16000V CP 132UI CP 132UL 120 Q 0 55 C Power reguirement CP 132 420 mA max 5V CP 132I 700 mA max 5V CP 132IS 710 mA max 5V Dimensions CP 132 120x80mm WxD CP 1321I 120 x 110mm WxD CP 132S 120 x 80mm WxD CP 132IS 120x110mm W x D PCI The 32 bit Industio CP 132U Series board complies with PCI Specifications 2 1 The IRO and I O address hardware configuration is automatically assigned by the PCI BIOS This means that you must first plug in the board before installing the driver software As opposed to ISA slots different PCI slots in the same PC may have different bus numbers and device numbers with respect to the PCI specifications The same PCI board will have different system configurations if switched to a different PCI slot this is called slot sensitive or slot dependent This may also apply to PCI slots in a PC with a different motherboard which may use different device number sets For example some use 17 18 19 and 20 for identifying the respective PCI slots but some use 11 12 13 and 14 Due to slot dependency it is necessary to re configure the driver software once the board is plugged into different PCI slots Up to 4 Industio CP 132U Series boards are allowed in one system When installing more than one board please remember the order the boards are instal
6. Hardware Wizard lt gt MOXA Port O Windows has finished installing the software for this device To close this wizard click Finish lt Back Cancel 13 Wait while the wizard installs the software Found New Hardware Wizard Please wait while the wizard installs the software yw S E MOXA Port O la serenum sys To C NWINXPASystem32ADRIVERS Cancel 14 After all files have been copied to the system the Completing the Found New Hardware Wizard window will open to indicate that it has finished installing Port 0 Click on Finish to install the board s second port Found New Hardware Wizard Completing the Found New Hardware Wizard 7 The wizard has finished installing the software for S MOXA Port O Click Finish to close the wizard lt Back Cancel 3 28 Industio CP 132 Series User s Manual How to Check the Installation Software Installation There are three ways to check the installation of the CP 132U Series board Device Manager You can check the installation of the board by selecting Start gt Settings gt Control Panel gt System and then click on the Device Manager button Windows 2000 System Properties 3 xl General Network Identification Hardware User Profiles Advanced Hardware Wizard The Hardware wizard helps you install uninstall repair ud unplug eject and configur
7. se Disk drives S Display adapters 3 DVD CD ROM drives 2 Floppy disk controllers JB Floppy disk drives E IDE ATA ATAPI controllers gt Keyboards 5 Mice and other pointing devices Monitors I Multi port serial adapters HB Network adapters Update Driver S Ports COM amp LPT Disable A Communications Port C JW Communications Port C LL a ECP Printer Port LPT1 S MOXA Communication Pi i S MOXA Communication P lt SCSI and RAID controllers Sound video and game controllers Scan for hardware changes Properties Uninstalls the driver For the selected device Click OK to proceed with the un installation of the board Windows 2000 3 xl SB MOXA CP 132U Series PCI Bus Warning You are about to uninstall this device from your system Cancel Windows XP Confirm Device Removal 2 xi Sl MOXA CP 132U Series PCI Bus Warning You are about to uninstall this device from your system Cancel 4 Software Installation The Device Manager window will automatically refresh to show that the driver and ports for the CP 132U Series board have been removed ETE Fie Aion View Help Em m amp 2 m Action View gt Pu BY Network adapters V Ports COM amp LPT amp SCSI and RAID controllers Sound video and game controllers m System devices Universal Serial Bus controllers BB Netwo
8. 1 Extract the Moxa driver refer to the Driver files section 2 There are two methods that can be used to install the Moxa driver module amp static If you want to use the module method refer to the Module driver configuration section If you want to use the static method refer to the Static driver configuration section Introduction The Smartio Industio family Linux driver supports the following multiport boards e C132 series CI 132 series CP 132U series CP 132 series CP 132U series 2 port multiport boards e C104P H HS CI 104J series C104H PCI series CI 134 series CP 114 series CT 114I CP 104U series CP 134U series 4 port multiport boards e C168P H HS C168H PCIi CP 168U series 8 port multiport boards This driver and its installation procedure have been developed for Linux Kernel 2 2 5 and is compatible with 2 0 3x and 2 4 x The driver supports the Intel x86 hardware platform In order to maintain compatibility this version has also been properly tested with RedHat OpenLinux TurboLinux and S u S E Linux However if experience any compatibility problems please contact Moxa at support moxa com tw In addition to the device driver some useful utilities are also provided in this version They are 3 34 Industio CP 132 Series User s Manual Software Installation msdiag Diagnostic program for displaying installed Moxa Smartio Industio boards msmon Monitoring program to observe data count a
9. The Add Hardware Wizard helps you install hardware Device Manager Hardware Profiles Hardware profiles provide a way for you to set up and store Add Hardware Wizard The Device Manager lists all the hardware devices installed on your computer Llse the Device Manager to change the properties of any device Driver Signing different hardware configurations Hardware Profiles app Industio CP 132 Series Users Manual 2 91 2 3 32 Industio CP 132 Series User s Manual Select the Hardware tab and then click on Device Manager Use the mouse to place the cursor over the CP 132U Series board under Multi port serial adapters and then click the right mouse button Select the Uninstall option Windows 2000 Action View je amela m Computer C9 Disk drives EB Display adapters kJ DVD CD ROM drives 2 Floppy disk controllers amp Floppy disk drives 5 IDE ATA ATAPI controllers 2 Keyboards TA Mice and other pointing devices 3 Monitors I multi port serial adapters T A AA Disable a Ports COM amp LPT Uninstall SCSI and RAID controllers Sound video and game controlle m System devices Universal Serial Bus controllers Scan for hardware changes Properties k Windows XP m z File Se Up Fe RT 8 RT RET 8 EE Action View Help e m Eea R am lt ma SIZER 2 14 Computer
10. acquire precise timing control for RS 485 2 wire transmission we recommend 4 2 Industio CP 132 Series User s Manual Serial Programming Tools that you configure your Industio CP 132U Series ports as described below There are 2 solutions to control RS 485 2 wire transmission Solution 1 The following method is commonly used for RS 485 2 wire transmission sio SetWriteTimeouts port 0 Set sio_write into block mode if for Windows NT and Windows 95 98 sio RTS port 1 Turn on RTS signal The RS 485 port is ready for transmitting data sio write port buff 10 Write 10 byte characters in buff The function blocks until the last character is 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 The PComm or API 232 library includes a dedicated RS 485 function that integrates the functions described in solution 1 above into one function sio putb x port buff tick 1 Turn on RTS and ready for transmitting data 2 Send data 3 Wait for tick time 4 Turn off RTS and ready for receiving data For more information on these functions refer to the PComm library s on line Help file for Windows NT and Windows 95 98 Industio CP 132 Series Users Manual 49 5 Connection Cables and Cable Wiring In serial data communications the term DTE stands for Data Terminal Eguipment such as a PC s
11. are smart multiport serial I O solutions for industrial applications The Industio CP 132U Series boards including CP132 UI and CP 132UL arc designed for a 32 bit PCI bus with the Plug and Play and Universal PCI feature They offer 2 independent RS 422 RS 485 serial ports for connecting data acguisition eguipment and many other serial devices to the PC and its compatible systems Industio products provide a reliable communication link over a longer distance up to 4000 ft and are suitable for industrial environments Connections with point to point full duplex or multidrop half duplex are available to meet user s various needs Each port can control up to 32 devices in a multidrop environment ADDC Automatic Data Direction Control for RS 485 To make it easier to manage 2 wire RS 485 half duplex connections ADDC Automatic Data Direction Control intelligence is built into each CP 132U series board eliminating the need for software interference This means that Windows applications can manage RS 485 ports without needing to write extra code for controlling the half duplex protocol Termination Resistors Ready for RS 422 485 Termination Resistors are already installed on the Industio CP 132U series boards eliminating the headaches involved in determining the proper impedance for the resistors For more details refer to the Connection Cable and Cable Wiring chapter Surge lsolation Protection To prevent boards from being da
12. have a boot time configuration to eliminate the need for manual operation a boot time configuration can be achieved with an rc file We offer one rc mxser file to simplify the procedure under moxa mxser driver But if you are using an ISA board you must modify the insmod command to add the argument see Section 3 4 5 After modifying the rc mxser try executing moxa mxser driver rc mxser manually to make sure the modification is okay If any errors are encountered try modifying again Once the modification is complete follow the steps given below Run the following command for setting rc files cd moxa mxser driver cp rc mxser etc rc d cd etc rc d Check if the file rc serial exists If rc serial does not exist create the file using vi editor Run chmod 755 rc serial to change the permission Add etc rc d rc mxser in last line Reboot and check if moxa o activated by Ismod command Static driver configuration for Linux kernel 2 2 14 or above including 2 4 x Note To use the static driver you must install the Linux kernel source package 1 Back up the built in driver in the kernel cd usr src linux drivers char mv mxser c mxser c old For Red Hat 7 x users you must create a link cd usr src 3 38 Industio CP 132 Series User s Manual Software Installation In s linux 2 4 linux Create link cd usr src linux drivers char In s moxa mxser driver mxser c mxser c
13. i S 3 9 Windows 2000 Mu Pu ee sai aaa i i i a a aN 3 22 Bin A T 3 34 Serial Programming Tools 4 1 Doi Installations a Quo tos NF 4 2 PC om Programming LIDi y eet e o a aO i e D s 4 2 155 485 Pro eran ni oco a dnd NG ta wes ita awe 4 2 Connection Cables and Cable Wiring 5 1 RS 422 485 Pinouts and Cable Wiring cccccccesesssesesssssessssesseseseeeeeees 5 2 Mul drop 25wire RS 485 Balf da plex ascuteeseans vis atten desde vidue Rn emus dian a ak ee chiews 5 6 Multidrop 4 wir RS 485 full duplex ie ans aa eoa bores totu eio etn eret GA 5 6 Impedance Matching and Termination Resistors ccccccccccecceeeeeeeeeeeeeeeees 5 7 Troubleshoollng i GYN Eae pee NAU ve e coe GWYNN GNU 6 1 General Troubleshooting d ettet ia tuta ta eT O CN KA I MUI EIU 6 1 MMO SN NO aa YI IO a DA a FE REFER EA GAU EFE 6 3 Window 95 25 su a a k Y Y a Nr A 6 4 Technical Reference i i eiu YRU NR yN vs uva Eras na vr ecu Su A 1 DDSCITICILIONS taedis dn I dioses I o a a aa A 1 PC Lia Ae eOR aaa aa i i a i a i NF NR A 2 1 Introduction Welcome to the MOXA CP 132U Series of industrial 2 port RS 422 485 serial boards for the PCI bus The following topics are covered in this chapter Q Overview JO Features O Package Checklist Overview Industio The Industrial Multiport Async Solution Moxa Industio products
14. icon select the Device Manager tab and then select Moxa Smartio Industio multiport board 2 Click on the desired CP 132U Series board entry and then click the Properties button System Properties x General Device Manager Hardware Profiles Performance View devices by type View devices by connection H 3 Floppy disk controllers amp 2 Hard disk controllers 3 Keyboard B Monitors y Mouse Ex Moxa Smartio Industio multipart board BY Network adapters WY Ports COM amp LPT A d Communications Port COM1 S Communications Port COM2 B CP 132U Series Port 01 COM3 E i CP 132U Series Port 02 COM4 7 NPort Server COME V Printer Port LPT1 Wi System devices Universal Serial Bus controllers E G D H E v Properties Refresh Remove Print 3 Select the Ports Configuration tab 4 Click on a specific port and then click the Port Setting button to re assign the desired COM number for the Industio CP 132U Series port mapping Industio CP 132 Series User s Manual 3717 CP 132U Series Properties 121 x General Ports Configuration Driver Resources gt CP 132U Series Provider Not available Date Not available To view details about the driver files loaded for this device click Driver File Details To update the driver files for this device click Update Driver Driver Fie Details Updeie Diver Step 5 is optional if you want
15. msmknod 7 Make utility cd moxa mxser utility make clean make install 8 Reboot Custom configuration Although this driver already provides you with a default configuration you can still change the device name and major number The instructions for changing these parameters are given below Change Device name If you d like to use other device names instead of default naming conventions all you need to do is modify the internal code within the shell script msmknod First you have to open msmknod with vi Locate all lines that contain ttyM and cum and change them to the device name of your choice msmknod creates the device names that will be used the next time executed Change Major number If the major numbers 30 and 35 are already being used you will need to select 2 free major numbers for this driver There are 3 steps required to change major numbers 1 Find free major numbers Look in proc devices to find all major numbers used by the system Select 2 major numbers that are available e g 40 45 2 Create special files Run moxa mxser driver msmknod to create special files with the specified major numbers 3 Insert the new major numbers into the driver s source code Run vi to open moxa mxser driver mxser c Locate the line that contains MXSERMAJOR and change the content as below define MXSERMAJOR 40 Industio CP 132 Series Users Manual 3 41 define MXSERCUMAJOR 45 4 Run
16. software win2k undustio as shown below change the drive letter if needed Click OK to continue Found New Hardware Wizard Software Installation 11 Wait while the installation wizard searches Found New Hardware Wizard Please wait while the wizard searches Please wait while the wizard installs the software 12 You can safely ignore any warnings about software compatibility Click on Continue Anyway to proceed Hardware Installation Industio CP 132 Series Users Manual 9 2 14 Click on Next to continue with the installation Driver Files Search Results aw a The wizard has finished searching for driver files for your hardware device P The wizard found a driver for the following device e MOXA communication port Windows found a driver for this device To install the driver Windows found click Next h multi_bd software win2k smartio mxsport inf The wizard also found other drivers that are suitable for this device To view a list of these drivers or install one of these drivers select the following check box and then click Next Install one of the other drivers 15 After all files have been copied to the system the Completing the Found New Hardware Wizard window will open to indicate that it has finished installing Port 0 Click on Finish to install the board s second port Found New Hardware Wizard Completing the Found New
17. this wizard click Finish lt Back Cancel 9 The next Found New Hardware Wizard window to appear indicates that Windows has identified the board s serial ports and is starting to install the ports Found New Hardware i Ss PCI Serial Port Installing Industio CP 132 Series Users Manual 3 29 10 Click on Next to continue Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install a device driver for a hardware device To continue click Next i Cancel 11 Select Search for a suitable driver for my device recommended and then click on Next to continue Found New Hardware Wizard Install Hardware Device Drivers s device driver is a software program that enables a hardware device to work with Ss an operating system This wizard will complete the installation for this device e MOXA communication port device driver is a software program that makes a hardware device work Windows needs driver files for your new device To locate driver files and complete the installation click Next What do you want the wizard to do C Display a list of the known drivers for this device so that can choose a specific driver lt Back Cancel 9 Select Install the software from a specific location and then click on Next to continue Found New Hardware Wizard Welcome to the Found New Hardware Wizard This w
18. COM1 2 serial printers and terminals The term DCE stands for Data Communication Eguipment such as modems RS 422 485 Pinouts and Cable Wiring RS 422 Interface The RS 422 standard uses a balanced voltage digital interface to allow 10 Mbps communication over cables of up to 4000 feet in length Ten receivers can be connected to any one driver for broadcasting systems RS 485 Interface The RS 485 standard is an enhanced version of the RS 422 balanced line standard It allows multiple drivers and receivers to work on a multidrop network A maximum of 32 drivers and 32 receivers can be set up on a multidrop network The CP 132U Series supports both 2 wire half duplex and 4 wire full duplex RS 485 communications In 2 wire RS 485 Data pins are used for both data transmitting and receiving depending on the RTS signal 9 2 Industio CP 132 Series User s Manual Pinouts Connection Cables and Cable Wiring RS 422 485 pinouts for Industio CP 132U Series RS 422 and 4 wire RS 485 CTS A RxD A RTS A RTS B RxD B TxD A SGND CTS B TxD B TxD A SGND CTS B TxD B CTS A RxD A RTS A RTS B RxD B Port 1 Port 2 CBL M25M9x2 JI A m EN Asi SA TII a 3 NX CP 132U RS 422 485 2 wire RS 485 Data A Data B i lm EWN i Port 2 R D 6 EW FE po 8 RI 10 Poti 4 13 Data A Data B Industio CP 132 Series User s Manu
19. CP 132 Series Users Manual 99 Windows 95 98 This section is specific for troubleshooting under Windows 95 98 For general problems and solutions see the previous section General Troubleshooting 1 The system fails to find the Industio CP 132U Series board e The board s is are not plugged properly e The slot the boards are plugged into is defective Try another slot until you find one that works e The board might be defective 2 After the system reboots the error message CP 132U Series BusNo x DevNo x Port1 COMx interrupt number is invalid appears This indicates that the MOXA board was found but the IRO conflicts with another adapter Make sure the MOXA board s IRO does not conflict with other adapters IRO Check the PCI BIOS IRO settings and select an available IRO for MOXA boards 6 4 Industio CP 132 Series User s Manual Specifications Bus interface Number of ports Max No of boards I O address IRO Comm controller Transmission speed Data bits Stop bits Parity Data signals Connectors Optical isolation Surge protection Termination Resistor Operating temperature A Technical Reference 32 bit PCI 4 Assigned by PCI BIOS Assigned by PCI BIOS 16C550C or compatible 50 bps 230 4 Kbps 230 4 Kbps CP 132UI CP 132UL 5 6 7 TESS es none even odd space mark RS 422 TxD B A RxD B A RTS B A CTS B A GND RS 485 Data B A
20. Finish To search for a driver manually click Other Locations Dr to begin the automatic search again click Back What do you want Windows to do C Search for the best driver for your device Recommended lt Back Cancel Industio CP 132 Series User s Manual 9 11 Windows 95 Windows 98 3 Type A Windows 95 in the Location field and 3 Select Other Devices and then click Next to then click OK in the Select Other Location continue window The system will start reading the files Add New Hardens Wizard from the CD Select Other Location Multi function adapters LJITICI PC Ports COM amp LPT rinter SBP2 SCSI controllers Sound video and game controllers Storage device 3 amp WINDOWS 55 LU tani 4 Click on Finish Update Device Driver Wizard 4 Click on Have Disk Add New Hardware Wizard Unsupported Device 3 12 Industio CP 132 Series User s Manual Software Installation Windows 95 Windows 98 5 Type A Windows 95 and then click OK The system will start reading the files from the diskette Install From Disk D MANUALS CP 132 UI Driver_64byt 6 Click on Next to continue Add New Hardware Wizard CP 132U Series 8 29 2002 J Industio CP 132 Series Users Manual 9719 Port Configuration Stage This stage presents the steps for configuring the Industio CP 132U Series board s ports under Windows 95 98 After the driver is
21. I or ISA devices are using the assigned IRO If you are not sure which device is causing the problem check proc interrupts to find a free IRO that can be assigned to the Moxa board Error msg Board ff C1xx Series CAP xxx interrupt number invalid Solution Each port within the same multiport board shares the same IRQ Set one IRO IRO not Industio CP 132 Series Users Manual 3729 egual to zero for one Moxa board Error msg No interrupt vector can be set for the Moxa ISA board CAP xxx Solution Moxa ISA boards need an interrupt vector Refer to the Hardware Installation chapter from the user s manual to set an interrupt vector Error msg Couldn t install the MOXA Smartio Industio family driver Solution If loading the Moxa driver failed the major number may conflict with other devices Refer to Section 3 7 to see how to edit the Moxa driver with a free major number Error msg Couldn t install MOXA Smartio family callout driver Solution If loading the Moxa callout driver failed the callout device major number may conflict with other devices Refer to Section 3 7 to see how to edit the Moxa driver with a free callout device major number 3 44 Industio CP 132 Series User s Manual 4 Serial Programming Tools Moxa supports an easy to use yet powerful serial programming library and communication troubleshooting utilities under Windows NT Windows 95 98 Windows 2000 XP and DOS You will save a lot of dev
22. Identification Services Protocole Adapters Eindings Network Adapters E 1 M5 Loopback Adapter Haja MER Smartio Imdustio Family Adapter Add Remove Properties Update ltem Notes MOA S martia Industio Family Adapter Cancel 3 Click on the Properties button to open the MOXA Smartio Industio Configuration Panel dialog box See steps 8 9 in the previous section Installing the Driver for more details Industio CP 132 Series Users Manual Moxa Smartio Industio Configuration Panel Board Type MO address INT vector IRQ Bus Dev COM Number CP 132U Series BODD ADD 9 0 9 COM3 COM4 Remove Property OK Cancel You may use this configuration panel to e Click on Property to enter the Property dialog box to configure the selected board with the correct COM Number Rx FIFO Trigger and Tx FIFO Size See Steps 8 and 9 in the previous section Installing the Driver for more details e Click on Add to add one more board that has not yet been configured for the system See Steps 6 to 9 in the previous section Installing the Driver for more details e To automatically remove the configuration simply unplug the CP 132U Series board after you turn off your PC There is no need to use the remove board function from the Moxa Smartio Industio Configuration Panel dialog box e Click OK to confirm the configuration ch
23. Industio CP 132U Series User s Manual Industrial 2 Port RS 422 485 Serial Board for PCI Bus Second Edition April 2003 This manual is also available on CD ROM and at Moxa s Website 4 y E Moxa Technologies Co Ltd Tel 866 2 8919 1230 Fax 886 2 8919 1231 y Ed www moxa com MO AN support Omoxa com tw Industio CP 132U Series 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 that agreement Copyright Notice Copyright O 2003 Moxa Technologies Co Ltd All rights reserved Reproduction 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 1s without warranty of any kind either expressed or implied including but not limited to its particular purpose Moxa reserves the right to make improvements and or changes to this manual or to the products and or the programs 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 on the rights of third pa
24. MOXA multiport boards The drivers conform to the Win32 COMM API standard Installing the Driver The following procedure shows how to install the Industio CP 132U Series driver for the first time under Windows 2000 and Windows XP First make sure the board s have already been plugged into the system s PCI slot s Windows 2000 Windows XP 1 Windows 2000 can auto detect new devices 1 Windows XP can auto detect new devices and and activate the Found New Hardware activate the Found New Hardware function to function to install a device driver for Plug and install a device driver for Plug and Play Play devices devices Found New Hardware i i Found New Hardware x Ss PCI Serial Port PCI Serial Port Please wait 2 Select Install from a list or specific location 2 Click on Next to continue and then click on Next to continue Found New Hardware Wizard Found New Hardware Wizard Welcome to the Found New Hoe are id Welcome to the Found New Hardware Wizard This wizard helps you install a device driver for a Saws hardware device This wizard helps you install software for PCI Serial Port If your hardware came with an installation CD 52 or floppy disk insert it now What do you want the wizard to do O Install the software automatically Recommended To continue click Next Click Next to continue Back Cancel 3 22 Industio CP 132 Series User s Manual Software Installation 3 Sel
25. al 5 3 5 4 RS 422 pinouts for Industio CP 132U Series CP 132U RS 422 TxD A TxD B RxD B RxD A GND RTS A RTS B CTS B CTS A D 0 om GO OOC 0EO0ON 2 wire RS 485 pinouts for CP 132 CP 132U 2 wire RS 485 1 2 2 Sus 3 Data B 4 Data A 6 5 GND 6 9 7 8 9 Industio CP 132 Series User s Manual nf Goh nf Goh Connection Cables and Cable Wiring Cable Wiring RS 422 Point to point RS 422 Broadcasting CP 132U RS 422 Device CP 132U RS 422 Device 1 2 TxD B RxD B 2 TxD B RxD B 1 TxD A RxD A 3 RxD B TxD B 3 RxD B TxD B 1 TxD A RxD A 4 RxD A TxD A 4 RxD A TxD A 5 GND GND 5 GND GND RS 422 Device N RxD B TxD B RxD A TxD A GND CP 132U RS 422 with Handshaking CP 132U RS 422 Device 2 TxD B RxD B TxD A RxD A 3 RxD B TxD B 4 RxD A TxD A 5 GND GND 7 RTS B CTS B 6 RTS A CTS A 8 CTS B RTS B 9 CTS A RTS A CP 132U 2 wire RS 485 CP 132U RS 422 Device 3 Data B Data B 4 Data A Data A 5 GND GND Industio CP 132 Series User s Manual 9 5 6 Multidrop 2 wire RS 485 half duplex CP 132U RS 485 Device 1 Master Slave 3 Data Data 4 Data Data 5 GND GND RS 485 Device N Slave Data Data GND Multidrop 4 wire RS 485 full duple
26. alid for solutions If you want to add more boards after the driver has been installed simply plug in the Industio CP 132U Series board and Windows 95 98 will automatically detect the new board and then skip to the Port Configuration stage to take care of port settings At this point the driver installation of the Industio CP 132U Series is complete including board and port configuration However if you need to make changes to the board or port configuration refer to the next section Configuring the Board and Ports for more configuration details Once the board and the driver are installed and the driver restarts successfully you can start to develop applications with the Comm library see Serial Programming Tools or the Microsoft Win32 API You can also execute any ready made applications such as PComm utility Terminal emulator see Serial Programming Tools or HyperTerminal to transmit receive data as well as Remote Access Service to provide dial up networking capabilities 3 16 Industio CP 132 Series User s Manual Software Installation Configuring the Board and Ports Follow the procedure given below if you would like to reconfigure the COM numbers of ports for boards that are already installed under Windows 95 98 Since this is a PCI board once the board is added or unplugged the configuration will be automatically added or removed by the system 1 Open the Control Panel click on the System
27. anges that you ve made e Click on Cancel to close the window without changing the configuration Updating the Driver To update the driver for the Industio CP 132U Series board simply remove the driver as described in the next section and reinstall it as detailed in the section Installing the Driver 3 8 Industio CP 132 Series User s Manual Software Installation Removing the Driver To remove the driver for the Industio CP 132U Series board Open the Control Panel click on the Network icon and select the Adapters tab 2 Select MOXA Smartio Industio Family Adapter from the adapter list and then click on the Remove button and then click OK to remove the driver 3 Restart the system to activate the new configuration Windows 95 98 Windows 95 98 supports up to 128 serial ports from COMI to COM128 To fully integrate the advanced features of Windows 95 98 Moxa has developed multi process and multi thread pure 32 bit Windows 95 98 virtual device port drivers VxD compliant with communication drivers VCOMM for the Industio CI 132 Series and other MOXA multiport boards The drivers conform to the Win32 COMM API standard e To install the driver for the first time go directly to the section Installing the Driver e Ifyou have already installed the driver and want to re configure the board and ports add more boards or delete boards refer to the section Configuring the Board and Ports
28. arantee no data loss e PComm a powerful serial Comm utility e Embedded Surge Protection 16 KV ESDS for all signal lines CP 132UI CP 132UL e Supports 64 byte FiFo Driver e Supports drivers for most major industrial platforms Windows NT 2000 XP Windows 95 98 and Linux e Supports low profile bracket size CP 132 UL e Supports both 3 3V and 5V connector types Industio CP 132 Series User s Manual Introduction Package Checklist You should find the following items in the Industio CP 132U Series package e Industio CP 132U Series 2 port serial board e MOXA software CD ROM which includes gt Drivers for MOXA Multiport Async Products gt Comm Lite programming library and utilities for Windows NT 95 98 gt User s Manual PDF e Hardware Installation Guide Printed Industio CP 132 Series User s Manual 1 9 2 Hardware Installation You will need to install both hardware and software for Industio CP 132U Series boards The hardware installation procedure 1s given in this chapter and the next chapter deals with software installation for various operating systems The following topics are covered in this chapter O CP 132U Series Block Diagram O Installing the Industio CP 132U Series Board CP 132U Series Block Diagram Industio CP 132U Series boards hardware configuration for IRO number and I O address is automatically assigned by the PCI BIOS This means that the board MUST be plugged in first bef
29. called Comm that runs under Windows NT 2000 XP and Windows 95 98 You 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 Data Scope Monitor Terminal Emulator Diagnostics etc are included for debugging or monitoring the communication status terminal emulation or even file transfer Broad Applications The board is suitable for many industrial applications including the following Multipoint data acquisition Factory automation Critical industrial control Remote serial device control Industio CP 132 Series User s Manual 1 9 Features 1 4 The Industio CP 132U Series includes the following products CP 132UI 2 RS 422 485 ports Universal PCI interface with embedded Surge Protection and Isolation Protection 16 KV ESD 2 KV Isolation CP 132UL 2 RS 422 485 ports Universal PCI interface with embedded Surge Protection and Isolation Protection Below we list the outstanding features of the Industio CP 132U Series boards e Supports 2 independent RS 422 or RS 485 serial ports e Compact board size half s1ze e DIP Switch for RS 422 RS 485 selection e DIP Switch for selecting 2 wire or 4 wire RS 485 e Jumper for Termination Resistor selection eliminates impedance matching headaches e Reliability high speed 16C550C Communication Controllers with on chip hardware flow control to gu
30. ce the function of the board 1 Open the Control Panel click the System icon and select the Device Manager tab System Properties x General Device Manager Hardware Profiles Performance View devices by type C View devices by connection 43 CDROM amp Disk drives m Display adapters 3 Floppy disk controllers amp Hard disk controllers Keyboard Em Monitors gt Mouse Q Moxa Smartio Industio multiport board lt p CP 132U Series BY Network adapters S Ports COM amp LPT m System devices Universal Serial Bus controllers Properties Refresh Remove Print Cancel 2 Click on MOXA CP 132U Series and then click on Properties Industio CP 132 Series User s Manual 9719 3 4 3 Select the Driver tab Click on the Update Driver button CP 132U Series Properties SS Click on the Specify a location checkbox and either type in the path to the file or click on Browse to use Windows Explorer to locate the file and then click on Next to continue D Driverb4Nwin9xNMVB P NwWindows 95 lt Back Nen Cane Insert the software CD into the CD ROM driver Click on OK in the Install from Disk dialog box The system will automatically prompt you to restart the system Click on Yes to restart the system or No if y
31. char In s moxa mxser driver mxser c mxser c Modify tty 10 c cd usr src linux drivers char vi tty 10 C Find pty init insert mxser init as pty init mxser init Modify tty h cd usr src linux include linux vi tty h Find extern int tty_init void insert mxser init as extern int tty_init void extern int mxser init void Modify Makefile cd usr src linux drivers char vi Makefile Find L_OBJS tty 10 0 random o add mxser o at last of this line as L OBJS tty 10 0 mxser o Rebuild the kernel The following instructions explain how to rebuild the Linux kernel and are included here for your reference For more details refer to the Linux documentation in directory cd usr src linux make clean takes a few minutes make dep takes a few minutes make bzImage takes about 10 20 minutes Make sure the boot kernel vmlinuz is in the correct position If you use the lilo utility you should check the etc lilo conf image item specified in the vmlinuz path or you will load the wrong or old boot kernel image vmlinuz After checking etc lilo conf run lilo 3 40 Industio CP 132 Series User s Manual Software Installation Note that if the result of make bzImage is ERROR then you must go back to the Linux configuration setup Type make menuconfig in directory usr src linux 6 Make tty device and special file 4 cd moxa mxser driver 4
32. e install it b The board is not properly plugged into the system If this is the case re plug the board in a 32 bit PCI It is also possible that a slot has malfunctioned In this case try other slots until you find one that works c The motherboard does not have an available IRO for the CP 132U Series board In this case enter the BIOS and make sure there is an availalbe IRO under PCI PnP settings 6 2 2 The MOXA board and driver are activated but cannot transfer transmit receive data Hardware Causes and Solutions a Make sure the cable wiring is connected correctly Refer to the Connection Cable and Cable Wiring chapter for correct cable connections b The cable or the board are probably defective Try other ports cables or boards to verify this or use the PComm Diagnostic utility to test the MOXA board s and port conditions If Diagnostic reports an error replace the faulty components Software Causes and Solutions a Industio CP 132U Series boards will check the line status CTS before transmitting data if the RTS CTS flow control feature is set to Enable in the configuration or application program Refer to the Connection Cables and Cable Wiring chapter for proper wiring diagrams and check the line status of the suspected port using the diagnostic LED indicators on the mini tester b The board controlling application might not be correctly written according to the corresponding API of the operating s
33. e installation discussed in the previous chapter Hardware Installation If you need to develop your own applications refer to the next chapter Serial Programming Tools for programming issues The following topics are covered in this chapter O Windows NT O Windows 95 98 O Windows 2000 XP Q Linux Windows NT Windows NT supports up to 256 serial ports from COM1 to COM256 To fully integrate the advanced features of Windows NT Moxa has developed multi process and multi thread pure 32 bit Windows NT device drivers for the Industio CP 132U Series multiport boards The driver conforms to the Win32 COMM API standard e To install the driver for the first time go directly to the next section Installing the Driver e Ifthe driver is already installed and you want to re configure the board and port s add more boards or delete boards refer to the section Configuring the Board and Ports e To update or remove the driver refer to either Updating the Driver or Removing the Driver 22 Industio CP 132 Series User s Manual Software Installation Installing the Driver The following procedure 1s for installing the Industio CP 132U Series driver for the first time under Windows NT 4 0 Before taking these steps make sure the board s have already been plugged into the system s PCI slot s Log into NT as Administrator 2 Open the Control Panel click on the Network icon and sel
34. e supported by this hardware manufacturer s disk Click the Add button to open the Property dialog box to change port settings and advanced FIFO configurations done automatically by the system In the Property dialog box select the newly plugged Industio CP 132U Series board from the Board Type pull down list Next click on one of the ports to highlight it and then click on Port Setting to open the port s configuration window Board Type CP 132U Series Bus Dev 0 9 fv NT vector asco Interrupt Mo fe Base l O Port Address E000 Port Setting Industio CP 132 Series User s Manual 8 Software Installation The Port ff window will open to allow you to change settings as described below for that particular port GT E BoriNumbes SE v Auto Enumerating COM Number Rx FIFO Trigger 56 X v Set the change to all ports Ix FIFO Size 64 v Set the change to all ports Port Number You must set up all of the board s ports with the desired COM number which should not conflict with other COM numbers in use In this Individual Port Setting dialog box there are two ways to map physical ports to COM numbers depending on whether you check the Auto Enumerating COM Number box If Auto Enumerating COM Number is checked and the COM number of the first port is specified then subseguent ports are mapped to the ne
35. e your hardware Hardware Wizard r Device Manager m The Device Manager lists all the hardware devices installed on your computer Llse the Device Manager to change the properties of any device Driver Signing r Hardware Profiles Hardware profiles provide a way for you to set up and store xi different hardware configurations Hardware Profiles OK Cancel Apply Windows XP System Properties System Restore ___ Automatic Updates Remote General Computer Name Hardware i Advanced Add Hardware Wizard Ed The Add Hardware Wizard helps you install hardware Add Hardware Wizard Device Manager The Device Manager lists all the hardware devices installed on your computer Use the Device Manager to change the properties of any device Driver Signing Hardware Profiles Hardware profiles provide a way for you to set up and store 220 different hardware configurations Hardware Profiles Industio CP 132 Series Users Manual 3729 If the driver installation was successful you will be able to see the model number of the CP 132 board listed under Multi port serial adapters You may also expand the Ports COM amp LPT item to check the status of the COM ports If you see a guestion mark on top of the icon then the installation might have a problem Check the Event Log to determine the reason for the problem Windows 2000 Action View je amela
36. ect Search for a suitable driver and 3 Select Search for the best driver and then then click on Next to continue click on Next to continue Found New Hardwescd E Found New Hardware Wizard Install Hardware Device Drivers device driver is a software program that enables a hardware device to work with an operating system Please choose your search and installation options 4 Select Specify a location and then click on 4 Wait while the installation wizard searches Next to continue Found New Hardware Wizard Please wait while the wizard installs the software Locate Driver Files Where do you want Windows to search for driver files LUF dives Microsoft Windows UJ paate Bancel Industio CP 132 Series Users Manual 3729 5 Insert the Moxa Driver CD into the CD ROM 5 You can safely ignore any warnings about drive and then specify the location of the file as F multi_bd software win2k industio as shown below change the drive letter 1f needed Click OK to continue Found New Hardware Wizard i X Cancel Insert the manufacturer s installation disk into the drive selected and then click OK Copy manufacturer s files from Browse 6 Click Next to copy the driver files to your system Found New Hardware Wizard Driver Files Search Results Pea tant The wizard has finished searching for driver files for your hardware device S The wizard found a driver for the foll
37. ect the Adapters tab Click on the Add button then the Have Disk button in the Select Network Adapter dialog box 4 Specify the exact path of the driver CD For example you would type FAWINDOWS NT if your CD is drive F and then click OK Identification Services Protocole Adapters Bindings Network Adapters ETATE CIE Ti Elia E x 1 Novell NE2 Click the Network Adapter that matches pour hardware and then Bu click OF TF you have an installation disk for this component click Have Disk Network Adapter BY 3Com 3C509 ISA 16 bit Ethemet Adapter Com Etherlink ll Adapter also 116 and ll 1 amp TP EH 3Com Etherlink III ISA PEMCLA Adapter HB 3Com EtherLink III PCI Bus Master Adapter 2C530 Add Com Etherlink 1 6 E therLink16 TP Adapter Fa Or Cant U Hanel al Dil 11 AND ACE TA dr CEDEN ltem Motes Novell NEZO00 Ad Have Disk seal Insert Disk Insert disk with software provided by the software or DK gr hardware manufacturer IF the files can be found at a MI different location for example on another drive type a Gane new path to the files below awl NDOWS NT Industio CP 132 Series Users Manual 3 4 Select MOXA Smartio Industio Family multiport board from the Select OEM Option dialog box and then click OK to enter the MOXA Smartio Industio Configuration Panel dialog box to start the installation Select OEM Option Choose a softwar
38. elopment time by using MOXA s Serial Programming Tools The following sections detail the installation the library and the utilities for various platforms PComm is a professional serial comm tool for use on a PC This software package works under Windows NT Windows 95 98 and Windows 2000 XP and consists of a powerful serial communication library for easy programming in most popular programming languages It also comes with several useful utilities such as diagnostic monitor and terminal emulator and illustrative example programs and comprehensive on line documentation The serial communication library 1s useful for developing a system for data communication remote access data acguisition or industrial control in the Windows NT Windows 95 98 and Windows 2000 XP environment and offers an easier solution compared with the more complex Windows Win32 COMM API The following topics are discussed O dCComm Installation O PComm Programming Library Comm Installation To install PComm run Setup exe from the diskette Note that the PComm diagnostic and monitor utilities are for MOXA boards only MOXA Windows NT Windows 95 98 or Windows 2000 XP device drivers as well as MOXA boards are reguired The drivers are installed separately with details given in the Software Installation chapter PComm Programming Library The serial communication library helps you develop programs for serial communications for any COM port c
39. he Industio CP 132U Series board for Windows 95 and Windows 98 are slightly different and will be described in two columns Follow the steps in the left column for Windows 95 or the right column for Windows 98 respectively If a MOXA CP 132U Series board was already installed and another MOXA CP 132U Series board is plugged in the system will prompt you to take care of Port Configuration for the new board and skip this stage 1 After detecting the first new Industio CP 132U Series board Windows 95 98 will automatically display a New hardware found message box and show the following windows Click on Next to continue Windows 95 Windows 98 Update Device Driver Wizard Add New Hardware Wizard This wizard will complete the installation of This wizard searches for new drivers for PCI Serial Controller PCI Serial Controller by searching your local drives network and Internet locations for the most current driver Mer A device driver is a software program that makes a If you have a disk or CD ROM that came with this device insert it now am It is recommended that you let Windows search for an updated driver To do this click Next to continue gt 2 Click on Other Locations Select Display a list and then click on Update Device Driver Wizard Next to continue Windows was unable to locate a driver for this device Add New Hardware Wizard If you do not want to install a driver now click
40. installed the CP 132U Series Installation window will appear automatically and the port mapping will be done automatically by the system If one CP 132U Series board was already installed and another CP 132U Series board is plugged in then the system will prompt you to take care of port configuration as discussed in this section Click on a specific port 2 Click on the Port Setting button to open the Port X window PCI Bus Number is O and Device Number is 8 Port COM No Rx FIFO Trig Tx FIFO Size COM 3 56 64 2 COM4 56 64 Property B Cancel 3 Select a COM number for the specific port from the Port Number pull down list Step 4 is optional if you want to assign COM numbers to Ports manually 4 Check the Auto Enumerating COM Number check box to number ports seguentially For example if COM 3 is assigned to Port 1 then COM 4 will be automatically assigned to Port 2 You may skip Steps 5 to 8 if the system does not require special performance tuning 5 Select an Rx FIFO Trigger from the Rx FIFO Trigger pull down list Rx FIFO trigger levels from to 56 bytes are available with the default value set at 56 bytes 6 Check the Set the change to all ports check box if you want to apply the just 3 14 Industio CP 132 Series User s Manual Software Installation defined Rx FIFO Trigger to all ports 7 Select a Tx FIFO Size from the Tx FIFO Size pull down lis
41. izard helps you install software for MOXA communication port If your hardware came with an installation CD QE or floppy disk insert it now What do you want the wizard to do Install the software automatically Recommended Install from a list or specific location Advanced Click Next to continue lt Back Cancel 10 Input the location of the driver in the text input box or use the Browse button to locate the appropriate folder Please choose your search and installation options yw tan S Search for the best driver in these locations Llse the check boxes below to limit or expand the default search which includes local paths and removable media The best driver found will be installed Search removable media floppy CD ROM IV Include this location in the search D Driver6a win2KAV1 5 Browse C Don t search will choose the driver to install Choose this option to select the device driver from a list Windows does not guarantee that the driver you choose will be the best match for your hardware EM 3 26 Industio CP 132 Series User s Manual 12 Select Specify a location and then click on Next to continue Found New Hardware Wizard Locate Driver Files Where do you want Windows to search for driver files LD HIJIM dives Micrasaft Windows Update 13 Insert the Moxa Driver CD into the CD ROM drive and then specify the location of the file as F multi_bd
42. led to distinguish the installed boards from each other A 2 MOXA EtherDevice Server User s Manual Return Procedure For product repair exchange or refund the customer must Provide evidence of original purchase Obtain a Product Return Agreement PRA from the sales representative or dealer Fill out the Problem Report Form PRF Include as much detail as possible for a shorter product repair time Carefully pack the product in an anti static package and send it pre paid to the dealer The PRA should be visible on the outside of the package and include a description of the problem along with the return address and telephone number of a technical contact
43. maged by lightning or high potential voltage CP132U Series boards have built in surge protection An optical isolation option 2000V and surge protection option max ESD of 25 KV max EFT of 2 KV are also available in this series Both of these features provide protection when the boards are used in critical or harsh factory type environments PCI Solution The board complies with PCI Spec 2 1 and does not require either switches or jumpers The hardware configuration for the IRQ and I O address is automatically assigned by the PCI BIOS This means that the board MUST be plugged into the computer first before installing the driver software For more PCI information refer to the Technical Reference Appendix 1 2 Industio CP 132 Series User s Manual Introduction Universal PCI The 32 64 bit PCI local bus specification specifies both 3 3V and 5V connector types for the PCI hardware Moxa s universal PCI card allows the user to plug into both a 3 3V and 32 64 bit slot Operating System Support The Industio CP 132U series is compatible with most major industrial platforms including Windows NT 2000 XP Windows 95 98 and Linux MOXA device drivers are provided for smoother installation configuration and performance In this manual sections for MOXA Windows NT Windows 2000 XP Windows 95 98 and Linux are included MOXA Serial Comm Tools For application development MOXA provides an easy to use serial communication library
44. make clean make install from moxa mxser driver Verifying driver installation You may refer to var log messages to check the latest status log reported by this driver whenever it s activated Utilities There are 3 utilities contained in this driver They are msdiag msmon and msterm These 3 utilities are released in the form of source code They should be compiled and then the executable files should be copied to the usr bin directory Before using these utilities please load the driver refer to Sections 3 4 3 5 and 3 6 and make sure you have run the msmknod utility msdiag Diagnostic This utility is used to display which Moxa Smartio Industio boards in the system can be found by the driver msmon Port Monitoring This utility gives the user a quick view of all MOXA port activity You can easily see each port s total received transmitted Rx Tx character count from the time the monitoring was started Rx Tx throughputs per second are reported on an interval basis e g the last 5 seconds and on an average basis since the time the monitoring was started You can reset all ports count by lt HOME gt key lt gt lt gt 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 msterm Terminal Emulation This utility provides the ability to send and receive data through all tt
45. nd line status signals msterm jA simple terminal program which is useful when testing serial ports The source code for all of these drivers and utilities are published under GNU General Public License Please refer to the GNU General Public License announcement in each source code file for more detail You may always find the latest Moxa drivers at www moxa com or www moxa com tw This version of the driver can be installed as a Loadable Module Module driver or built into the kernel Static driver You may refer to the following installation procedure to determine which method is suitable for you Before you install the driver please refer to the hardware installation procedure in the User s Manual We assume the user is familiar with the following documents e Serial HOWTO e Kernel HOWTO oystem Requirements Hardware platform Intel x86 machine Kernel version 2 0 3x or 2 2 x or 2 4 x gcc version 2 72 or later A maximum of 4 boards can be installed in combination Installation Hardware Installation The Smartio Industio family multiport boards support the PCI bus type PCI board Y ou may need to adjust IRO usage in the BIOS to avoid an IRO conflict with other PCI devices Please refer to the hardware installation procedure in the User s Manual before installing the board PCI IRQ Sharing Each port on the same multiport board will share the same IRQ Up to 4 Moxa Industio CP 132 Series User s Manual 9799 Sma
46. ng the Industio CP 132U Series Board Step 1 Power off the PC To avoid damaging your system and board make sure your computer is turned off before installing any board Step2 Remove the PC s cover Step 3 Remove the slot cover bracket if there is one Step 4 Plug the Industio CP 132U Series control board firmly into a free 32 bit PCI slot or the CP 132U Series board into both a 32 bit 64 bit slot Step 5 Fasten the holding screw to fix the control board in place Step 6 Replace the system cover Step 7 Power on the PC The BIOS will automatically set the IRQ and I O address Each board must occupy one unique IRQ and two 8 byte I O addresses which are assigned automatically by the PCI BIOS However you can select a free IRQ number manually via the PC s BIOS setup for the PCI slot but normally this method is not available for the I O address The possible IRQ numbers are 2 3 4 5 7 10 11 12 and 15 The possible I O addresses are from 0x0000 to 0xFFFF Step 8 Proceed with the software installation discussed in the next chapter Software Installation Industio CP 132 Series Users Manual 2 9 3 Software Installation In this chapter the software driver installation configuration and driver update removal procedures are described for various operating systems including Windows NT Windows 95 98 Windows 2000 XP and Linux Before proceeding with the software installation complete the hardwar
47. omplying with the Microsoft Win32 API It facilitates the implementation of multi process and multi thread serial communication programs and consequently greatly reduces developing time For a complete library function description and sample programs for Visual C Visual Basic and Delphi check the help file and the sample programs in the Comm directory RS 485 Programming ADDC If you intend to use your Industio CP 132U Series board for RS 485 applications you can refer to the RS 485 programming guide below and also see the chapter Connection Cables and Cable Wiring for more details about RS 485 operation The Industio CP 132U Series supports only 2 wire half duplex RS 485 communication In this case the data pins are used for both data transmitting and receiving depending on the mode selected The modes available are ADDC Automatic Data Direction Control or By RTS Automatic Data Direction Control The ADDCTM scheme is the best solution for RS 485 applications To use ADDCTM mode set the mode switch to the ON position Under this mode no extra code is reguired to control data transfer both data transmitting and receiving since it is automatically managed with the board s built in intelligent hardware mechanism This means that RS 485 programming using ADDCTM mode is just as simple and straightforward as RS 232 or RS 422 programming How to transmit and receive data for Windows NT 95 98 In order to
48. ore installing the driver software 120 mm CP 132UI 52 TTL to Serial Signal Zone ET JP1 Isolation Modules 100 mm 121 mm DC to DC Power Converter PCI ISA Bridge 13 24 mm cb 120 00 mm 4 724 n CP 132UL ee B eh 80 10 mm 3 154 in coooocoocoocooo DOD DO O O O O DI CF DI O 64 41 mm 2 536 in C O L 18 76 mm L 0 778 in alU Jl t 16 00 mm 0 630 in 10 20 mm 0 402 in 18 42 mm 0 725 in 2 2 Industio CP 132 Series User s Manual Hardware Installation Industio CP 132U Series boards have four onboard DIP Switches referred to below as S1 1 S1 2 S2 1 and S2 2 that allow the user to choose one of three serial interfaces RS 422 RS 485 2 wire RS 485 4 wire for each of the two ports Note that S2 1 and S2 2 select between RS 422 and RS 485 and S1 1 and S1 2 select between 2 wire and 4 wire RS 485 S1 is only active when S2 is set to ON The figures on the following page show you how to use the switches to select one of the three serial interfaces for each of the board s two ports Industio CP 132 Series Users Manual 2 DIP Switch Pot Settings s11 S2 2 WIRE R5485 RS 485 2 wire RS 485 4 wire RS422 DIP Switch Settings St2 S22 2 WIRE RS485 RS 422 RS 485 2 wire RS 485 4 wire 2 4 Industio CP 132 Series User s Manual Hardware Installation Installi
49. ou want to reboot the system later 3 20 Industio CP 132 Series User s Manual Software Installation Removing the Driver This section explains how to remove the Industio CP 132U Series board driver 1 Open the Control Panel double click on the Add Remove Programs icon and then select the Install Uninstall tab 2 Click on the MOXA Smartio Industio Driver option and then click on the Add Remove button to start the driver removal Add Remove Programs Properties i x Install Uninstall windows Setup Startup Disk p To install a new program from a floppy disk or CD ROM k I drive click Install Windows To remove a program or to modify its installed components select it from the list and click Add Remove ey The following software can be automatically removed by Smartia Industio Driver PComm Lite Ver 2 1 Add Remove Ok Cancel 3 Click the Yes button in the message box shown below to continue HOSA 5martio lndustio Driver Ex Do vou really want to remove MOXA Smartio Industia Driver 7 4 Click OK in the Add Remove Programs Properties dialog box Industio CP 132 Series Users Manual 2 21 Windows 2000 XP Windows 2000 XP supports up to 256 serial ports from COM1 to COM256 To fully utilize Windows 2000 XP s multi process and multi thread advanced features pure 32 bit Windows 2000 XP device drivers were developed for the Industio CP 132U Series and other
50. owing device e PCI Serial Port Windows found a driver for this device To install the driver Windows found click Next G h mnulti_bd software win2k smartio mxser inf lt Back Cancel 7 You can safely ignore any warnings about digitally signed software Click on Yes to continue software compatibility Click on Continue Anyway to proceed Hardware Installation The software you are installing for this hardware MOXA CP 132U Series PCI Bus has not passed Windows Logo testing to verify its compatibility with Windows XP Tell me why this testing is important Continuing your installation of this software may impair or destabilize the correct operation of your system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the hardware vendor for software that has passed Windows Logo testing Continue Anyway STOP Installation 6 Wait while the driver software is installed Found New Hardware Wizard Please wait while the wizard installs the software e S Bac MOXA CP 132U Series PCI Bus a sidg2k dll To CAWINXPMSystem32 EEEEEEEEEEEEEE Zancel 7 The next window shows the model number of the board and indicates that Windows has completed the driver installation Click on Finish to continue with the rest of the installation procedure 3 24 Industio CP 132 Series User s Manual Soft
51. rk adapters V Ports COM amp LPT A i Communications Port COM1 i A i Communications Port COM2 JW ECP Printer Port LPT1 SCSI and RAID controllers Sound video and game controllers System devices Universal Serial Bus controllers aR z Computer j 4 Computer Disk drives See Disk drives 2 Display adapters Display adapters 29 DYD CD ROM drives X 2 DVD CD ROM drives Floppy disk controllers I Floppy disk controllers H E Floppy disk drives A Floppy disk drives E B IDE ATA ATAPI controllers E 1 amp 3 IDE ATA ATAPI controllers ER Keyboards Keyboards a 3 Mice and other painting devices Mice and other pointing devices Monitors Monitors El F EE E A Industio CP 132 Series Users Manual 9799 Linux NOTE This section applies to Linux kernel 2 2 14 or later The Moxa Smartio Industio driver is included in the Linux kernel 2 2 14 or later versions However to use this built in driver you need some additional utilities that can be downloaded from the Moxa website or software CD ROM We suggest that you back up the built in driver usr src linux drivers char mxser c and use the driver downloaded from Moxa or the software CD ROM The installation procedure involves both hardware and software installation e For instructions on installing the hardware refer to the Hardware installation section e To install the software
52. rt Callout port Ist board ttyM0 ttyM7 cum0 cum7 2nd board ttyM8 ttyM15 cum8 cum15 3rd board ttyM16 ttyM23 cum16 cum23 4th board ttyM24 ttym31 cum24 cum31 3 36 Industio CP 132 Series User s Manual Software Installation Board seguence This driver will activate ISA boards according to the parameter set in the driver After all specified ISA boards have been activated PCI board will be installed in the system automatically driven This means that the board number is sorted by the ISA boards CAP address PCI boards will be assigned in seguence after ISA boards with C168H PCI given higher priority than C104H PCI boards Module driver configuration The easiest way to proceed is to install a module driver You may skip this paragraph if you prefer static driver installation 1 Create a tty device that has the correct major number Before using the MOXA driver your system must have tty devices which were created with the driver s major number To simplify the procedure we provide the shell script msmknod This step only needs to be executed once But you will need to repeat the procedure when e You change the driver s major number refer to Section 3 7 e The total number of installed MOXA boards number changes e g when you add or delete a MOXA board e You want to change the tty name In this case you will need to modify the shell script msmknod The procedure is cd moxa mxser driver msmknod
53. rties that may result from its use This product might include unintentional technical or typographical errors Changes are periodically made to the information herein to correct such errors and these changes are incorporated into new editions of the publication MOXA Internet Services Customer satisfaction is our number one concern and to ensure that customers receive the full benefit of our products Moxa Internet Services has been set up to provide technical support driver updates product information and user s manual updates The following services are provided E mail for technical support support moxa com tw World Wide Web WWW Site for product information EE FER http www moxa com or FER FF http Www moxa com tw Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Appendix A Table of Contents INErOAUC HON Pile 1 1 CON CU VW aa ai ai aa i Yd aa aa 1 2 PC AGUS Asi aaa aa i i a rW ta A RS RF oi 1 4 Pack ae eC heoK sb ui aaa t MM LM LI E at ale IE 1 5 Hardware Installation eere ees 2 1 C P3D52 Series Block DISBEAIH eei a is ika a Hte idm aa iau nid 2 2 Installing the Industio CP 132 Series Board ssuuuuseee 2 5 Software Installation omisi Dra sus UU usi M ban L aa d RE 3 1 MOS NT MR KE K I 3 2 window 295 98 aiu dn a i sia i AAA
54. rtio Industio PCI Family multiport boards can be installed together on the same system and it s guite possible that they will all share the same IRO However since the IRO is assigned automatically by the system the user does not need to worry about which IRO is used for which board Obtaining Driver Files The driver file may be obtained from the moxa website www moxa com or from the software CD In either case the first step is to copy the driver file mxser tgz to a specific directory such as moxa Execute the commands given below to carry out this procedure Hcd mkdir moxa cd moxa tar xvf dev fdO Or cd mkdir moxa cd moxa cp mnt cdrom lt driver directory gt mxser tgz tar xvfz mxser tgz Device naming convention You may find all driver and utility files under moxa mxser The installation procedure described below depends on the model you d like to use to run the driver If you prefer a module driver refer to Section 3 4 If a static driver is required refer to Section 3 5 amp 3 6 Dialin and callout port This driver remains traditional serial device properties There are two special file name for each serial port One is dial in port which is named ttyMxx For callout port the naming convention is cumxx Device naming when more than 2 boards are installed The naming convention for each Smartio Industio multiport board is pre defined as shown below Board Num Dial in Po
55. s a convenient way to diagnose problems with Moxa boards and provides internal and external testing of IRQ TxD RxD UART CTS RTS DTR DSR DTR DCD etc This program can verify the correct operation of both the H W and S W for all Moxa boards and ports Event Log To check the Event Log for MOXA boards click Start Settings Control Panel Administrative Tools Event Viewer to enter the Event Viewer program You may find the latest warning message relevant to the Moxa driver in the system category 3 30 Industio CP 132 Series User s Manual Removing the Driver Software Installation 1 You can uninstall the board by selecting Start gt Settings gt Control Panel gt System Windows 2000 3 xl General Network Identification Hardware user Profiles Advanced Hardware Wizard The Hardware wizard helps you install uninstall repair fe unplug eject and configure your hardware Hardware Wizard Device Manager fe The Device Manager lists all the hardware devices installed on your computer Use the Device Manager to change the properties of any device Hardware Profiles TN Hardware profiles provide a way for you to set up and store different hardware configurations Hardware Profiles DK Cancel Apply Windows XP System Properties System Restore Automatic Updates Remote General Computer Name Hardware Advanced Add Hardware Wizard Ed
56. t Tx FIFO sizes from 1 to 64 bytes are available with the default value set at 64 bytes 8 Check the Set the change to all ports check box if you want to apply the just defined Tx FIFO Size to all ports TF Port Number V Auto Enumerating COM Number Rx FIFO Trigger 56 v Setthe change to all ports Tx FIFO Size 64 v v Set the change to all ports Property OK Cancel 9 Click the OK button in the Port X dialog box to confirm the port settings 10 Click the OK button in the Property dialog box to complete the port settings Industio CP 132 Series User s Manual 9719 Board and Port Ready Stage The Board and Port Ready Stages for Windows 95 and Windows 98 are slightly different This last stage completes the driver installation Windows 95 Windows 98 After configuring the ports you can immediately After configuring the ports click the Finish use the COM ports of the Industio CP 132U Series button The COM ports of the Industio CP 132U board without restarting Windows 95 Series board can be used without restarting Windows 98 Add New Hardware Wizard CP 132U Series Windows has finished installing the software you selected that your new hardware device requires E Cancel If an error message similar to CP 132U Series BusNo x DevNo x pops up refer to the Troubleshooting chapter Port1 COMx interrupt number is inv
57. to assign COM numbers to the Port manually 5 _ Check the Auto Enumerating COM Name check box to assign continuous COM numbers for subseguent ports For example if COM 3 is assigned to Port 1 then COM 4 will be automatically assigned to Port 2 Steps 6 and 7 are optional if the system does not reguire special performance tuning 6 Re assign the Rx FIFO Trigger by selecting a number from the pull down list Check the Set the change to all ports check box if you want to apply this setting to all ports Rx FIFO trigger levels from 1 to 56 bytes are available with the default value set at 56 bytes 7 Re assign the Tx FIFO Size by selecting a number from the pull down list Check the Set the change to all ports check box if you want to apply this setting to all ports Tx FIFO sizes from 1 to 64 bytes are available with default value set at 64 bytes 3 18 Industio CP 132 Series User s Manual Software Installation Prae SSA v Auto Enumerating COM Number Rx FIFO Trigger 56 v Setthe change to all ports Tx FIFO Size 64 v Set the change to all ports 8 Click the OK button in the Port X dialog box 9 Click the OK button in the CP 132U Series Properties dialog box 10 Click the OK button in the Device Manager tab 11 Restart the system to activate the latest configuration Updating the Driver This section will discuss how to update the Windows 95 98 driver to enhan
58. ware Installation Digital Signature Not Found x Found New Hardware Wizard The Microsoft digital signature affirms that software has been tested with Windows and that the software has not We been altered since it was tested acp Completing the Found New Hardware Wizard The software you are about to install does not contain a Microsoft digital signature Therefore there is no guarantee that this software works correctly with Windows MOXA CP 132U Series PCI Bus The wizard has finished installing the software for B MOXA CP 132U Series PCI Bus If you want to search for Microsoft digitally signed software visit the Windows Update Web site at http windowsupdate microsoft com to see if one is available Do you want to continue the installation No More Info Click Finish to close the wizard 8 The next window shows the model number of ZH BIS the board and indicates that Windows has 3 The next Found New Hardware Wizard completed the driver installation Click on window to appear indicates that Windows has Finish to continue with the rest of the identified the board s serial ports and is installation procedure starting to install the ports i Found New Hardware PCI Serial Port Found New Hardware Wizard Completing the Found New Hardware Wizard Sa MOXA CP 132U Series PCI Bus Windows has finished installing the software for this device To close
59. x CP 132U RS 485 Device 1 Master Slave 2 TxD B RxD B 1 TxD A RxD A 3 RxD B TxD B 4 RxD A TxD A 5 GND GND RS 485 Device N Slave RxD B RxD A TxD B TxD A GND See the section RS 485 Programming in the Serial Programming Tools chapter for more details on RS 485 programming Industio CP 132 Series User s Manual Connection Cables and Cable Wiring Impedance Matching and Termination Resistors When using RS 422 485 serial communications an electrical signal that travels through two different resistance junctions in a transmission line will sometimes give rise to signal reflection due to the impedance mismatch Signal reflection causes signal distortion which in turn contributes to communication errors The solution to this problem is to establish the same impedance at the ends of the transmission line as in the line itself by terminating the ends of the line with resistors Industio CP 132 Series Users Manual 9 6 Troubleshooting Common Industio CP 132U Series problems and possible solutions are listed below If you still have problems contact your dealer or Moxa for help or use the Problem Report Form at the end of this manual to report problems to your dealer General Troubleshooting l The MOXA PCI board cannot be detected by the MOXA driver while installing the driver Hardware causes and solutions a The board is not installed in the computer Pleas
60. xt available COM number For instance if the first port is mapped to COM3 then the second port is mapped to COMA If Auto Enumerating COM Number is not checked specify the COM number for each port separately For example the second port could be mapped to COM10 and the first port mapped to COM3 Rx FIFO Trigger You may choose from Rx FIFO trigger levels ranging from 1 to 56 with default value set at 56 bytes Tx FIFO Size You may choose a Tx FIFO size from between 1 and 64 bytes with default value set at 64 bytes Industio CP 132 Series Users Manual 3 9 Click OK in the Port 7 and Property dialog boxes to go back to the MOXA Smartio Industio Configuration Panel dialog box Note If you need to install more than one board click Add and repeat steps 6 to 8 to configure the additional board Up to four Industio CP 132U Series boards can be installed in one NT system Click OK to finish the configuration Board Type IO address INT vector IRG Bus Dev COM Number B000 4500 0 SOMS ait Remove Property OK Cancel 10 When you have finished the configuration click on the Close button in the Network Settings dialog box 11 Restart the Windows NT system The new configuration will take effect when the system restarts Hetwork Settings Change rou must shut down and restart your computer before the new settings will take effect Do
61. y ports especially for MOXA ports It is very useful for testing simple applications such as sending AT commands to a modem connected to the port or as a terminal for login purposes Note that this is a dumb terminal emulation that does not handle full screen operations 3 42 Industio CP 132 Series User s Manual Software Installation Setserial Supported Setserial parameters are listed as below uart set UART type 16450 gt disable FIFO 16550A enable FIFO close delay set the amount of time in 1 100 of a second that DTR should be kept low while being closed closing wait set the amount of time in 1 100 of a second that the serial port should wait for data to be drained while being closed before the receiver is disabled spd hi Use 57 6kb when the application reguests 38 4kb spd vhi Use 115 2kb when the application requests 38 4kb spd normal Use 38 4kb when the application reguests 38 4kb Troubleshooting The boot time error messages and solutions are stated as clearly as possible If you exhaust all possible solutions without solving the problem please contact our technical support team for more help Error msg More than 4 Moxa Smartio Industio family boards found Fifth board and after are ignored Solution To avoid this problem unplug the 5th 6th etc boards The Moxa driver supports a maximum of 4 boards Error msg Request irq fail IRQ address may conflict with another device Solution Other PC
62. you want to restart pour computer now Note The latest configuration will not take effect unless the system restarts 12 Once the system restarts you may check the event log issued by the MOXA driver to see if the board s ports have been initialized successfully e Enter the Administrative group click on the Event Viewer icon and select System Event Log to check a message similar to MOXA CP 132 with first serial port COM3 has been enabled for each configured board 3 6 Industio CP 132 Series User s Manual Software Installation e fan error message similar to Cannot find any configured MOXA CP 132 board appears refer to the Troubleshooting chapter for solutions Note Once the board and the driver are installed and the driver restarts successfully you can start to develop applications with the PComm library see the Serial Programming Tools chapter or the Microsoft Win32 API You can also execute ready made applications such as PComm utility Terminal emulator see Serial Programming Tools chapter or HyperTerminal to transmit receive data as well as Remote Access Service to provide dial up networking capabilities Configuring the Board and Ports The following steps explain how to re configure the board s ports 1 In the Control Panel click on the Network icon and select the Adapters tab 2 Select MOXA Smartio Industio Family Adapter in Network Adapters
63. ystem To check this problem run another existing and known good application or use the utilities provided by Moxa such as Pcomm Terminal emulator or HyperTerminal under Windows NT and Windows 95 98 Industio CP 132 Series User s Manual Troubleshooting Windows NT This section is specific for troubleshooting under Windows NT For general problems and solutions see the previous section General Troubleshooting l After the system reboots the error message Another driver in the system which did not report its resources has already claimed the interrupt used by xxx appears in the Event Log This indicates the MOXA board was found but the IRQ is conflicting with another adapter Please check the PCI BIOS IRQ settings first and then select an IRQ that is available After the system reboots the error message Cannot find any configured MOXA Smartio Industio Series board appears in the Event Log Make sure the PCI board is seated firmly in the expansion slot The COM number of the Industio CP 132U Series conflicts with others The COM numbers of different boards happen to be the same Try changing the COM number mappings Windows NT system panic blue screen The possible reason is an IRQ or memory conflict with other ISA Bus adapters like LAN and SCSI boards or the system BIOS Refer to the corresponding problem in the previous section General Troubleshooting for possible solutions Industio
Download Pdf Manuals
Related Search
Related Contents
MTS TestSuite™ Fracture Templates User Guide Manual del usuario PDF Morelos. Copyright © All rights reserved.
Failed to retrieve file