
GSM/GPRS Module
M35
AT Commands Manual
M35
_AT_Commands_Manual Confidential / Released
85
/ 186
Example
AT+CMGD=1
// Delete message specified in
<index>=1
OK
AT+CMGD=1,4
// Delete all messages from
<mem1>
storage
OK
8.6. AT+CMGL List SMS Messages from Preferred Store
AT+CMGL List SMS Messages from Preferred Store
Test Command
AT+CMGL=?
Response
+CMGL:
(list of supported
<stat>
s)
OK
Write Command
AT+CMGL=<stat>[,<mode>]
Response
TA returns messages with status value
<stat>
from message
storage
<mem1>
to the TE. If status of the message is
'received unread', status in the storage changes to 'received
read'.
1) If text mode (
+CMGF=1
) and command successful:
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>[...]]
for CBM storage:
+CMGL:<index>,<stat>,<sn>,<mid>,<page>,<pages><CR
><LF><data>[<CR><LF>
+CMGL: