Appendix B – Detailed Examples
Multi-Tech Systems, Inc. AT Commands for Wireless Modems with IP Connectivity (S000333D)
50
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.