background image

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 b3 volts to +25 volts for a Space 
(de-asserted handshake). Typically RS-232 voltages will be b3V to +11V and 

3V to 

–11V.

 

Handshaking 

To control the flow of data between two devices, some software uses hardware 
handshaking. RS-232 devices which require hardware handshaking require connection 
of RTS/CTS and/or DTR/DSR lines in order to operate properly. 

Programs for RS-232 may chose to use only the RS-232 TD and RD data lines and 
ignore hardware handshaking inputs (set up as None in the port configuration). In some 
cases the software may require connections to verify that a cable is connected and the 
devices are ready for access (typically DTR/DSR is used). 

Some devices may use software handshaking in which data characters (e.g. Xon/Xoff ) 
are sent to start and stop the incoming or outgoing data. These unprintable characters 
have the decimal value (17) and (19), and can often be generated in a terminal program 
with CTL+Q or CTL+S.  

RTS Control In RS-232 Mode 

In RS-232 mode, MIport cards support software and hardware handshaking. 
Handshake lines can be controlled from the communications software used with your 
application. When operating a MIport card port in RS-232 mode, set the 

RTS Control

 

driver setting to 

Normal

. This ensures that the RTS line will be free to be controlled by 

your software. If your communications software uses software handshaking, hardware 
handshake lines will not be required. 

 

Figure 13.  RTS Control 

– Select Normal for RS-232 Operation 

Summary of Contents for 3PCIU2

Page 1: ...al l C Ca ar rd ds s R RS S 2 23 32 2 R RS S 4 42 22 2 R RS S 4 48 85 5 M Mo od de el ls s 3 3P PC CI IU U2 2 3 3P PC CI IU U4 4 3 3P PC CI IU U8 8 N No on n I Is so ol la at te ed d a an nd d M Mo o...

Page 2: ...n 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 91 79...

Page 3: ...efore inserting the card 2010 B B Electronics No part of this publication may be reproduced or transmitted in any form or by any means electronic or mechanical including photography recording or any i...

Page 4: ...Setting the DIP Switches on RS 422 485 Only Ports 8 INSTALLING THE SERIAL CARD 10 CHAPTER 3 DRIVER SOFTWARE INSTALLATION 11 INSTALLING WINDOWS 7 DRIVER SOFTWARE 11 INSTALLING WINDOWS XP DRIVER SOFTWA...

Page 5: ...2 OPERATION 32 RS 422 Limitations 33 RS 485 OPERATION 33 Send Data Control 33 RS 485 TERMINATION RESISTORS 34 RS 485 NETWORK BIASING 34 2 WIRE RS 485 CONNECTIONS 36 2 Wire RS 485 Mode 36 4 WIRE RS 422...

Page 6: ...m DIP Switch 1 RS 422 485 only 5 DIP Switch 2 RS 422 485 only 6 APPENDIX B CONNECTOR PINOUTS 1 RS 232 PINOUTS 1 RS 422 485 PINOUTS 2 APPENDIX C TROUBLESHOOTING WITH COMTEST 5 COMTEST FEATURES 5 INSTAL...

Page 7: ...available Isolated models available in 1 2 or 4 ports Non isolated models available in 2 4 or 8 ports 4 and 8 port models include fanout cables Plug Play compatible Windows sets addresses and IRQ used...

Page 8: ...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 m...

Page 9: ...er 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 pl...

Page 10: ...imum on all lines Ports are isolated from the PC power and ground as well as other ports on the same card Connectors 3PCIOU1 1 DB 9 male 3PCIOU2 2 DB 9 male 3PCIOU4 2 DB 9 male RS 232 422 485 ports 2...

Page 11: ...ndard ESD precautions outlined below CAUTION This is an Electrostatic Sensitive Device Use ESD precautions for safe handling Before removing the card from the anti static protective packaging Discharg...

Page 12: ...signage television studio satellite dish control performance lighting and audio equipment control RS 485 Mode In RS 485 Mode MIport cards provide RS 485 interfaces which operate with the same signals...

