Tcp Client Mode Operations - Sena PS100 User Manual

Hellodevice pro series
Table of Contents

Advertisement

---------------------------------------------------------------------------
serial configuration -->port#1 --> TCP/IP
---------------------------------------------------------------------------
Select menu
1. Host mode : TCP Server
2. Local port : 6000
<ESC> Back, <ENTER> Refresh
-----> 2
Enter local port number : 6001

4.1.3 TCP client mode operations

The HelloDevice Pro Series works as a TCP client, and the default TCP state is [Closed] in this mode.
The remote host will be either Ethernet-Serial communication devices acting as a TCP server or a
socket program acting as a TCP server running on users' PC.
1) Typical State Transition
[Closed] --> [Sync-Sent] --> [Established] --> [Data] --> [Closed]
At start-up, an initial TCP state is [Closed]. If there is any incoming data through the serial port, the
HelloDevice Pro Series will try to connect to a user-defined remote host. Then, the state will be
changed to [Sync-Sent], which means the connection request is being sent. If the remote host accepts
the request, the state will be changed into [Established], which means a session has been opened.
For a while, data will be transferred between the hosts. This is [Data] state. The session will be
disconnected due to the request of one of them, which is its original state, [Closed].
2) Operations
Serial data transfer
Whenever the serial device sends data through the serial port of the HelloDevice Pro Series, data
will be accumulated to the serial port buffer of the HelloDevice Pro Series. If the internal serial port
buffer is full or inter-character time interval reaches to the time specified as inter-character timeout
value, it tries to connect to the user-defined IP address (or domain name) of the remote host, if
TCP session is not established yet (See Options in section 4.4 for details on inter-character
timeout). If the HelloDevice Pro Series succeeds in connecting to the remote host, the data in the
serial port buffer will be transferred to the host. Otherwise, all the data stored in the buffer will be
cleared.
Session disconnection
The connected session will be disconnected when the remote host sends disconnection request
Figure 4-5. Changing Local TCP Port number
33

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents