![background image](http://html1.mh-extra.com/html/patton-electronics/etherbits-2211/etherbits-2211_getting-started-manual_4062529040.webp)
Introduction
40
Models 2211 & 2232 Getting Started Guide
5 • Host Mode configuration
Introduction
Host mode represents the operating session mode of the device server. Several host modes are available for the
data communication between the serial device and remote hosts. Since TCP is connection-oriented protocol,
server, client, server/client modes are provided.
Table 7
shows the brief description of the host modes. A factory
default host mode is TCP Server.
For each host mode, required parameters for configuration is summarized in
table 8
.
Table 7. Device server TCP/IP session modes
Mode
Description
TCP server
Select this mode, when users want the device server to operate as a TCP server.
The device server stands by until there is any TCP connection request. If TCP con-
nection is not already established at that time, the device server accepts the
request and the session is established. In the established state, it transmits the data
through the serial port if there is any data from the remote host. Since the device
server supports only one TCP session for the serial port, the additional TCP connec-
tion request will be rejected if already established. This mode is useful when users
want to send data to the serial device at any time they want.
TCP client
Select this mode, when users want the device server to operate as a TCP client.
When the serial device sends data or pre-defined timer is expired, the device
server tries to establish a TCP connection to a remote server through its TCP port. If
a TCP session is established between them, the device server will send data to the
server. If there’s any data from the server during the session, it will also send the
data through the serial port. However, if the device server failed to connect to the
remote server, the data from the serial port will be discarded. This is useful when
the serial device initiates sending data such as data gathering application.
TCP server/client
If you are not sure which mode to choose, select this mode since it will be applied
in most applications. In this mode, the device server operates as TCP server AND
client. If the connection is not established, it will accept all incoming connection
and connect to the remote host if there are any data from the serial device. Other-
wise, it will send data back and forth. In summary, the device server will work as if
it is virtually connected to the remote host.
Table 8. Host mode configuration parameters
TCP Server
Listening TCP port
Inactivity timeout (sec)
TCP Client
Destination IP
Destination TCP Port
Cyclic connection Interval
Inactivity timeout (sec)
TCP Server/Client
Listening TCP port
Destination IP
Destination TCP Port
Cyclic connection Interval
Inactivity timeout (sec)