TCP Server Mode Operations
43
Models 2211 & 2232 Getting Started Guide
5 • Host Mode configuration
Figure 6
shows the State Transition Diagram of the session operations in TCP server mode.
Figure 6. State Transition Diagram of TCP server mode
TCP Server Mode Configuration
To configure the device server to work as a TCP server, use
set
command as follows:
set host tcps listening_TCP_port inactivity_t <CR>
where,
listening_TCP_port: Listening TCP port
Inactivity_timeout: Inactivity timeout in seconds.
Listening TCP port
is the TCP port number through which remote host can connect a TCP session, and, send
and receive data. Incoming connection request to the ports other than Listening TCP Port will be rejected. The
device server does not restrict the number to a specific range, but it is strongly recommended not to use the
well-known ports for certain application (See
Appendix D. Well-known Port Numbers
). To change the port
number, select menu 2 on the TCP Server mode configuration screen.
Inactivity timeout
is set to maintain the TCP connection state as Closed or Listen in TCP host mode unless
there is any data transfer between the serial device and the device server. If there is no incoming or outgoing