
- 29 -
6.5.
Example of TCP Connection
6.5.1.
Example of Active Connection
Serial Port
Description
AT+PRIP=192.168.1.201<CR>
▶
Setting remote IP address to connect
◀
<CR><LF>OK<CR><LF>
Command OK
AT+PRP=1470<CR>
▶
Setting remote port number to connect
◀
<CR><LF>OK<CR><LF>
Command OK
ATDT<CR>
▶
Connecting to the host
Attempting to connect to the host
◀
<CR><LF>CONNECT<CR><LF>
TCP connection success
Data Communication
6.5.2.
Example of passive Connection
Serial Port
Description
AT+PLP=1470<CR>
▶
Set LOCAL PORT to listen
◀
<CR><LF>OK<CR><LF>
Command OK
ATA<CR>
▶
Passive connection command
Listen on local port from a host
A host connects to EZL-400S
◀
<CR><LF>CONNECT<CR><LF>
TCP connection OK
Data Communication
6.6.
Example of TCP Disconnection
6.6.1.
Example of active disconnection
EZL-400S disconnects the connection.
Serial Port
Description
Data Communication(during TCP connection)
[guard time]+++[guard time]
▶
Changing online state to online command
state
◀
<CR><LF>OK<CR><LF>
Changed to online command state
ATH
▶
TCP disconnection command
◀
<CR><LF>OK<CR><LF>
Command OK