Host mode configuration – Senatek HELLODEVICE LITE SERIES LS100 User Manual

Page 27

Advertising
background image

27

4. Host Mode Configuration

Host mode represents the operating session mode of the LS100. 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 4-1 shows the brief

description of the host modes. A factory default host mode is TCP Server.

Table 4-1. The LS100 TCP/IP session modes

Mode

Description

TCP server

Select this mode, when users want the LS100 to operate as a TCP server. The LS100 stands
by until there is any TCP connection request. If TCP connection is not already established at
that time, the LS100 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 LS100 supports only one TCP session for the serial port, the additional TCP
connection 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 LS100 to operate as a TCP client. When the serial
device sends data or pre-defined timer is expired, the LS100 tries to establish a TCP
connection to a remote server through its TCP port. If a TCP session is established between
them, the LS100 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 LS100 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 LS100 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. Otherwise, it will send data back and forth. In summary,
the LS100 will work as if it is virtually connected to the remote host.

For each host mode, required parameters for configuration is summarized in Table 4-2.

Table 4-2 Host mode configuration parameters

Listening TCP port

TCP Server

Inactivity timeout (sec)
Destination IP
Destination TCP Port
Cyclic connection Interval

TCP Client

Inactivity timeout (sec)
Listening TCP port
Destination IP
Destination TCP Port
Cyclic connection Interval

TCP
Server/Client

Inactivity timeout (sec)

Basic ‘set’ command usage for host mode configuration is as follows:

Advertising