2) Operations
The only difference from TCP server mode is that the LS100 will try to connect and send serial 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.
TCP connection request rejected
Or internal TCP
| |
| |
TCP connection request accepted | Inactivity |
| |
Incoming data via serial port |
|
Established | Data |
| |
Incoming data | Closed |
from remote host |
|
Accept |
|
| Reject |
Listen | |
|
Incoming TCP connection request
Incoming data via serial port
Figure 4-5. State Transition Diagram of TCP server/client mode
4.3.2 TCP Server/Client Mode Configuration
To configure the LS100 to work as a TCP server/client mode, use ‘set’ command as follows:
set host tcpsc listening_port dest_ip dest_port cyclic_connection_interval inactivity_timeout
where,
35