Black Box SC121A, SC120A-R2 manual LAN/Serial-Port Commands

Models: SC121A SC120A-R2

1 53
Download 53 pages 19.06 Kb
Page 28
Image 28

CHAPTER 5: Configuration and Operation

5.6 LAN/Serial-Port Commands

You can use simple ASCII-character commands to control the SCSI Switch through either its LAN port (by opening a socket connection to port 3001) or one of its RS-232 serial ports. For serial control, set your computer’s serial port this way:

a. Baud rate: 9600 (the switch’s factory default) or 19,200 bps.

b. Data format: 8 data bits, 1 stop bit, no parity.

c. Transmission mode: Half-duplex.

So, for example, the DOS command to set a PC for serial communication with the switch would be MODE COMx 9600,N,8,1. Whether you’re using a LAN or serial connection, commands have the same syntax (format):

a. Start sequence: ASCII <cr> (carriage return) followed by two slashes (“//”)

b. Switch box number (you need this even if you have only one SCSI Switch):

Box 1

- 7C hex (ASCII “”)

Box 3

- 7E hex(ASCII “~”)

Box 2

- 7D hex (ASCII “}”)

Box 4

- 7F hex (ASCII <del>)

c. Port selection:

Port A to port 1: “A1”, port A to port 2: “A2”;

Port B to port 1: “B1”, port B to port 2: “B2”

NOTE

1.More than one port connection can be selected at the same time. For example, to select A1B2, transmit “A1B2.”

2.“0” clears (disconnects) all numbered ports. For example, “A0” clears any numbered port connected to port A.

d.Connection or disconnection type:

ASCII “K” connects the specified ports and strictly adheres to SCSI rules.

NOTE

With “K,” if port A or B is not specified, no action will be taken on that port. If a connection is selected (for example, “A1”), that connection will be made, and the other numbered port will be disconnected from that lettered port. For example, entering “A2K” when port A is connected to port 1 will disconnect port A from port 1 and connect it to port 2.

ASCII “N” connects the specified ports without breaking existing connections. ASCII “F” disconnects the specified ports.

e. End sequence: ASCII <cr>

So, for example, the complete command to connect the first SCSI Switch’s port A to port 2 and its port B to port 1 would look like this: <cr>//A2B1K<cr>

27

Page 28
Image 28
Black Box SC121A, SC120A-R2 manual LAN/Serial-Port Commands