Specifications

AT Command Set for L55 Platform 2003-11-21
Copyright Siemens AG 2003 All Rights Reserved Page 61 of 131
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
3GPP TS 04.11, [2]), followed by the TPDU (according to 3GPP
TS 03.40, [1]) 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