![Sollae Systems CSE-H25 Скачать руководство пользователя страница 32](http://html1.mh-extra.com/html/sollae-systems/cse-h25/cse-h25_user-manual_1316257032.webp)
CSE-H25 User
’
s Manual Ver. 1.2
Sollae Systems Co., Ltd.
- 31 -
http://www.sollae.co.kr
5.3
COD
–
TCP Client
In COD mode, the ezTCP functions as a client.
When data of the pre-specified size [Event Byte] comes to the serial port, the ezTCP
attempts a TCP connection to the TCP port [Peer Port] of the preset host IP [Peer IP
Address]. If the remote host accepts the TCP connection, TCP connection will be
established. Data coming to the serial port after connection establishment is TCP/IP-
processed and transmitted to the remote host. And, data coming from the remote host
is TCP/IP-processed and transmitted to the serial port for data communication.
5.3.1 Serial Data before the TCP Connection
Data before TCP connection will be handled based on the [Event Byte] settings. If the
[Event Byte] is 0, the data that comes to CSE-H25‟s serial port will not be recognized. If it
is not 0, the serial data before TCP connection will be temporarily saved to be sent to the
host after the connection.
5.3.2 Data Transmission
When the TCP connection is established, the data communication in between the host
and the serial device will be established. Then, CSE-H25 will send data according to the
[Data Frame]. In other words, when the data comes through CSE-H25‟s serial port, it will
be temporarily saved in the buffer. Then, when there is no incoming data during the
designated [Data Frame], CSE-H25 will send the saved data. If the [Data Frame] is 0, CSE-
H25 will send serial port‟s data immediately. The unit used for the [Data Frame] is 10
milliseconds, so CSE-H25 rounds down rest of the values.
5.3.3 Disconnection
When the connected host terminates the connection, or there is no data communication