![Sena NEMO10 Скачать руководство пользователя страница 39](http://html1.mh-extra.com/html/sena/nemo10/nemo10_user-manual_1237928039.webp)
39
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 NEMO10 is always connected to the specified remote host.
2) Operations
The only difference from
TCP server
mode is that the NEMO10 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.
Established
Inactivity time-out
TCP connection request rejected
Or internal TCP time-out
TCP connection request accepted
Sync-Sent
Incoming data via serial port
Incoming data
from remote host
In-coming TCP Close request
Listen
Incoming TCP connection request
Incoming data via serial port
Sync-Recvd
Reject
Accept
Closed
Data
Figure 4-5. State Transition Diagram of TCP server/client mode