CSE-M32 Users
’
Manual Ver. 2.2
Sollae Systems Co., Ltd.
- 27 -
http://www.sollae.co.kr
6
Normal Communication Mode
6.1
T2S
–
TCP Server
In T2S mode, the CSE-M32 functions as a server.
When a host connects to predefined local port, the CSE-M32 accepts a TCP
connection. When the ezTCP accepts TCP connection, then the TCP connection is
established. After connection is established, TCP/IP processing is performed on the data
coming to the serial port, which is then transmitted to the remote host. And the TCP/IP
data coming from the remote host is TCP/IP-processed and transmitted to the serial port
to establish data communication.
Remote Host
Serial Device
ezTCP
Listen on
local port
Request TCP connection
Accept TCP co
nnection
ack
DATA
“
ABC
”
DATA
“
ABC
”
(TCP/IP)
DATA
“
DEF
”
(TCP/IP)
DATA
“
DEF
”
connected
<T2S Mode>
6.1.1
TCP Connection
If a host connects to the pre-defined [Local Port] of CSE-M32, the host can communicate
bi-directionally.
6.1.2
Serial Data before the TCP Connection
The received serial data before the TCP connection is established will be handled based
on the [Event Byte] settings. If the [Event Byte] is 0, the data that comes to serial port of
CSE-M32 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.
6.1.3
Data Transmission
When the TCP connection is established, the data communication in between the host
and the serial device will be established. Then, CSE-M32 will send data according to the