Specifications

AT command set for S45 Siemens mobile phones and modems
_________________________________________________________________________________________
__________________________________________________________________________________________
Siemens Document No.: A30880-A10-A001-3-D376
Revision: 1.8
Revision Date: 30. November, 2001
58
2.3.9.4 AT+CMGL
AT+CMGL List SMS
Revision according to GSM 07.05 Version 4.7.0
Test command
AT+CMGL=?
Response
+CMGL: (list of supported <stat>s)
Parameter
<stat>
0 REC UNREAD
i.e. received messages unread (default)
1 REC READ
i.e. received messages read
2 STO UNSENT
i.e. stored unsent messages
3 STO SENT
i.e. stored sent messages
4 ALL
i.e. all messages
Write command
AT+CMGL[=<stat>]
Parameter
<stat>
See Test command
Response
If PDU mode (+CMGF=0) and command are successful:
+CMGL:<index>,<stat>,[<alpha>],<length><CR><LF><pdu>[<CR><LF>
+CMGL:<index>,<stat>,[<alpha>],<length><CR><LF><pdu><CR><LF>[...]]
Parameter
<pdu>
The PDU begins with the service-center address (according to
GSM04.11), followed by the TPDU according to GSM03.40, in
hexadecimal format
otherwise: +CMS ERROR
2.3.9.5 AT+CMGR
AT+CMGR Read in an SMS
Revision according to GSM 07.05 Version 4.7.0
Test command
AT+CMGR=?
Response
OK
Write command
AT+CMGR=<index>
Parameter
<index>
Index of message in selected memory <mem1>
Response
If PDU mode (+CMGF=0) and command are successful:
+CMGR: <stat>,,<length><CR><LF><pdu>
Parameter
<pdu>
See AT+CMGL
<stat>
See AT+CMGL
<length>
See AT+CMGL
otherwise: +CMS ERROR