CIE-M10 User’s Manual Ver. 1.1
Sollae Systems Co., Ltd.
- 41 -
http://www. eztcp.com
8.4
TCP Client
COD mode is the mode that CIE-M10 operates as a client.
When previously configured [Event Byte] data comes through the serial port, CIE-M10 will try to
connect to the pre-defined [Peer Address] and host‟s TCP port [Peer Port] via TCP connection.
When the remote host accepts the TCP connection, the TCP connection will be established. After
the connection is established, the data that comes through the serial port will be sent to the
remote host after TCP/IP handling. The TCP/IP data that comes from the remote host will be sent
to the serial port after TCP/IP handling to form data communication.
Remote Host
Serial Device
ezTCP
Listen
Request TCP c
onnection
Accept TCP connection
DATA
“
AB
”
DATA
“
DEF
”
DATA “ABC” (TCP/IP)
DATA
“
GHI
”
(TCP/IP)
DATA
“
GHI
”
connected
<COD connection sequence
–
Event Byte: 3>
Remote Host
DATA
“
C
”
Ack
DATA
“
DEF
”
(TCP/IP)
Figure 8-2 TCP Description of TCP Client Mode
8.4.1
Serial Data Before Connection
Data before TCP connection will be handled based on the [Event Byte] settings. If it is 0, it tries
to make a TCP connection automatically when TCP connection is not established. The data that
comes to CIE-M10‟s serial port before the TCP connection will be ignored.
If it is not 0, it tries to make a TCP connection after getting the specified size of data from the
serial port and will send temporarily saved data to the host after the connection.
8.4.2
Data Communication
When the TCP connection is established, the data communication in between the host and the
serial device will be established. Then, CIE-M10 will send data according to the [Data Frame]. In
other words, when the data comes through CIE-M10‟s serial port, it will be temporarily saved in
the buffer. Then, when there is no incoming data during the designated [Data Frame], CIE-M10