3 tcp server/client mode operation – SENA Rhio10 User Manual

Page 29

Advertising
background image

29

Destination IP address and destination TCP Port are the information on the remote host to

which the Rhio10 will try to connect in TCP client mode. The IP address (or domain name)

should be specified together with the TCP port number.

Cyclic connection interval is the time interval at which the Rhio10 will try to connect to the

remote host regardless of the I/O status change. If the interval is specified with a valid value

other than 0, the function is enabled. The time interval will be the specified value by the unit of

minute. If the interval is entered as 0, cyclic connection feature will be disabled.

Inactivity timeout is the same as described in TCP server mode setting section.

3.2.3 TCP Server/Client Mode Operation

The RHIO10 works as either TCP server or client according to the situation. This will be the

typical mode for most applications, since it will transfer the data either from serial port or from

TCP port. The default TCP state is [Listen] which is the same as that of TCP server mode.

1) Typical State Transition

[Listen] --> [Sync-Received] --> [Established] --> [Data] --> [Closed] --> [Listen]

Or

[Listen] --> [Sync-Sent] --> [Established] --> [Data] --> [Closed] --> [Listen]

The initial state is [Listen]. If there is any change in I/O state, it will connect to the remote host

as a TCP client. If there is incoming connection request from the remote host, it will accept the

connection as a TCP server, and then transfer I/O data. Thus, users can assume that the

RHIO10 is always connected to the specified remote host.

2) Operations

The only difference from TCP server mode is that the RHIO10 will try to connect and send I/O

state data to the remote host even if the TCP session is not established. The difference from

TCP client mode is that it will accept incoming connection request from remote host if the

session is not established. The detailed operation principles are the same as that of TCP server

and TCP client mode.

Advertising