Expandable Smart Switch Model 232XSSD4 Document No. 232XSSD43800 This product designed and manufactured in Ottawa, Illinois USA of domestic and imported parts by International Headquarters B&B Electronics Mfg. Co. Inc. USA 707 Dayton Road - P.O. Box 1040 -- Ottawa, IL 61350 Phone (815) 433-5100 General Fax (815) 433-5105 -- Sales Fax (815) 433-5109 Technical Support Fax (815) 433-5104 Internet: www.bb-elec.com orders@bb-elec.com support@bb.elec.com European Headquarters B&B Electronics Ltd.
TABLE OF CONTENTS CHAPTER 1: HARDWARE ............................................................... 1 INTRODUCTION ....................................................................................... 1 SPECIFICATIONS ...................................................................................... 2 CHECKLIST.............................................................................................. 3 SERIAL DATA CONFIGURATION ...............................................................
APPENDIX A: ACSII CHARACTER CODES............................A-1 APPENDIX B: CABLE CHARTS................................................. B-1 CHART 1. IBM PC DB25 CONNECTOR TO MASTER PORT ................. B-1 CHART 2. IBM PC DB9 CONNECTOR TO MASTER PORT ................... B-1 CHART 3. MODEM DB25 CONNECTOR TO MASTER PORT ................. B-2 CHART 4. DCE DEVICE W/DB25 CONNECTOR TO PORTS A - H (DTE) ...................................................................................... B-2 CHART 5.
Chapter 1: HARDWARE Introduction The RS-232 Eight Port Expandable Smart Switch (232XSSD4) allows one RS-232 host device to connect to eight asynchronous serial devices. Refer to Figure 1. Four RS-232 ports and four RS232 or RS-485 (two or four wire, send data contol) are standard on the 232XSSD4, depending on the pins you use. Other options and additional RS-422/485 ports are available by contacting B&B technical support.
Specifications Model: 232XSSD4 Size: 10.1"w x 7.5"d x 3.3"h Power: 120VAC 60hz 16w Connectors: Master - DB-25 female (RS-232 or RS-422) Slave - DB-25 male (RS-232 or RS-422/485) Switching Baud Rate: from 300 to 38.4 Kbps Baud Rate: Any baud rate up to 115.
Switch Control Master Port TD UART Microcontroller Expansion Bus Port Combiner Control Lines Ports "A-H" T D Port A T D Port B T D Port C T D Port D T D Port E T D Port F T D Port G T D Port H C T S Port A C T S Port H Figure 1. Simplified Functional Diagram NOTE: This diagram illustrates only the transmit data (TD) signal. Checklist The following equipment should be in the shipping carton: 1. Expandable Smart Switch 2. Instruction Manual 3.
Table 1. Communication & Configuration Switch 1 0 1 0 1 0 1 0 1 X X X X X X X X DIP Switch 1 2 3 4 5 6 7 8 0 0 0 X X X 0 0 0 X X X 1 0 0 X X X 1 0 0 X X X 0 1 0 X X X 0 1 0 X X X 1 1 0 X X X 1 1 0 X X X X X X 0 X X X X X 1 X X X X X X 0 X X X X X 1 X X X X X X X X X X X X X X X X X X X X X 0 1 X X X X X X X X X X X X X X X X 0 1 Setting 300 Baud 600 Baud 1200 Baud 2400 Baud 4800 Baud 9600 Baud * 19.2K Baud 38.
Figure 2.
Figure 3. Master Port DCE/DTE Jumpers Figure 4. PC Board Options for RS-485 If an IBM PC (DTE device) is connected to the 232XSSD4 Master port, the Master port should be configured as a DCE port. If a modem (DCE device) is connected to the Master port, it should be configured as a DTE port. Refer to cable charts in Appendix B. The Master port is configured as either a DCE port or a DTE port by moving jumpers JP1: 1 through JP1: 7. JP1 is located inside the Smart Switch. Refer to Figures 2 & 3.
Table 2. DCE MASTER PORT CHART Signal Direction of DCE Master Port Pin # Signal Description 2 TD Transmit Data Input 3 RD Receive Data Output 4 RTS Request to Send Input 5 CTS Clear to Send Output 6* DSR Data Set Ready Output 7 SG Signal Ground <------> 8* CD Carrier Detect Output 20 DTR Data Term Ready Input 14** TD (B) Transmit + Output 15** TD (A) Transmit Output 16** RD (B) Receive + Input 17** RD (A) Receive Input * Pins 6 & 8 are tied together inside the 232XSSD4 and share the same output.
Table 3. DTE MASTER PORT CHART Pin # 2 3 4 5 Signal TD RD RTS CTS Description Transmit Data Receive Data Request to Send Clear to Send Signal Direction of DTE Master Port Output Input Output Input 6* DSR Data Set Ready Input 7 SG Signal Ground <------> 8* CD Carrier Detect Input 20 DTR Data Term Ready Output 14** TD (B) Transmit + Output 15** TD (A) Transmit Output 16** RD (B) Receive + Input 17** RD (A) Receive Input * Pins 6 & 8 are tied together inside the 232XSSD4 and share the same input.
Table 4. DTE PORTS A - H RS-232 Signal Direction of DTE Ports A Pin # Signal Description through H 2 TD Transmit Data Output 3 RD Receive Data Input 4 RTS Request to Send Output 5 CTS Clear to Send Input 6* DSR Data Set Ready Input 7 SG Signal Ground <------> 8* CD Carrier Detect Input 20 DTR Data Term Ready Output 14** TD(B) Transmit (+) Output 15** TD(A) Transmit (-) Output 16** RD(B) Receive (+) Input 17** RD(A) Receive (-) Input *Pins 6 & 8 are tied together inside the 232XSSD4 and share the same input.
Figure 5. Simplified RS-232 Schematic RS-422/485 Slave Port Option The RS-232 transmit and receive data signals on the Master port will be converted to balanced, full-duplex RS-422 or half-duplex RS-485 signals with this option. The 232XSSD4 comes standard with four RS-485 (2 or 4-wire) slave ports. Refer to Appendix B for cable charts. Table 5.
Figure 6. Simplified RS-422/485 Schematic When a port has this option, additional circuitry will be mounted to the main board. The standard 232XSSD4 comes with the RS-485 option on four ports (Port A-D). Use Figure 2 to locate its position. Refer to Table 5 for pin-out, signal name, and signal direction information. Also, refer to Figure 6 for a simplified schematic showing the relationship between the Master port and a port configured with the RS-422/485 option.
There are two components located in the port B circuit area on the main printed circuit board, a resistor (R75) and a capacitor (C4), that are part of the send data control circuit. These components are factory selected for 9600 baud, which allows the send data control to operate at 9600 baud or higher. With these two components the RS-485 driver will be disabled approximately 1 millisecond after the last character has been sent.
Another option available on the 232XSSD4 is the slave ports set up as RS-422 ports. This means that the driver and receiver will be enabled all the time. RS-422 allows point-to-point operation or up to 10 receive only units up to 4000 feet on two pair of lines. Port Expansion Bus The number of serial ports on the 232XSSD4 can easily be expanded to a maximum of sixty-eight ports. Fifteen Port Expander units (232PE) can be added to the 232XSSD4 by simply connecting the 232PE units to the Port Expansion Bus.
Example 1: To turn on port E of the 232XSSD4 (address zero) with ASCII STX (2 decimal) character set as the user defined character. Send to the Master Port: STX 0 E (2 48 69 decimal) Example 2: To turn on port B located at port expander (232PE) address ten with ASCII STX (2 decimal) character set as the user defined character. Send to the Master Port: STX A B (2 65 66 decimal) When you are done with a port you can either select a new one directly or turn off the selected port and then turn on the next one.
Four Character Command String The four-character command adds additional security to port selection. The only difference between the four-character command and the three-character command is the addition of the ASCII ESCape character in front of the three-character command. The first character is the ASCII ESC character (decimal 27). The second character is user-defined character. The third character is the desired port address. The fourth character is the ASCII upper case letter of the desired port.
If you were writing a program in GWBASIC to select port E of the 232XSSD4 (address zero) you would form a string like this: SW0E$ = CHR$(27) + CHR$(2) + "0" + "E" You could then send SW0E$ to select port E. Similar strings could be used for turning on the other ports. To turn off the ports the string might look like this: TOFF$ = CHR$(27) + CHR$(2) + CHR$(2) + CHR$(4) NOTE: There is no delay through the Smart Switch and the data is not buffered.
time the command control string is sent. Note also, that if your communication configuration is set for 7 data bits you cannot use the eighth position of SW2. For a list of the ASCII character codes and their decimal values refer to Appendix A. Smart Switch/Port Combiner Mode This mode allows the CTS lines of ports A - H of the 232XSSD4 to select the Master port. It also allows selection from the Master port via the command control string described in the Smart Switch Mode section.
Binary File Transfer A simple method of using the Smart Switch to transfer binary files without the concern of it accidentally disconnecting, is to set the file transfer at a baud rate different from the baud rate of the Smart Switch. When transferring files at a different baud rate, the Smart Switch will stay connected from the last command control string. Port Select Test The 232XSSD4 has a built-in port select test.
Chapter 2: SOFTWARE Introduction The Expandable Smart Switch Selector program for Windows allows the user to select ports in the windows environment. The SS program requires 2M of memory. The Expandable Smart Switch, Terminate and Stay Resident (XSSTSR) Program (IBM PC or Compatible), allows the user to change Smart Switch ports either through the command line or by hitting a sequence of keys at the same time, referred to as hot keys. The XSSTSR requires 1K of memory.
Description Port Address Baud Rate Data Bits Second Character Default Value COM 1 9600 8 Data Bits 2 = STX (CTRL B) The following files will be located on your hard drive: • SS.EXE - The executable file for the Smart Switch. • FILES.LST Contains a list and description of files installed on your hard drive. • READ.ME Contains corrections and additions to the printed users manual. • HISTORY.LST Contains a historic description of the product. • BBWSC16.DLL, BC500RTC.DLL, BDS501.DLL, OWL501.
Selecting Ports To select a port the user need only pick from the Menu-> Comport the comport to which the device is attached. The Smart Switch program supports comports 1 through 6. If the port exists but does not have a smart switch device attached, SS will not detect it. The SS software will only detect invalid/undefined comports. Parameters The Port Address is the address where the serial communications port is located. If this is unknown you can use the program PORTFIND.EXE which is located on the disk.
1) SETUP.EXE Method (preferred) If the software was installed on your hard drive follow these steps: • Type C: and press the ENTER key. • Type CD\XSS and press the ENTER key. Or if you are going to execute SETUP.EXE from the floppy drive follow these steps: • Place the “DOS” disk in drive A. • Type A: and press the ENTER key. To begin the XSSTSR program follow these steps: • Type SETUP and press the ENTER key.
Enter Hot Key Sequence ( 1 = 2 = 3 = <1|2|3|4|5|6|7|8|N> 4 = <1|2|3|4|5|6|7|8|N> 5 = 6 =<1|2|3|4|5|6|7|8|N>)[1]: At this point, a file called GO.BAT will be created. • Type GO and press the ENTER key. Once the GO.BAT file is created, every time you wish to begin the XSSTSR all that you need to do is type GO and press the ENTER key.
If the software was installed on your hard drive follow these steps: • Type C: and press the ENTER key. • Type CD\XSS and press the ENTER key. Or if you are going to execute XSSTSR.COM from the floppy drive follow these steps: • Place the “DOS” disk in drive A. • Type A: and press the ENTER key. To begin the XSSTSR program (the following will be used as an example): Port Address = 03F8 Parity = Odd Baud = 9600 User Defined Char.
If you are running from the floppy drive: • Place the “DOS” disk in drive A. • Type A: and press the ENTER key. • Type PORTFIND and press the ENTER key. The result will be similar to the following: PortFind V1.03 - © 1991 B&B Electronics - All Rights Reserved.
The Hot Key is a sequence of three keys that must be pressed simultaneously to switch from one Smart Switch Port to another. For example, the hot key sequence, states that the left shift, Alt, and either A, B, C, D, E, F, G, H, or N must be pressed at the same time to select the corresponding Smart Switch Port. N turns off all Smart Switch ports. Then press the Address Character where the desired port is located.
Hot Key Method This method enables the user to select any Smart Switch port by pressing a pre-defined sequence of keys at the same time after the XSSTSR is installed (refer to Program Installation section). Example: If Hot Key sequence was selected, to change ports you would press at the same time: Left Shift - Alt - A...… to select port A Left Shift - Alt - B ..... to select port B Left Shift - Alt - C ..... to select port C Left Shift - Alt - D .....
Example 1: To turn on port "C" of the 232XSSD4 you would type XSSTSR XC0 at the command line and press the ENTER key. Example 2: To turn on port "A" of a 232PE set to address 9 you would type XSSTSR XA9 at the command line and press the ENTER key. Before a smart switch port is selected, a check is made to determine if the communication port of the computer is busy transmitting.
APPENDIX A: ACSII Character Codes DECIMAL to HEX to ASCII CONVERSION TABLE DEC HEX ASCII KEY DEC HEX ASCII DEC HEX ASCII DEC HEX ASCII 0 NUL ctrl @ 32 20 SP 64 40 @ 96 60 ` 1 1 SOH ctrl A 33 21 ! 65 41 A 97 61 a 2 2 STX ctrl B 34 22 ] 66 42 B 98 62 b 3 3 ETX ctrl C 35 23 # 67 43 C 99 63 c 4 4 EOT ctrl D 36 24 $ 68 44 D 100 64 d 5 5 ENQ ctrl E 37 25 % 69 45 E 101 65 e 6 6 ACK ctrl F 38 26 & 70 46 F 102 66 f 7 7 BEL
APPENDIX B: Cable Charts These charts indicate some common cable wiring based on the DCE/DTE configuration of the Master Port. Refer to the Port Configuration section of this manual for information on Master Port configurations. Chart 1. IBM PC DB25 Connector to Master Port Master port configured as a DCE port.
Chart 3. Modem DB25 Connector to Master Port Master port configured as a DTE port. Async Modem 232XSSD4 Serial Port Signal Master Port (DTE) DB25 Connector Direction DB25 Connector 2 <----------2 3 -----------> 3 4 <----------4 5 -----------> 5 7 <---------> 7 8 -----------> 8* 20 <----------20 * Pins 6 & 8 are tied together inside the 232XSSD4 and share the same input. NOTE: When using chart 3 above and connecting a DTE device to ports A - H of the smart switch, refer to Charts 7 and 8. Chart 4.
Chart 5. IBM PC DB25 Connector to Ports A - H (DTE) Master port configured as a DCE port. IBM PC 232XSSD4 Serial Port Signal Ports A - H (DTE) DB25 Connector Direction DB25 Connector 2 -----------> 3 3 <----------2 4 -----------> 5 5 <---------4 6 <---------6* 7 <---------> 7 8 <----------8* 20 -----------> 20 * Pins are tied together inside the 232XSSD4 and share the same input. Chart 6. IBM PC DB9 Connector to Ports A - H (DTE) Master port configured as a DCE port.
Chart 7. IBM PC DB25 Connector to Ports A - H (DTE) Master port configured as a DTE port with a modem connected (see Chart 3). IBM PC 232XSSD4 Serial Port Signal Ports A - H (DTE) DB25 Connector Direction DB25 Connector 2 -----------> 3 3 <----------2 4 -----------> 5 5 <----------4 6 <---- ----> 6* 7 <---------> 7 8 <----------20 20 -----------> 6* * Pins 6 & 8 are tied together inside the 232XSSD4 and share the same input. Chart 8.
Chart 9. RS-422/485 4-Wire Device to Port (A - H) Configured as an RS-422 /485 Port. RS-422/485 232XSSD4 4-Wire Signal Ports A - H Device Direction DB25 Connector TD (A)* -----------> 17 - RD (A) TD (B)* -----------> 16 - RD (B) Signal Ground <----------> 7 - SG RD (A)* <----------15 - TD (A) RD (B)* <----------14 - TD (B) * If the device being connected uses "+" and "-" in place of "B" and "A", the "+" replaces the "B" and the "-" replaces the "A".
FEDERAL COMMUNICATIONS COMMISSION RADIO FREQUENCY INTERFACE STATEMENT Class A Equipment This equipment has been tested and found to comply with the limits for Class A digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment.