Senatek HELLODEVICE LITE SERIES LS100 User Manual

Page 28

Advertising
background image

28

set host hostmode par1 par2 ...

where,

hostmode: tcps=TCP server / tcpc=TCP client / tcpsc=TCP server & client

parameters:

if hostmode = TCP server (tcps),

par1 = listening TCP port,

par2 = inactivity timeout (sec)

if hostmode = TCP client (tcpc),

par1 = destination IP address,

par2 = destination TCP port,

par3 = cyclic connection interval (min),

par4 = inactivity timeout (sec)

if hostmode = TCP server & client (tcpsc),

par1 = listening TCP_port,

par2 = destination IP address,

par3 = destination TCP port,

par4 = cyclic connection interval (min),

par5 = inactivity timeout (sec)

* set cyclic connection interval to 0 not to use cyclic connection

* set inactivity timeout to 0 for unlimited timeout

For easier understanding of TCP modes, a simplified State Transition Diagram is often used. And

too help users understand the diagram, the TCP state of the LS100 is briefly described as follows.

- Listen

It represents “a waiting for a connection request from any remote host”. It is a default start-up

mode when it is set as TCP server mode. This state is valid only in TCP server mode operation.

- Closed

It means “No connection state at all”. If the data transfer is completed, the state is changed to this

state if one of the host requests disconnection request. If it is in TCP server mode, the state is

automatically changed to [Listen] mode. It is a default start-up mode when it is set as TCP client

mode or TCP server/client mode.

- Sync-Received

In TCP server mode, the state will be changed from [Listen] to [Sync-Received], if any remote

host sends connection request. If the LS100 accepts the request, the state will be changed into

[Established]. This state is not valid in TCP client mode.

Advertising