Advantech B+B SmartWorx 232BSS4 Manual

Advantech B+B SmartWorx 232BSS4 Manual

Buffered smart switch

Advertisement

Quick Links

Buffered Smart Switch
Model 232BSS4
Documentation Number: 232BSS4_2916
This product designed and manufactured in Ottawa, Illinois USA
of domestic and imported parts by
707 Dayton Road -- P.O. Box 1040 -- Ottawa, IL 61350 USA
Phone (815) 433-5100 -- General Fax (815) 433-5105
Phone (815) 433-5100 -- General Fax (815) 433-5105
Website:
www.advantech-bb.com
Sales e-mail:
orders@advantech-bb.com
-- Fax (815) 433-5109
Technical Support e-mail:
support@advantech-bb.com
-- Fax (815) 433-5104
European Headquarters
Advantech B+B SmartWorx
Westlink Commercial Park -- Oranmore, Co. Galway, Ireland
Phone +353 91-792444 -- Fax +353 91-792445
Advantech B+B SmartWorx -- July 2007
Manual Documentation Number: 232BSS4-2916

Advertisement

Table of Contents
loading

Summary of Contents for Advantech B+B SmartWorx 232BSS4

  • Page 1 -- Fax (815) 433-5109 Technical Support e-mail: support@advantech-bb.com -- Fax (815) 433-5104 European Headquarters Advantech B+B SmartWorx Westlink Commercial Park -- Oranmore, Co. Galway, Ireland Phone +353 91-792444 -- Fax +353 91-792445 Advantech B+B SmartWorx -- July 2007 Manual Documentation Number: 232BSS4-2916...
  • Page 2 This document contains information that is proprietary and confidential to Advantech B+B SmartWorx. The methods described herein are for the exclusive use of Advantech B+B SmartWorx authorized personnel. Any unauthorized use or dissemination of the information contained in the document is strictly forbidden.
  • Page 3: Table Of Contents

    Table of Contents CHAPTER 1 – INTRODUCTION ............1 ..................2 PECIFICATIONS ................2 EFAULT ARAMETERS ....................3 HECKLIST CHAPTER 2: OPERATION ..............5 ..............5 YMBOLS AND ONVENTIONS LED I ..................5 NDICATORS ................6 ONFIGURATIONS ..............7 MART WITCH .............
  • Page 4 Documentation Number 232BSS4-2916m...
  • Page 5: Chapter 1 - Introduction

    Chapter 1 – Introduction The 232BSS4 provides communications to four devices from one serial port. Each port uses a dedicated UART and includes an 8K byte transmit buffer and an 8K byte receive buffer (16K bytes total). Each port can be independently configured for data rate, data format, and protocol.
  • Page 6: Specifications

    Specifications Model: 232BSS4 Interface: RS-232 asynchronous Data Format: 7 or 8 data bits, even, odd, or no parity (Master does not support 7 data bits with no parity) 1 stop bit (fixed) Data Rate: 1200 to 115.2 kbps Flow Control: Hardware(RTS/CTS) or None Power Requirements: +10 to +15 VDC @ 60 mA max.
  • Page 7: Checklist

    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 Buffered Smart Switch model 232BSS4 2. Instruction Manual 3.
  • Page 8 Documentation Number 232BSS4-2916m...
  • Page 9: Chapter 2: Operation

    Chapter 2: OPERATION Symbols and Conventions Throughout this chapter of the manual, the following symbols and conventions will be used to clarify what type of data we are addressing. • Items enclosed in {brackets} will denote one byte. • A character in “quotes” will normally denote a printable ASCII character.
  • Page 10: Port Configurations

    Port Configurations The 232BSS4 provides a dedicated UART to all five ports. This allows any port to be individually configured for baud rate, number of data bits, parity, and hardware (RTS/CTS) handshaking. Configuration of all the ports is done through the setup software. Baud Rate: Each port is configurable for the following baud rates: 1200...
  • Page 11: Smart Switch Only Mode

    Smart Switch Only Mode Description: Smart Switch Only mode is used when the host device connected to the Master port initiates all communications with the Slave devices. To use the 232BSS4 as a Smart Switch Only, Auto Select is left unchecked in the setup software.
  • Page 12 Command Summary: Three Character Command Format: Char1 Char2 Command Char Control Char Control Char is only needed for Tx Only, Clear Buffer, and Ignore Commands Four Character Command Format: Char1 Char2 Char3 Command Char Control Char Control Char is only needed for Tx Only, Clear Buffer, and Ignore Commands Table 2.1 - 232BSS4 Command Summary Function...
  • Page 13 Commands: Select Port A to transmit and receive – “A” Select Port B to transmit and receive – “B” Select Port C to transmit and receive – “C” Select Port D to transmit and receive – “D” The Select Port commands turn on the selected port for both transmit and receive operations.
  • Page 14 A summary of the control characters for each combination of ports is given in Table 2.2. For instance, to broadcast to ports B & C, send: {Char1}{Char2}{Char3}”S”{Decimal 6} (B = 2, C = 4, 2 + 4 = 6) VB Example: BroadcastBC$ = CHR$(27) &...
  • Page 15 Table 2.2: Send Only and Clear Buffer Control Characters Ports to Transmit or Binary Value Decimal ASCII Clear Receive Buffer (x = Don’t Care) Value Character None xxxx0000 0 or 64 “@” A Only xxxx0001 1 or 65 “A” B Only xxxx0010 2 or 66 “B”...
  • Page 16 For instance, to ignore switching commands for 30 Seconds, send: {Char1}{Char2}{Char3}”T””7” VB Example: Ignore30s$ = CHR$(27) & CHR$(2) & “T” & “7” Table 2.3 - Timer Values Control Byte Control Byte Timer Setting (ASCII) (Decimal) “0” Timer disabled “1” 10ms “2”...
  • Page 17 Example: For a binary transfer from the Master to the device on Port A that will take less than one second to complete • Send Select Port A Command: {Char1}{Char2}{Char3}”A” • Send Ignore Commands Command: {Char1}{Char2}{Char3}”T””5” • Send the Binary File •...
  • Page 18: Auto Select/Smart Switch Mode

    Auto Select/Smart Switch Mode Description Auto Select mode allows the Slave devices to initiate communications with the device connected to the Master port. When Auto Select mode is enabled through the setup software, the 232BSS4 passes data automatically from the Slaves to the Master. Each Slave port is buffered until the Master is available, then sent in turn.
  • Page 19 When the specified Port Time has elapsed, the 232BSS4 checks in sequence for other Slave ports with buffered data and switches to them. If no other Slave ports need access to the Master, the current Slave port will again be connected until another Port Time has elapsed. Inactivity Time: The Inactivity Timer tracks how long a Slave port has been idle.
  • Page 20: Using The 232Bss4 As A Buffered Splitter/Combiner

    Using the 232BSS4 as a Buffered Splitter/Combiner The Auto Select and Initial Connection features of the 232BSS4 can be used to effectively create a data splitter. Data from the Master device can be shared with multiple Slave devices. Any data coming from the Slaves is buffered so that no data is lost.
  • Page 21: Back To Back Operation (Mux/Demux)

    Back to Back Operation (mux/demux) Printer Measurement 78.6 Direct Cable Connection 78.6 Scale Measurement Modem Modem 78.6 Printer 78.6 Scale RF Modem RF Modem Figure 2.2. Back to Back Operation Two 232BSS4s can be connected together through their Master ports to provide a simple form of multiplexer/demultiplexer.
  • Page 22: Cascading Multiple Switches

    Cascading Multiple Switches If you have more than four devices that are sending data, more than one 232BSS4 can be cascaded, allowing more ports to be added. The 232BSS4 buffers data from all ports at once, making it well suited for devices that will send a fixed amount of data at sporadic intervals, such as measurement instruments, security access card readers, barcode scanners, or time clocks.
  • Page 23 Figure 2.3 shows a typical setup, with 16 devices sending information at random times to the PC. The switches at Level 2 receive the data and send it on to the Level 1 switch. The Level 1 switch buffers the data and sends it to the PC.
  • Page 24 Slave Devices that Require Polling: This configuration will also work with systems where the devices have to be polled for information. With the setup of Figure 2.3, the switches can be configured so that you still only have to send one set of switching characters. To do this, set the switches up in the following way: •...
  • Page 25: Chapter 3: Port Connections

    Chapter 3: PORT CONNECTIONS DTE/DCE Explanation In order to determine the proper port connections to the 232BSS4, it is necessary to have a basic understanding of the terms DTE and DCE. RS- 232 was designed, using DB-25 connectors, for connecting a DTE (Data Terminal Equipment) device to a DCE (Data Communication Equipment) device.
  • Page 26 Master Port Connections: The Master Port of the 232BSS4 is a 25 pin female D-sub connector configured as a DCE. This provides direct connection to an IBM PC compatible or other DTE device. When connecting the Master port to a modem, the Master port of another 232BSS4, or other device configured as a DCE, a null modem adapter such as B&B’s model 232DTE is needed.
  • Page 27: Chapter 4: Setup Software

    Chapter 4: SETUP SOFTWARE Introduction The 232BSS4 comes with simple setup software for configuring the switch. The software can be run on any PC compatible computer running Microsoft Windows 95, 98, NT, 2000, XP or Vista operating system. Once the switch is configured, all parameters are saved in non-volatile memory so the switch can be powered down and used anywhere without the loss of configuration data.
  • Page 28: Software Installation

    Software Installation The setup software for the 232BSS4 must be installed on your hard drive before it can be run. All directions assume the CDROM drive is assigned to drive D. If your drive is assigned another drive name, replace that name for D in the instructions.
  • Page 29: Setup Tutorial

    Setup Tutorial Step 1: Start the software by double clicking the Smart Switch setup icon on the desktop. Step 2: Select the serial (COM) port that will be used to configure the 232BSS4 or Check the box to create a configuration file without the 232BSS4 connected.
  • Page 30 between 0 and 65000 (65 seconds). See chapter 2 for a full description of these Timeout values. Initial Connections: When selected, the Initial Connections button provides a selection of ports to be connected when the unit is powered up. When the switch is set for Smart Switch Only mode (no Auto Select), the Master to Slave communications (individual or broadcast) can be initialized to any or all of the four slave ports.
  • Page 31 Configure Switch Button: This button will save all changes to the connected switch. NOTE: Once changes are saved to the switch they cannot be reset automatically. Be sure to review all changes before saving using the View Module Configuration button. Run Self Test: The 232BSS4 is programmed with a Self Test mode.
  • Page 32 #2 tab is selected. The user should not have to reload the configuration except when the parameters need to be reset to those already saved in the switch. The load configuration button will load the configuration from the connected switch and assume these apply to the selected Unit. View Module Configuration: Each unit’s configuration can be reviewed on one screen by selecting the appropriate tab and clicking the View Module Configuration...
  • Page 33 Copying Parameters Between Switches: The 232BSS4 setup software can save configuration data to a file for copying of parameters. Any unit’s setup can be copied by first reading the data from one switch, then saving to another. Step 1: Run the setup software. Step 2: Select serial (COM) port to be used for programming.
  • Page 34 Documentation Number 232BSS4 0812 Manual...
  • Page 35: Appendix A: Ascii Character Codes

    Appendix A: ASCII Character Codes DECIMAL to HEX to ASCII CONVERSION TABLE DEC HEX ASCII KEY DEC HEX ASCII DEC HEX ASCII DEC HEX ASCII ctrl @ ctrl A ctrl B “ ctrl C ctrl D ctrl E ctrl F &...
  • Page 36 Appendix A Documentation Number 232BSS4 0812Manual...
  • Page 37: Appendix B: Cable Charts

    Appendix B: Cable Charts All charts give full pin outs. Only pins 2 & 3 are required for basic operation. Handshaking pins are needed for hardware (RTS/CTS) handshaking or if DTR is to be used to signal the Master port to accept commands.
  • Page 38 -----------> (TD) -----------> (DTR) * <---------> (GND) <----------- (DSR) * -----------> (RTS) <----------- (CTS) * - Pins 6, 8, & 20 looped back internally on the 232BSS4 Appendix B: Cable Charts Documentation Number 232BSS4 2916 Manual...
  • Page 39: Chart B.3. Dce (Modem) Db25 Connector To Master Port

    Chart B.3. DCE (Modem) DB25 Connector to Master Port DCE (Modem) 232BSS4 Serial Port Signal Master Port (DCE) DB25 Connector Direction DB25 Connector <----------- (RD) -----------> (TD) <----------- (CTS) -----------> (RTS) -----------> (DTR) * <---------> (GND) <----------- (DSR) * • - Pins 6, 8, & 20 looped back internally on the 232BSS4 Chart B.4.
  • Page 40: Chart B.5. Portsa - D (Dte) To Dte (Pc) Db25 Connector

    • - Pins 6, 8, & 20 looped back internally on the 232BSS4 Slave Port Connections: Chart B.5. Ports A - D (DTE) to DTE (PC) DB25 Connector 232BSS4 DTE (PC) Ports A - D (DTE) Signal Serial Port DB9 Connector Direction DB25 Connector 1 (DCD) *...
  • Page 41: Chart B.8. Portsa - D (Dte) To Dce (Modem ) Db9 Connector

    2 (RD) <---------- 3 (TD) ----------> 4 (DTR) * ----------> 5 (GND) <--------> 6 (DSR) * <---------- 7 (RTS) ----------> 8 (CTS) <---------- • - Pins 1, 4, & 6 looped back internally on the 232BSS4 Chart B.8. Ports A - D (DTE) to DCE (Modem) DB9 Connector 232BSS4 DCE (Modem) Ports A - D (DTE)
  • Page 42 Appendix B: Cable Charts Documentation Number 232BSS4 2916 Manual...
  • Page 43: Appendix C: Block Diagram

    Appendix C: Block Diagram 232BSS4 Block Diagram Documentation Number 232BSS4 0812 Manual Appendix C...
  • Page 44 Appendix C Documentation Number 232BSS4 0812 Manual...
  • Page 45 Manual Documentation Number: XXXxxx-0812...

Table of Contents