
Appendix B – Detailed Examples
Multi-Tech Systems, Inc. AT Commands for Wireless Modems with IP Connectivity (S000333B) 48
Serial Communication Continued
Command Mode / Data Mode for Email
Email service: SMTP
through
AT#PUTMAIL
ENTRY FLOW
Enter in DATA mode:
The “Ok_Info_WaitingForData” message
sent to the host on the serial port indicates
the entry in DATA mode.
Modem ready to receive data from host.
This data will form the body of the email
Exit DATA mode:
1. The host ends the DATA mode by sending the
[CR][LF].[CR][LF] sequence on the serial port
2. The modem ends the DATA mode if an error
occurs by sending an error message to the
host (this message is not preceded by the
[CR][LF].[CR][LF] sequence)
Email service: POP3
through
AT#GETMAIL
OUTPUT FLOW
Enter in DATA mode:
The “Ok_Info_Mail” message sent to the
host on the serial port indicates the entry in
DATA mode.
The modem then immediately sends the
data received from the POP3 server to the
host.
Exit DATA mode:
1. The modem ends the DATA mode by
sending the [CR][LF].[CR][LF] sequence on
the serial port.
This sequence is sent in case of a positive
result or if an error occurs.
2. It's not possible for host to exit DATA mode
Command Mode / Data Mode for FTP
FTP service : FTP
through AT#FTPPUT
ENTRY FLOW
Enter in DATA mode:
The “Ok_Info_WaitingForData” message
sent to the host on the serial port indicates
the entry in DATA mode.
The modem is ready to receive the data from
the host for sending it.
This data will form the file on the FTP server.
Exit DATA mode:
1. The host ends the DATA mode by sending the
[ETX] character (not preceded by [DLE]) on
the serial port.
2. The modem ends the DATA mode if an error
occurs by sending an error message to the
host (this message is not preceded by the
[ETX] character).
[ETX] is CTRL+C in a keyboard.
[DLE] is CTRL+P in a keyboard.
FTP service : FTP
through AT#FTPGET
OUTPUT FLOW
Enter in DATA mode:
The “Ok_Info_DataBegin” message sent to
the host on the serial port indicates the
entry in DATA mode.
The modem then immediately sends the
data received from the FTP server to the
host.
Exit DATA mode:
1. The modem ends the DATA mode by
sending the [ETX] character (not preceded by
[DLE]) on the serial port.
This character is sent in case of a positive
result or if an error occurs.
2. It's not possible for host to exit DATA mode.
[ETX] is CTRL+C in a keyboard.
[DLE] is CTRL+P in a keyboard.
Command Mode / Data Mode for TCP Services: [ETX] means END of TCP connection
When DLEMODE is set to 1, the [ETX] character means a request or an indication of end of connection.
As a consequence, [ETX] characters that belongs to the payload data must be sent by the host on the serial port
preceded by a [DLE] character. Similarly [ETX] characters received by the modem from the Internet are sent to the host
through the serial port preceded by a [DLE] character
Socket TCP service :
TCP socket through
AT#LTCPSTART or
AT#OTCP
ENTRY FLOW
Enter in DATA mode:
The “Ok_Info_WaitingForData” message
sent to the host on the serial port indicates
the entry in DATA mode.
The modem is ready to receive the data from
the host.
This data will be sent to the remote TCP
peer.
Exit DATA mode:
1. The host ends the DATA mode by sending the
[ETX] character (not preceded by [DLE]) on
the serial port.
2. The modem ends the DATA mode if an error
occurs or if the TCP peer disconnects by
sending an error message to the host (this
message is preceded by the [ETX] character)
[DLE] is CTRL+P in a keyboard.
[ETX] is CTRL+C in a keyboard.
Socket TCP service :
TCP socket through
AT#LTCPSTART or
AT#OTCP
OUTPUT FLOW
Enter in DATA mode:
The “Ok_Info_WaitingForData” message
sent to the host on the serial port indicates
the entry in DATA mode.
The modem then immediately sends the
data received from the remote TCP peer to
the host.
Exit DATA mode:
1. The host ends the DATA mode by sending
the [ETX] character (not preceded by [DLE])
on the serial port.
2. The modem ends the DATA mode if an error
occurs or if the TCP peer disconnects by
sending a message to the host (this message
is preceded by the [ETX] character)
[ETX] is CTRL+C in a keyboard.
[DLE] is CTRL+P in a keyboard.
Comentarios a estos manuales