Introduction
51
Models 2211 & 2232 Getting Started Guide
6 • Serial port configuration
Introduction
To attach the serial device to the 2211 serial port, its serial port operation should match exactly to that of the
serial device. Serial port configuration parameters are summarized in
table 9
.
To configure serial port parameters, use
set
command as follows:
set serial baudrate data_bits parity stop_bits flow_control dtr_option dsr_option
interchar_timeout(ms)
where:
baudrate: 1200, 2400, 4800, 9600, 19200, 38400, 57600, or 115200
data_bits: 7=7-bits / 8=8-bits
parity: n=none / e=even / o=odd
stop_bits: 1=1-bit / 2=2-bits
flow_control: n=none / h=hardware
dtr_option: h=always high / l=always low / s=show tcp connection
dsr_option: n=none / a=accept only by high / o=open,close TCP connection
interchar_timeout: inter-character timeout value in milliseconds
The factory default settings of baud rate, data bits, parity and stop bits are 9600, 8 data bits, No-parity and 1 stop
bit respectively. Among the serial configuration, there are three serial modes the 2211 does not support. The
2211 does not support 7 data bits, No parity, 1 stop bit configuration. In this case, the 2211 will operate as 7
data bits, No parity, 2 stop bit mode. In case the 2211 is configured as 8 data bits, Even(or Odd) parity, 2 stop
bits mode, the 2211 will operate as 8 data bits, Even (or Odd) parity, 1 stop bit mode.
The factory default setting of the flow control is None. Only hardware flow control using RTS/CTS is sup-
ported by the 2211. Hardware flow control method controls data communication flow by sending signals back
and forth between two connected devices.
The purpose of the DTR/DSR pin is to emulate modem signal control or to control TCP connection state by
using serial port signal. The DTR is a write-only output signal, whereas the DSR is a read-only input signal in
the 2211 side.
The DTR option can be set to one of three types: always high, always low or show TCP connection. If the DTR
behavior is set to show TCP connection, the state of the DTR pin will be maintained high if the TCP connec-
tion is established.
Table 9. Serial Port Configuration parameters
Parameter
Values
Baud rate
1200, 2400, 4800, 9600, 19200, 38400, 57600, or 115200
Data bits
7 bits or 8 bits
Parity
None, Even or Odd
Stop bits
1 bit or 2 bits
Flow control
None, Hardware (RTS/CTS)
DTR option
Always HIGH, Always LOW, or Show TCP connection
DSR option
None, Accept TCP connection only by HIGH, or
Open/Close TCP connection
Inter-character timeout
Inter-character timeout value in milliseconds