User's Manual

Telit TRIZIUM Product Description
80264ST10007a Rev. 4– 09/09/04
Reproduction forbidden without DAI Telecom written authorization – All Right reserved – Right of modification reserved page 133 of 202
5.5.3.2 +CMGL - list messages
+CMGL – list messages
Execute command
Read command
Write command
AT+CMGL = <stat>
Reports the list of all the messages stored into <memr> (see command +CPMS )
memory storage having the status equal to <stat> parameter.
Parameter (PDU Mode):
<stat>
0 - new message
1 - read message
2 - stored message not yet sent
3 - store message already sent
4 - all messages (applies only to +CMGL command)
A report is sent for each message that has to be listed in the format:
+CMGL: <index>,<stat>,<length><CR><LF><pdu>
where
<index> - message position in the memory storage list.
<stat> - status of the message
<length> - length of the PDU in bytes
<pdu> - message in PDU format according to GSM 3.40
Note: OK message is sent only at the end of the listing.
Parameter (Text Mode):
<stat>
"REC UNREAD" - new message
"REC READ" - read message
"STO UNSENT" - stored message not yet sent
"STO SENT" - store message already sent
"ALL" - all messages (applies only to +CMGL command)
A report is sent for each message that has to be listed in the format:
+CMGL: <index>,<stat>,<oa/da>[,,,<tooa/toda>,<length>]<CR><LF><text>
where
<index> - message position in the storage
<stat> - message status
<oa/da> - originator/destination number
< tooa/toda > - type of number <oa/da>
145 - number in international format (contains the "+")
129 - number in national format
<length> - text length
<text> - message text
For each message delivery confirm a result code is reported in the format:
+CMGL: <index>,<stat>,<fo>,<mr>,,,<scts>,<dt>,<st>
Where
<index> - message position in the storage
<stat> - message status
<fo> - first octet of the message PDU
<mr> - message reference number
<scts> - arrival time of the message to the SC
<dt> - sending time of the message
<st> - message status as coded in the PDU