LTE Module Series
EC25&EC21 AT Commands Manual
EC25&EC21_AT_Commands_Manual 122 / 231
Example
AT+CMGD=1
//Delete the message specified in
<index>=1
OK
AT+CMGD=1,4
//Delete all messages from
<mem1>
storage
OK
9.6. AT+CMGL List Messages
The Read Command returns messages with status value
<stat>
from preferred message storage
<mem1>
to the TE. If the status of the message is “REC UNREAD”, the status in the storage changes to
“REC READ”. When executing command
AT+CMGL
without status value
<stat>
, it will report the list of
SMS with
“REC UNREAD” status.
AT+CMGL List Messages
Test Command
AT+CMGL=?
Response
+CMGL:
(list of supported
<stat>
s)
OK
Write Command
AT+CMGL[=<stat>]
Response
If in text mode (
AT+CMGF=1
) and the command is executed
successfully:
For SMS-SUBMITs and/or SMS-DELIVERs:
+CMGL:
<index>,<stat>,<oa/da>,[<alpha>],[<scts>][,<tooa/toda>,<
length>]<CR><LF><data>[<CR><LF>
+CMGL:
<index>,<stat>,<da/oa>,[<alpha>],[<scts>][,<tooa/toda>,<
length>]<CR><LF><data>[...]]
For SMS-STATUS-REPORTs:
+CMGL:
<index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st
>[<CR><LF>
+CMGL:
<index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st
>[...]]
For SMS-COMMANDs:
+CMGL:
<index>,<stat>,<fo>,<ct>[<CR><LF>
+CMGL: <index>,<stat>,<fo>,<ct>[...]]