Page 13: ...32 422 485 Ports Set the DIP switches to configure the desired operating mode as follows 422 485 TX On RX On 232 TX SD RX SD Switch 1 Switch 2 Switch 3 RS 232 Mode 422 485 TX On RX On 232 TX SD RX SD...

Page 14: ...uously enabled allowing it to receive all data on the communications line Since the transmitter sends data on the other wire pair the port does not receive its own transmissions Placing the bottom DIP...

Page 15: ...tions 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 operation or full duplex four wire RS 422 RS 485 op...

Page 16: ...y to set the configuration DIP switches Remove AC power from the computer before inserting the card 1 Shut down your computer 2 Unplug the power cord to remove power to prevent accidentally turning on...

Page 17: ...stall 7 Windows successfully updated driver software will be displayed Select close 8 In device manager the MIPort Card will be listed under Multiport Serial Adapter Additional COM Ports will be liste...

Page 18: ...izard will proceed to install the software for the card The following dialog box will appear 7 To begin the installation of the software for the PCI card click Install the software automatically Click...

Page 19: ...rt Control Panel System and Maintenance Device Manager 2 In the Device Manager click Multi port serial adapters All serial adapter cards should appear in the list Additional information about the card...

Page 20: ...le click the name of the port to be configured 2 On the Port Properties dialog click the Port Settings tab The dialog will display the current settings for Bits per second Data bits Parity Stop bits a...

Page 21: ...the throughput of the data Typically this parameter is set at zero and usually does not have to be changed The Receive buffer Low parameter in the Advance Port Settings dialog allows you to set the va...

Page 22: ...ts receive buffer has reached the point at which it asks the computer to transfer the data to program memory When this point is reached the UART de asserts the RTS hardware handshake line which is con...

Page 23: ...ing 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...

Page 24: ...to the terminal This step is only required if there is a problem installing the driver username computer script t 2 MIport time a MIport script Script started on Tue 31 Aug 2010 03 56 11 AM CDT 4 Extr...

Page 25: ...D home username MIport 3 0 0 make C lib modules 2 6 32 24 generic build M home username MIport 3 0 0 modules_install make 1 Entering directory usr src linux headers 2 6 32 24 generic INSTALL home user...

Page 26: ...al communications using gtkterm Change the serial port under Configration Ports and set the port to dev ttyM0 for each serial port increment the number at the end of the name e g dev ttyM1 username co...

Page 27: ...ng package lists Done Building dependency tree Reading state information Done The following extra packages will be installed binutils gcc 4 4 libc bin libc dev bin libc6 libc6 dev libgomp1 linux libc...

Page 28: ...ate correctly 7 Insert the CD ROM into the CD ROM drive and mount the CD ROM username computer sudo mount t iso9660 r dev cdrom media cdrom 8 Check that the CD ROM was mounted username computer ls med...

Page 29: ...ng directory usr src linux headers 2 6 32 24 generic 13 Determine the present working directory The output may be different than shown below username computer pwd home username MIport 3 0 0 14 Install...

Page 30: ...the MIport driver is not running username computer dmesg grep MIport 271 828182 B B Electronics PCI MIport serial driver Revision 4 5 314 159265 MIport 0000 07 05 05 0 PCI INT A GSI 26 level low IRQ 2...

Page 31: ...r under Ports COM LPT right click the COM port to be uninstalled 2 On the Confirm Device Removal dialog that appears click OK 3 After a few seconds the dialog will disappear In the Device Manager the...

Page 32: ...hapter 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 di...

Page 33: ...er 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...

Page 34: ...devices RS 232 Signal Designations and DB 9 Pinout RS 232 Mode supports eight single ended signal lines and signal ground The DB 9 male connector is configured as a standard RS 232 DTE serial port The...

