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
- 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
- Sync-Received
In TCP server mode, the state will be changed from [Listen] to
28