Siemens MC35 User Manual
AT Command Set
MC35_ATC_01_V05.00
Page 137 of 256
15.07.2002
5.4 AT+CMGL List SMS messages from preferred store
Test command
AT+CMGL=?
Response
+CMGL:
(list of supported <stat>s) OK
Parameter
See execute command
Execute command
AT+CMGL[=
<stat>]
<stat>]
Parameter
1) If text mode:
<stat>
<stat>
“REC UNREAD”
Received unread messages (default)
“REC READ”
Received read messages
“STO UNSENT”
Stored unsent messages
“STO SENT”
Stored sent messages
“ALL”
All
messages
2) If PDU mode:
<stat>
0
Received unread messages (default)
1
Received read messages
2
Stored unsent messages
3
Stored sent messages
4
All
messages
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’.
Note: If the selected <mem1> can contain different types of SMs (e.g. SMS-
DELIVERs, SMS- SUBMITs, SMS- STATUS-REPORTs and SMS-
COMMANDs), the response may be a mix of the responses of different SM
types. TE application can recognize the response format by examining the
third response parameter
to the TE. If status of the message is ‘received unread’, status in the storage
changes to ‘received read’.
Note: If the selected <mem1> can contain different types of SMs (e.g. SMS-
DELIVERs, SMS- SUBMITs, SMS- STATUS-REPORTs and SMS-
COMMANDs), the response may be a mix of the responses of different SM
types. TE application can recognize the response format by examining the
third response parameter
.
Response
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>[...]] OK
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>
[...]] OK
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>[...]] OK
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>
[...]] OK