Host mode configuration – SENA NEMO10-SK User Manual

Page 31

Advertising
background image

31

4: Host Mode Configuration

Host mode represents the operating session mode of the NEMO10. 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 NEMO10 TCP/IP session modes

Mode

Description

TCP server

Select this mode, when users want the NEMO10 to operate as a TCP server. The NEMO10
stands by until there is any TCP connection request. If TCP connection is not already
established at that time, the NEMO10 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 NEMO10 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 NEMO10 to operate as a TCP client. When the serial
device sends data or pre-defined timer is expired, the NEMO10 tries to establish a TCP
connection to a remote server through its TCP port. If a TCP session is established between
them, the NEMO10 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 NEMO10 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 NEMO10 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 NEMO10 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)

Advertising