Senatek LS100 manual TCP Server/Client Mode Configuration

Models: LS100

1 46
Download 46 pages 30.74 Kb
Page 35
Image 35

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 time-out

Sync-Sent

In-coming TCP Close request

 

TCP connection request accepted

Inactivity time-out

 

Incoming data via serial port

 

Established

Data

 

Incoming data

Closed

from remote host

 

Accept

 

 

Reject

Sync-Recvd

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

Page 35
Image 35
Senatek LS100 manual TCP Server/Client Mode Configuration, State Transition Diagram of TCP server/client mode