
7
RS232 Control
RS232 (optional) enables the ETH-4X1-RS-G to be remotely controlled via RS232. To control the ETH-4X1-RS-G via RS232 the
user has three options:
•write a program that runs on a PC using the Command Protocol (below)
•use the NTI Switch Control Program (page 8) provided on the CD
•use the SerTest program (page 8) provided on the CD
Remote Connection
The RS232 Interface is designed to control the switch via serial (RS232) connection from any host computer or other controller
with an RS232 communications port. To use the RS232 port , connect a crossed female serial cable from a CPU serial port to
the DB9 pin male RS232 port on the ETH-4X1-RS-G. Connections are as follows:
RS232 Connector (DB9 Male)
Pins at
ETH-4X1-RS-G Signal Pins at
CPU
2 RxD 3
3 TxD 2
5 GND 5
RS232 program setup parameters:
•9600 baud
•8 bit data
•1 stop bit
•no parity
•no flow control
Command Protocol
CPU controller commands supported by the unit are defined below. Commands may be sent using any RS232 communication
program (i.e. Windows HyperTerminal). All commands should be terminated with a <CR> (carriage return). When a command is
sent, the entire string is echoed back along with a response from the addressed unit as shown in the command definitions table
below. All characters in the command string should be upper case, and all numbers below 10 should have a leading 0 (ex: 1 =
01). As command strings are sent, the inner character delay cannot exceed 500 milliseconds.
The following commands are supported.
LEGEND ALL NUMBERS MUST BE TWO DIGITS
SW: SWITCH UNIT ADDRESS- this is 01 and cannot be changed)
OP: OUTPUT (COMMON) PORT -this is 01 and cannot be changed
IP: INPUT NETWORK PORT (01-MAXINPUTS) (MAXINPUTS = 02 or 04)
<CR>: CARRIAGE RETURN (Hex 0x0D)
Command String Good Response Description
CS SW,IP,OP *<CR> Connect COMMON Port To Input/SELECTABLE Port
RO SW,OP *<CR>IP<CR> Read Connection For Output/COMMON Port
RU SW *<CR>IP,OP<CR> Read Unit Size
RV SW,00 *<CR>string\0<CR> Read NTI Version String (Short Version)
RV SW,01 *<CR>string<CR> Read NTI Version String (Long Version)
If the first field is not a known command (as listed above) or SW field is different from the serial address programmed in the switch
memory (01), the command will be ignored. If the SW field corresponds to the unit address, but the syntax is wrong after this field,
the switch will answer with a bad response ?<CR>.
1
Mating Face of DB9 Male
2345
6789
"RS232" Connector