Page 35: ...CE There are two types of RS 232 ports DTE Data Terminal Equipment which is typically a computer DCE Data Communications Equipment which is typically a modem Data Terminal Equipment DTE When a DTE is...

Page 36: ...software may require connections to verify that a cable is connected and the devices are ready for access typically DTR DSR is used Some devices may use software handshaking in which data characters...

Page 37: ...sh control performance lighting and audio equipment control RS 485 operates with the same signals and signal levels as RS 422 but differs in that it allows multiple devices to share the same communica...

Page 38: ...ivity is rated at 200mV A separate signal ground common connection provides a common mode reference for the transmitter and receiver and is often used to ground a shield in the cable These factors pro...

Page 39: ...some of the limitations of RS 422 allowing multidrop communications using 2 wire and 4 wire connections from multiple transmitters and receivers To accomplish multidrop operation the transmit driver...

Page 40: ...ransmission line and encounters an impedance higher than that of the transmission line itself Typically termination resistors are not required for communications links that operate at less that 19 2 k...

Page 41: ...detected and one or more devices may not respond to commands or may operate intermittently Figure 18 RS 485 Biasing Resistors MIport RS 485 receivers come pre biased from the factory with a 4 7 k pull...

Page 42: ...tions 2 Wire RS 485 Mode Your cables must bridge pins 1 3 and pins 2 9 in order to receive and transmit Connect from Pin 2 to Data B of your devices and from pin 3 to Data A of your devices Make sure...

Page 43: ...the computer to RD B on the device 2 Connect the TD A pin 3 on the computer to RD A on the device 3 Connect the RD B pin 9 on the computer to TD B on the device 4 Connect the RD A pin 1 on the comput...

Page 44: ...85 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...

Page 45: ...ons RS 232 422 485 Operation 1 Ensure that you have set up your card for the correct mode of operation RS 232 RS 422 RS 485 2 wire or 4 wire using the DIP switches on the card and Advanced Port Settin...

Page 46: ...port card separate from the rest of your communications system Note Refer to Appendix C for information on how to install and use ComTest 1 A loopback connection for RS 232 connects the Transmit outpu...

Page 47: ...ode the input lines CTS DSR DCD RI are not pulled high 4 Some manufacturers label their data connections for A and B reverse of the standard for RS 422 or RS 485 so that the A line is and B line is in...

Page 48: ...P Switch 1 RS 232 422 485 ports The top DIP switch 1 configures the port for RS 232 or RS 422 485 operation This switch is the only one that is required to be set for RS 232 operation The positions of...

Page 49: ...nsmitter is sending preventing the port from receiving its own data Setting the DIP Switches on RS 422 485 Only Ports The 3PCIOU4 MIport card provides a combination of RS 232 422 485 and RS 422 485 on...

Page 50: ...h in the RX ON position configures the port for four wire operation In this mode the port s receiver is continuously enabled allowing it to receive all data on the communications line Since the port s...

Page 51: ...nput 2 TD Transmit Data Output 3 DTR Data Terminal Ready Output 4 GND Signal Ground 5 DSR Data Set Ready Input 6 RTS Request to Send Output 7 CTS Clear to Send Input 8 RI Ring Indicator Input 9 Figure...

Page 52: ...st jumper TDA to RDA and TDB to RDB Connect from TDA and TDB to the Data A and Data B wires of your RS 485 network Note Refer to Chapter 2 for example connections Note that the EIA RS 422 Specificatio...

Page 53: ...Connector Pinouts Document Number 3PCI 0712m Appendix B B 1 Figure 31 2 Wire RS 485 Wiring...

Page 54: ......

Page 55: ...Windows 98 2000 2003 Server XP Vista COM1 COM8 or above Dual Windows show typed transmit characters in a separate window from received characters Transmit Receive Activity Indicators Unprintable Char...

Page 56: ...up 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 your P...

Page 57: ...n settings 6 Type characters They will appear in the upper window If you are performing a loopback test you should see the characters appear in the lower window as they are received 7 On the Option me...

Reviews: