- 36 -
6.
ATC MODE
6.1.
Overview
In ATC mode, it is possible to set up and control ezTCP by use of AT commands,
which are modem commands. For instance, you can set the remote IP to connect by
AT+PRIP command and make connection by ATD command. Thus, communication with
multiple hosts in turn is possible. Also you can make passive connection by ATA
command.
6.1.1.
AT command format
AT commands start with “AT” and end with <CR>.
The format of AT commands is as follows.
AT
Command
<CR>(0x0d)
The response code from ezTCP to an AT command is as follows.
Response Message
<CR>(0x0d)
<LF>(0x0a)
Response Message
ATV1 (Initial setup)
ATV0
Description
OK
0
Command OK
ERROR
4
Command error
CONNECT
1
TCP connection established
NO CARRIER
3
TCP connection terminated
SET VALUE
SET VALUE
When a set value is queried
(Ex: AT+PRIP?)
6.2.
Basic AT Commands
Command
Function
Description
A
passive connection
Listening connection
(connection from host to ezTCP)
D
active connection
Starting to connect to host