4 tcp server/client mode operations – SENA LS110 User Manual

Page 33

Advertising
background image

33

-------------------------------------------------------------------------------

Serial port configuration

-------------------------------------------------------------------------------
1. Baud rate : 9600
2. Data bits : 8
3. Parity : None
4. Stop bit(s) : 1
5. Flow control : Hardware
6. Inter-character timeout : 0
7. Host mode : TCP Client
8. Destination IP : 192.168.23.30
9. Destination port : 7001
10. Inactivity timeout : 0
11. Cyclic connection : 0
12. DTR behavior : Always HIGH
13. DSR behavior : None
14. Allowed IP : 0.0.0.0
15. Allowed subnet : 0.0.0.0

<ESC> Back, <ENTER> Refresh

---> 11

Enter cyclic connection interval in second(0=Disable)
--->

Figure 4-5 Set up Cyclic Connection interval

4.1.4 TCP Server/Client Mode Operations

The LS110 works as either TCP server or client depending on where the data originates from. In its

default state the LS110 will be in the [Listen] state, if the data should arrive from the Ethernet side first,

the LS110 will act as a TCP server. If the data should arrive from the serial port, the LS110 will act as a

TCP client.

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 are data coming from the serial port, 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 data through the serial port. Thus, users can assume

that the LS110 is always connected to the specified remote host.

2) Operations

The only difference from TCP server mode is that the LS110 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

Advertising