MM6854/64 Dual Band GSM Data Modem
Issue 1.0 ME 820047
03/00 Page 21
5.1.33 AT+CMGF – Message format
This command allows you to define the input and output format of the shor t message.
Enter
AT+CMGF=0
AT+CMGF=1
AT+CMGF=?
Response
Set to PDU mode, a complete SMS message including all
header information is passed as a binary string.
Set to text mode, all commands and responses are in ASCII
characters.
Displays all supported values.
Notes: None.
Result codes:
OK
ERROR
Message service failure result codes.
5.1.34 AT+CMGL – List messages
This command is used to list the SMS messages stored in the modem .
Enter
AT+CMGL=<STAT>
Where <STAT>
In text mode:
“REC UNREAD”
“REC READ”
“STO UNSENT”
“STO SEND”
“ALL”
In PDU mode:
0
1
2
3
4
AT+CMGL::<index>,
<stat>,<da>,<CR>,<LF>,<dat
a>
Where <data>
<da>
<index>
AT+CMGL=?
Response
Receive unread messages.
Stored read messages.
Stored unsent messages.
Stored sent messages.
All messages
Received unread messages
Stored read messages
Stored unsent messages
Stored sent messages
All messages
TP user data GSM 03.40
Destination Address type value according to GSM 03.40.
Location in memory.
Displays the supported values.
Notes: None.
Result codes:
OK
ERROR
Message service failure result codes.