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

Page 36

Advertising
background image

36

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

serial configuration -->port#1 --> TCP/IP

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

Select menu
1. Host mode : TCP Client
2. Destination IP & port : 192.168.1.200:6001
3. Cyclic connection : Disable

<ESC> Back, <ENTER> Refresh

-----> 3
Enter cyclic connection interval in minute(0=disable) : 10

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

serial configuration -->port#1 --> TCP/IP

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

Select menu
1. Host mode : TCP Client

2. Destination IP & port : 192.168.1.200:6001
3. Cyclic connection : 10 Min

<ESC> Back, <ENTER> Refresh

----->

Figure 4-8. Set up Cyclic Connection interval

4.1.4 TCP server/client mode operations

The HelloDevice Pro Series works as either TCP server or client according to the situation. This will be

the typical mode for most applications, since it will transfer the data either from serial port or from TCP

port. The default TCP state is [Listen] which is the same as that of TCP server mode.

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 HelloDevice Pro Series is always connected to the specified remote host.

2) Operations

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

Advertising