B&B 3PCIOU1 Manual - Configuring Port Settings

Manual is about: Multi-Interface PCI Bus Serial Cards (RS-232 / RS-422 / RS-485)

Summary of 3PCIOU1

  • Page 1

    Document number 3pci-0712m m m u u l l t t i i - - i i n n t t e e r r f f a a c c e e p p c c i i b b u u s s s s e e r r i i a a l l c c a a r r d d s s ( ( r r s s - - 2 2 3 3 2 2 / / r r s s - - 4 4 2 2 2 2 / / r r s s - - 4 4 8 8 5 5 ) ) m m o o d d e e l l s s 3 3 p p c c i i u u 2 2 , , 3 3 p...

  • Page 2

    Document number 3pci-0712m international headquarters b&b electronics mfg. Co. Inc. 707 dayton road ottawa, il 61350 usa phone (815) 433-5100 -- general fax (815) 433-5105 website: www.Bb-elec.Com european headquarters b&b electronics westlink commercial park oranmore, co. Galway, ireland phone +353...

  • Page 3

    Document number 3pci-0712m table of contents i caution: this is an electrostatic sensitive device. Use esd precautions for safe handling. Before removing the card from the anti-static protective packaging: discharge any static electricity buildup on your body by touching a large grounded metal surfa...

  • Page 4

    Ii table of contents document number 3pci-0712m t t a a b b l l e e o o f f c c o o n n t t e e n n t t s s table of contents ...........................................................................................Ii chapter 1: general information ....................................................

  • Page 5

    Document number 3pci-0712m table of contents iii uninstalling the miport card .............................................................................. 25 uninstalling the com ports ................................................................................. 25 removing inf and pnf driver ...

  • Page 6

    Iv table of contents document number 3pci-0712m dip switch 1 (rs-422/485 only) ............................................................................ 5 dip switch 2 (rs-422/485 only) ............................................................................ 6 appendix b: connector pinouts .....

  • Page 7: Introduction

    General information document number 3pci-0712m chapter 1 1 c c h h a a p p t t e e r r 1 1 : : g g e e n n e e r r a a l l i i n n f f o o r r m m a a t t i i o o n n introduction miport pci serial interface cards allow you to add rs-232, rs-422 and rs-485 interfaces to windows based computers equip...

  • Page 8: Miport Models And Features

    General information 2 chapter 1 document number 3pci-0712m miport models and features model number ports interface connectors 3pciou1 1 rs-232/422/485 db-9 male 3pciou2 2 rs-232/422/485 db-9 male 3pciou4 4 2 rs-232/422/485 ports 2 rs-422/485 ports 2 x db-9 male 2 x db-9 male use 2 nd expansion slot ...

  • Page 9

    General information document number 3pci-0712m chapter 1 3 model number ports interface connectors 3pciu2 2 rs-232/422/485 2 x db-9 male 3pciu4 4 rs-232/422/485 db-37 female (plus db-37 to 4x db-9 male cable) 3pciu8 8 4 rs-232/422/485 ports 4 rs-232 ports db-78 female (plus db-78 to 8x db-9 male cab...

  • Page 10: Specifications

    General information 4 chapter 1 document number 3pci-0712m specifications os supported windows xp, windows 2008 server (32/64 bit), windows vista (32/64 bit), windows 7 (32/64 bit), linux kernel 2.6.X is also supported in the following distributions: ubuntu 10.04 desktop edition (32/64 bit) and ubun...

  • Page 11: Pre-Setup Steps

    Serial card setup document number 3pci-0712m chapter 2 5 c c h h a a p p t t e e r r 2 2 : : s s e e r r i i a a l l c c a a r r d d s s e e t t u u p p the following serial card setup section applies to the following pci cards: 3pciou1 one port optically isolated pci serial card 3pciou2 two port op...

  • Page 12: Rs-232 Mode

    Serial card setup 6 chapter 2 document number 3pci-0712m overview of operational modes rs-232 mode in rs-232 mode miport serial ports function as buffered standard pc serial ports and operate as dtes (data terminal equipment). Rs-232 interfaces are commonly used for communications with modems, seria...

  • Page 13: Operating Mode Selection

    Serial card setup document number 3pci-0712m chapter 2 7 operating mode selection the hardware address and irq for the serial card is set by the windows operating system using driver information files and the plug and play os. The operating mode is set using dip switches, device manager driver setti...

  • Page 14

    Serial card setup 8 chapter 2 document number 3pci-0712m multipoints) the transmitter can be enabled all the time. Placing the middle dip switch in the tx on position accomplishes this. For rs-485 operation the middle dip switch is placed in the tx sd position. In this position the transmitter is on...

  • Page 15

    Serial card setup document number 3pci-0712m chapter 2 9 dip switch 1 (rs-422/485 only) the top dip switch (1) configures the port for rs-485 or rs-422 operation. For rs-422 operation (which uses two wire pairs and sends point-to-point or point-to-multipoints) the transmitter can be enabled all the ...

  • Page 16

    Serial card setup 10 chapter 2 document number 3pci-0712m installing the serial card caution: this is an electrostatic sensitive device. Use esd precautions for safe handling. Before removing the card from the anti-static protective packaging: discharge any static electricity buildup on your body by...

  • Page 17

    Driver software installation document number 3pci-0712m chapter 3 11 c c h h a a p p t t e e r r 3 3 : : d d r r i i v v e e r r s s o o f f t t w w a a r r e e i i n n s s t t a a l l l l a a t t i i o o n n installing windows 7 driver software windows 7 does not have a ―found new hardware wizard.‖...

  • Page 18: Pre-Installation Steps

    Driver software installation 12 chapter 3 document number 3pci-0712m pre-installation steps 1. Configure the port(s) on the card for the desired mode (rs-232, rs-422 or rs-485) using the three dip switches on the card. 2. If configuring for rs-422 or rs-485 modes, and bias or termination resistors a...

  • Page 19

    Driver software installation document number 3pci-0712m chapter 3 13 you may want to check to verify that the new b&b com ports are now available. 1. From the widows desktop, click start → control panel →system and maintenance → device manager 2. In the device manager, click multi-port serial adapte...

  • Page 20: Configuring Port Settings

    Setting driver options 14 chapter 4 document number 3pci-0712m c c h h a a p p t t e e r r 4 4 : : s s e e t t t t i i n n g g d d r r i i v v e e r r o o p p t t i i o o n n s s configuring port settings by entering the properties dialog a variety of information can be obtained and several port par...

  • Page 21: Setting The Fifo Buffers

    Setting driver options document number 3pci-0712m chapter 4 15 figure 8. Advanced port settings setting the fifo buffers miport cards use uarts that contain 64-byte transmit and receive fifo (first in, first out) buffer registers. The transmit buffer holds the data to be sent; the receive buffer hol...

  • Page 22

    Setting driver options 16 chapter 4 document number 3pci-0712m note: for proper operation the dip switches on the pci card must be set for the same mode. Refer to chapter 2 for more information on configuring the dip switches. 2. The direction control delay (bit times) box allows you to set the leng...

  • Page 23

    Setting driver options document number 3pci-0712m chapter 4 17 figure 9. Changing the com port name/number 2. After selecting a new com name/number, click ok, then click ok again on the settings page. After returning to the device manager screen, it should refresh automatically. The name/number of t...

  • Page 24

    Installing linux driver software 18 chapter 5 document number 3pci-0712m c c h h a a p p t t e e r r 5 5 : : i i n n s s t t a a l l l l i i n n g g l l i i n n u u x x d d r r i i v v e e r r s s o o f f t t w w a a r r e e installing miport driver on ubuntu 10.04 ubuntu 10.04 desktop (32-bit and 6...

  • Page 25

    Installing linux driver software document number 3pci-0712m chapter 5 19 make -c /lib/modules/2.6.32-24-generic/build m=/home/username/miport- 3.0.0 modules make[1]: entering directory `/usr/src/linux-headers-2.6.32-24-generic' cc [m] /home/username/miport-3.0.0/miport.O building modules, stage 2. M...

  • Page 27

    Installing linux driver software document number 3pci-0712m chapter 5 21 ubuntu 10.04 server (32-bit and 64-bit) 1. Determine which version of gcc built the current linux kernel. Username@computer$ cat /proc/version ↲ linux version 2.6.32-21-server (buildd@yellow) (gcc version 4.4.3 (ubuntu 4.4.3-4u...

  • Page 28

    Installing linux driver software 22 chapter 5 document number 3pci-0712m username@computer$ sudo apt-get install linux-headers-2.6.32-21-server ↲ : : setting up linux-headers-2.6.32-25 (2.6.32-25.45) setting up linux-headers-2.6.32-25-server (2.6.32-25.45) 5. Create a folder for mounting the cd-rom....

  • Page 29

    Installing linux driver software document number 3pci-0712m chapter 5 23 11. Change the current working directory to where the miport driver source code is located. Username@computer$ cd miport-3.0.0 ↲ 12. Compile the miport device driver. Username@computer$ make ↲ make -c /lib/modules/2.6.32-24-gen...

  • Page 30

    Installing linux driver software 24 chapter 5 document number 3pci-0712m searching for miport driver in: ... The miport driver was found in: ... The miport driver is loaded. Making special nodes for miport. Making /dev/ttym0 /dev/cum0 making /dev/ttym1 /dev/cum1 making /dev/ttym2 /dev/cum2 making /d...

  • Page 31: Windows 7

    Removing drivers, ports and cards document number 3pci-0712m chapter 6 25 c c h h a a p p t t e e r r 6 6 : : r r e e m m o o v v i i n n g g d d r r i i v v e e r r s s , , p p o o r r t t s s a a n n d d c c a a r r d d s s windows 7 uninstalling the miport card 1. In the device manager, under mul...

  • Page 32

    Removing drivers, ports and cards 26 chapter 6 document number 3pci-0712m figure 10. Finding the inf files in windows explorer to find these files you may need to set your views (under my computer) to show all files and folders if the inf directory and .Inf files are not visible..

  • Page 33

    Removing drivers, ports and cards document number 3pci-0712m chapter 6 27 figure 11. Setting the folder options to display hidden files 3. Delete the oemx.Inf and oemx.Pnf files found in step 2.. Caution! Be careful to delete only the files associated with the pci card you are trying to uninstall..

  • Page 34: Rs-232 Mode

    Rs-232 connections/operation 28 chapter 7 document number 3pci-0712m c c h h a a p p t t e e r r 7 7 : : r r s s - - 2 2 3 3 2 2 c c o o n n n n e e c c t t i i o o n n s s / / o o p p e e r r a a t t i i o o n n rs-232 mode in rs-232 mode miport serial ports function as buffered standard pc serial ...

  • Page 35: Rs-232 Signal Designations

    Rs-232 connections/operation document number 3pci-0712m chapter 7 29 rs-232 signal designations the primary rs-232 signals are td (transmit) and rd (receive). Together with gnd (ground), they often are referred to as a ―3-wire‖ interface. The rts (request to send) and cts (clear to send) signals are...

  • Page 36: Handshaking

    Rs-232 connections/operation 30 chapter 7 document number 3pci-0712m the standard specifies that rs-232 inputs accept voltage levels between –3 volts and – 25 volts for a mark (asserted handshake) and between +3 volts to +25 volts for a space (de-asserted handshake). Typically rs-232 voltages will b...

  • Page 37: Rs-422/485 Mode

    Rs-422/ 485 connections/operation document number 3pci-0712m chapter 8 31 c c h h a a p p t t e e r r 8 8 : : r r s s - - 4 4 2 2 2 2 / / 4 4 8 8 5 5 c c o o n n n n e e c c t t i i o o n n s s / / o o p p e e r r a a t t i i o o n n rs-422/485 mode in rs-422/rs-485 mode miport serial ports provide ...

  • Page 38: Rs-422 Operation

    Rs-422/485 connections/operation 32 chapter 8 document number 3pci-0712m rs-422/485 differential signals in rs-422 and rs-485 interfaces signals are sent on differential pairs. In the idle, or mark, state, the tda(-) line will be 0v with respect to (wrt) ground and the tdb(+) line will be about 4.4v...

  • Page 39: Rs-422 Limitations

    Rs-422/ 485 connections/operation document number 3pci-0712m chapter 8 33 rs-422 limitations the limitation of rs-422 operation is that only one transmitter can be connected to a wire pair because the transmitter is active all the time. Even when the transmitter is not sending data it will assume th...

  • Page 40: Rs-485 Network Biasing

    Rs-422/485 connections/operation 34 chapter 8 document number 3pci-0712m figure 17. Setting rts control for rs-485 the rs-485 mode is set by configuring the dip switch setting on the miport card and by selecting rs-485 mode under rts control in the advanced com port settings dialog box. Note: for mo...

  • Page 41

    Rs-422/ 485 connections/operation document number 3pci-0712m chapter 8 35 it is important to maintain the mark state for all rs-485 receivers when no data is being sent. Maintaining the line in the mark state minimizes noise (that would otherwise be picked up by a high impedance line). It also provi...

  • Page 42: 2-Wire Rs-485 Connections

    Rs-422/485 connections/operation 36 chapter 8 document number 3pci-0712m figure 19. Termination and bias resistor placement note: for more information on termination, biasing and how to calculate resistor values download the rs-422/485 application note from www.Bb-elec.Com 2-wire rs-485 connections ...

  • Page 43

    Rs-422/ 485 connections/operation document number 3pci-0712m chapter 8 37 485, using the a connection for ―+‖ and the b for ―-―. In such cases, reversing the line pair permits operation. 4-wire rs-422 and rs-485 connections rs-422 point to point connection for rs-422 point to point communications co...

  • Page 44: 4-Wire Rs-485 Connection

    Rs-422/485 connections/operation 38 chapter 8 document number 3pci-0712m 4-wire rs-485 connection in a 4-wire rs-485 system, each receive line connects to the same receive terminal on all slaves, and each transmit line connects to the same transmit terminal on all slaves. The master to the first sla...

  • Page 45: Starting Up

    Dip switch / mode settings document number 3pci-0712m appendix a a -1 c c h h a a p p t t e e r r 9 9 : : t t r r o o u u b b l l e e s s h h o o o o t t i i n n g g m m i i p p o o r r t t c c a a r r d d s s your miport card should be fully functional when you receive it from the factory. Operatio...

  • Page 46: Checking The Miport Card

    Dip switch / mode settings a-2 appendix a document number 3pci-0712m 2. Make sure you have rts control set to the correct mode: normal for rs- 232, rs-485 mode for rs-485. Rs-422 mode works in either setting if the mode jumpers are set correctly. Checking the miport card using comtest and a loopback...

  • Page 47

    Dip switch / mode settings document number 3pci-0712m appendix a a -1 3. To check 2-wire rs-485 rs-422 or 4-wire rs-485 loopback connections, you must either enable the receiver by moving the receive jumper to rx enable mode, or use one port to transmit to another 2-wire rs-485 port or converter by ...

  • Page 48

    Dip switch / mode settings a-4 appendix a document number 3pci-0712m a a p p p p e e n n d d i i x x a a : : d d i i p p s s w w i i t t c c h h / / m m o o d d e e s s e e t t t t i i n n g g s s setting the dip switches on rs-232/422/485 ports set the dip switches to configure the desired operatin...

  • Page 49

    Dip switch / mode settings document number 3pci-0712m appendix a a -1 stated when not sending data, allowing other transmitters on the communications line to transmit without interference. Dip switch 3 (rs-232/422/485 ports) the bottom dip switch (3) configures the port for half-duplex (two-wire) rs...

  • Page 50

    Dip switch / mode settings a-6 appendix a document number 3pci-0712m stated when not sending data, allowing other transmitters on the communications line to transmit without interference. Dip switch 2 (rs-422/485 only) the bottom dip switch (2) configures the port for half-duplex (two-wire) rs-485 o...

  • Page 51: Rs-232 Pinouts

    Connector pinouts document number 3pci-0712m appendix b b -1 a a p p p p e e n n d d i i x x b b : : c c o o n n n n e e c c t t o o r r p p i i n n o o u u t t s s rs-232 pinouts name description direction (dte) db-9m pin dcd data carrier detect input 1 rd receive data input 2 td transmit data outp...

  • Page 52: Rs-422/485 Pinouts

    Connector pinouts b-2 appendix b document number 3pci-0712m rs-422/485 pinouts name description direction db-9m pin rda( ) receive data a (-) input 1 tdb(+) transmit data b (+) output 2 tda( ) transmit data a (-) output 3 gnd signal ground ------ 5 rdb(+) receive data b (+) input 9 figure 29. Rs-422...

  • Page 53

    Connector pinouts document number 3pci-0712m appendix b b -1 figure 31. 2-wire rs-485 wiring.

  • Page 55: Comtest Features

    Document number 3pci-0712m appendix d d-1 a a p p p p e e n n d d i i x x c c : : t t r r o o u u b b l l e e s s h h o o o o t t i i n n g g w w i i t t h h c c o o m m t t e e s s t t comtest is a simple 32-bit windows (windows 98, 2000, 2003 server, me, xp, nt 4.0 and vista) com port test program...

  • Page 56

    Declaration of conformity d-2 appendix d document number 3pci-0712m figure 32. Loading comtest 2. Run setup.Exe to install comtest on your program menu under b&b electronics. Loopback testing with comtest to familiarize yourself with the operation of comtest connect a loopback plug to a com port on ...

  • Page 57

    Document number 3pci-0712m appendix d d-1 figure 33. Rs-232 loopback w/handshaking connections 2. From the windows desktop click start → programs → b&b electronics → comtest → comtest. Comtest will start and then open the select port dialog box. 3. Select the com port you want to access or test. (th...