Mini Smart Switch CE Model 232MSS2 Documentation Number 232MSS2-0812 pn3662-rev007 This product designed and manufactured of domestic and imported parts by International Headquarters B&B Electronics Mfg. Co. Inc. 707 Dayton Road -- P.O. Box 1040 -- Ottawa, IL 61350 USA Phone (815) 433-5100 -- General Fax (815) 433-5105 Home Page: www.bb-elec.com Sales e-mail: orders@bb-elec.com -- Fax (815) 433-5109 Technical Support e-mail: support@bb.elec.
B&B Electronics RESERVED. 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 information storage and retrieval system without written consent. Information in this manual is subject to change without notice, and does not represent a commitment on the part of B&B Electronics.
TABLE OF CONTENTS Chapter 1: INTRODUCTION ................................................ 1 Checklist ................................................................................ 2 Chapter 2: SETUP ................................................................ 3 Port Configuration.................................................................. 4 Serial Data Configuration ...................................................... 5 Smart Switch Operation..................................................
ii Table of Contents Documentation Number 232MSS2-0812Manual B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 B&B Electronics Ltd – Westlink Commercial Park – Oranmore, Galway, Ireland – Ph +353 91-792444 – Fax +353 91-792445
Chapter 1: INTRODUCTION The RS-232 Four Port Mini Smart Switch/Port Combiner, Model 232MSS2, allows one RS-232 host device to connect to as many as four RS-232 devices. The switch can be controlled in two different ways. The first way is referred to as smart switch mode. In this mode, the switch is controlled by sending a programmable preamble code to the "Master" port of the 232MSS2. The other way the switch can be controlled is referred to as port combiner mode.
Checklist Examine the shipping carton and contents for physical damage. If damage is found, file a claim with the shipper immediately. The following equipment should be in the shipping carton: 1. RS-232 Mini Smart Switch 2. Instruction manual 3. Software media If any of the items above are not in the shipping carton contact the shipper immediately.
Chapter 2: SETUP The 232MSS2 is set up using an eight-position dipswitch. This dipswitch is used to set the communication format, port configuration, smart switch/port combiner mode and to enable/disable the enhanced features. To change the settings on the switch, remove the power from the unit, and remove the screws (4) from the bottom of the 232MSS2. The dipswitch is located on the top of the PC board (side with LEDs) and is labeled “SW1.
Port Configuration In order to determine the proper port configuration of the 232MSS2, it is necessary to have a basic understanding of the terms DCE and DTE. RS-232 was designed, using DB-25 connectors, for connecting a DTE (Data Terminal Equipment) device to a DCE (Data Communication Equipment) device. Each device will have inputs on pins that correspond to outputs on the same pins of the other device.
Table 3. DTE MASTER PORT CHART Master Port A,B,C & D Ports (DTE) Signal (DCE) Pin# Direction Description Pin# Direction 2 Output Transmit Data (TD) 3 Input 3 Input Receive Data (RD) 2 Output 4 Output Request to Send (RTS) 7 Input 5 Input Clear to Send (CTS) 8 Output 7 <-------> Signal Ground (SG) 5 <-----> The 232MSS2 supports the following RS-232 signals: TD, RD, SG, RTS & CTS. NOTE: Handshake lines DSR and DTR are tied together on each connector and are not passed through to the master port.
ASCII character STX (decimal 2). The third character should be the ASCII upper case letters "A", "B", "C" or "D" (decimal 65, 66, 67, or 68 respectively) to select those ports. To turn off the selected port the third character should be the ASCII EOT character (decimal 4).
Programming the Second Character The second character comes programmed as the ASCII STX character (decimal 2). You can change this to any 8-bit character you wish by reprogramming dipswitch “SW2”. “SW2” is an eight-position switch with each position equal to a certain weight. Refer to “Setup” for instructions on removing the cover to access “SW2”. Table 4 shows the weight chart for “SW2”. Table 4.
Smart Switch/Port Combiner Mode This mode allow Ports A-D to select the master port using a handshake line. It also allows selection from the master port via the preamble code described in the Smart Switch Only Mode section. Position 7 of “SW1” must be ON to be in port combiner mode. When a handshake line goes high on any of the four ports, it will establish a connection from that port to the master port. This works on firstcome-first-serve basis.
A typical application would be to have RTS and CTS tied together on the master port. When RTS (assuming DTE slave port) on port A is asserted, CTS on port A will be asserted when a connection is established. If a port is not connected to the master port, then CTS on that port will remain low. Therefore, a port can monitor the handshake line to determine if a connection has been established. Enhanced Mode -- Timer Features The 232MSS2 has an enhanced mode, which offers special timer features.
Table 3 - Timer Values Data Byte Value 0 1 2 3 4 5 6 7 8 9 timer disabled 10ms 25ms 100ms 500ms 1s 5s 30 s 1 min. 5 min. The Set Timer Mode command requires the third byte to be an ASCII “M”. If the data byte (fourth byte) is an ASCII “0”, zero (default), the timer will be setup as an inactivity timer. For example, sending the following string to the 232MSS2 will set up the timer as an inactivity timer (assuming programmable character is the factory default of 2).
The “M” tells the 232MSS2 it is the set timer mode command and the “1” indicates to set up up the timer to ignore switching commands. When the timer is configured in this mode, the 232MSS2 will not accept any switching commands (“A”, ”B”, ”C”, ”D”, or “EOT”) for the specified timer value. After the timer has expired, the slave port that is connected to the master port will be disconnected. This feature is useful to prevent inadvertent switching during binary/graphic type file transfers.
12 Documentation Number 232MSS2-0812 Manual B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 B&B Electronics Ltd – Westlink Commercial Park – Oranmore, Galway, Ireland – Ph +353 91-792444 – Fax +353 91-792445
Chapter 3: SOFTWARE Introduction The 232MSS2 comes with two application programs that can be used to switch between ports. Either can be used independently as the final application or for testing the functionality of the hardware. The SSwitch program is a Windows program that allows you to switch ports with buttons on a Windows interface, or from the DOS command line. It will run on Windows 98, Windows NT 4.0 with service pack 3 installed or Vista. When the software is installed, an example file, SSWVb6.
To Uninstall SSwitch.exe From START/ SETTINGS/ CONTROL PANEL Select Add/ Remove Programs Select SSwitch from the list of programs Click on the Add/Remove button DOS SSTSR Installation To Install the SSTSR Program (DOS) Insert the Smart Switch software media. At the DOS prompt Type a:\INSTALL.exe and press the ENTER key. The following files will be located on your hard drive: 1)SSTSR.EXE - The executable file for the Smart Switch. 2)SETUP.EXE - Configuration program for the SSTSR.
Enter Port Address [02F8]: Enter Baud Rate ( 1 = 150 2 = 300 3 = 600 4 = 1200 5 = 2400 6 = 4800 7 = 9600 8 = 19200) [7]: Enter Parity (0 = No 1 = Odd 2 = Even) [0]: Enter Number of Data Bits ( 7 = Seven Data Bits 8 = Eight Data Bits) [8]: Enter Smart Switch Second Char (Decimal Value) [2]: Enter Hot Key Sequence (1 = 2 = 3 = <1|2|3|4|N> 4 = <1|2|3|4|N> 5 = 6 =<1|2|3|4|N>)[1]: At this po
If the software was installed in the default directory: At the DOS prompt Type C: and press the ENTER key. Type CD\232MSS2 and press the ENTER key. To begin the SSTSR program (the following will be used as an example): Port Address = 03F8 Parity = Odd Baud = 9600 User Defined Char. = 8 Data Bits = 8 Hot Key Sequence = 4 Type SSTSR A03F8 B7 D8 P1 U8 H6 and press the ENTER key.
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, or N must be pressed at the same time to select the corresponding Smart Switch Port. N turns off all Smart Switch ports.
Hot Key Method This method enables the user to select any Smart Switch port by pressing a predefined sequence of keys at the same time after the SSTSR is installed (refer to Program Installation). 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 .....
Command Line Method This method enables the user to select any Smart Switch port through the command line. To specify a Smart Switch port through the command line, you would type SSTSR followed by the X command symbol and the letter of the port. Example: To change to Smart Switch port '"C" you would type SSTSR XC at the Dos prompt and press the ENTER key. Before a Smart Switch port is changed, a check is made to determine if the port is busy transmitting.
20 Documentation Number 232MSS2-0812 Manual B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 B&B Electronics Ltd – Westlink Commercial Park – Oranmore, Galway, Ireland – Ph +353 91-792444 – Fax +353 91-792445
APPENDIX A ASCII Character Codes Documentation Number 232MSS2-0812 Manual Appendix A B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 B&B Electronics Ltd – Westlink Commercial Park – Oranmore, Galway, Ireland – Ph +353 91-792444 – Fax +353 91-792445 A-1
DECIMAL to HEX to ASCII CONVERSION TABLE DEC HEX ASCII KEY DEC HEX ASCII DEC HEX ASCII DEC HEX ASCII 0 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 ctrl G 39 27 ' 71 47 G 10
APPENDIX B Cable Charts Documentation Number 232MSS2-0812 Manual Appendix B B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 B&B Electronics Ltd – Westlink Commercial Park – Oranmore, Galway, Ireland – Ph +353 91-792444 – Fax +353 91-792445 B-1
All charts will indicate if the Master Port of the 232MSS2 should be configured as a DCE port or a DTE port. Refer to the Port Configuration section of the manual for information on Master Port configurations. Chart 1.
Chart 3. Modem DB25 Connector to Master Port Async Modem 232MSS2 Serial Port Signal Master Port (DTE) DB25 Connector Direction DB25 Connector 2 <----------2 3 -----------> 3 4 <----------6* 5 -----------> 20* 7 <---------> 7 8 -----------> 5 20 <----------4 * Pins are tied together inside the 232MSS2, they are not connected to ports A, B, C, or D. NOTE: When connecting a DTE device to ports A, B, C, or D of the smart switch, refer to Charts 8 and 9. Chart 4.
Chart 5. IBM PC DB25 Connector to Ports A - D (DCE) Master port configured as a DTE port. IBM PC 232MSS2 Serial Port Signal Ports A - D (DCE) DB25 Connector Direction DB9 Connector 2 -----------> 3 3 <----------2 4 -----------> 7 5 <----------8 6 <----------6* 7 <---------> 5 8 <----------4* 20 -----------> 4* * Pins are tied together inside the 232MSS2, they are not connected to the master port. Chart 6. IBM PC DB9 Connector to Ports A - D (DTE) Master port configured as a DCE port.
Chart 7. IBM PC DB9 Connector to Ports A - D (DCE) Master port configured as a DTE port. IBM PC 232MSS2 Serial Port Signal Ports A - D (DCE) DB9 Connector Direction DB9 Connector 1 <----------4* 2 <----------2 3 -----------> 3 4 -----------> 4* 5 <---------> 5 6 <----------6* 7 -----------> 7 8 <----------8 * Pins are tied together inside the 232MSS2, they are not connected to the master port. Chart 8.
Chart 9. IBM PC DB9 Connector to Ports A - D (DCE) Master port configured as a DTE port with a modem connected (see Chart 3). IBM PC 232MSS2 Serial Port Signal Ports A - D (DCE) DB9 Connector Direction DB9 Connector 3 -----------> 3 2 <----------2 7 -----------> 6* 8 <----------4* 6 <----------4* 5 <---------> 5 1 <----------8 4 -----------> 7 * Pins are tied together inside the 232MSS2, they are not connected to the master port.
APPENDIX C: Declaration of Conformity DECLARATION OF CONFORMITY Manufacturer’s Name: B&B Electronics Manufacturing Company Manufacturer’s Address: P.O. Box 1040 707 Dayton Road Ottawa, IL 61350 USA Model Numbers: 232MSS2 Description: Four-Port Mini Smart Switch/Port Combiner Type: Light industrial ITE equipment Application of Council Directive: 89/336/EEC Standards: EN 55022 EN 61000-6-1 EN 61000 (-4-2, -4-3, -4-4, -4-5, -4-6, -4-8, -4-11) William H.
C-2 Appendix C Documentation Number 232MSS2-0812Manual B&B Electronics Mfg Co Inc – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 B&B Electronics Ltd – Westlink Commercial Park – Oranmore, Galway, Ireland – Ph +353 91-792444 – Fax +353 91-792445