Technical reference section
AT+CMGL - List messages
This command allows you to display the short message with the status <stat> from
memory <mem1>.
Action command syntax
Command
+CMGL=[ <stat>]
+CMGL=?
AT+CMS ERROR - message service failure result codes
Value definitions
<err>
0...127
128...255
300
301
302
303
304
310
311
312
313
314
315
320
321
322
330
331
332
500
60
Possible response(s)
If PDU mode (+CMGF=0) and command successful:
+CMGL:<index>, <stat>, <length><CR><LF><pdu>
[<CR><LF>+CMGL:<index>,<stat>,<length><CR><LF>
<pdu>[....]]
Otherwise:
+CMS ERROR : <err>
+CMGL: (list of supported <stat>s)
Values used by common messaging commands
Values from GSM 04.11 Annex E-2
Values from GSM 03.40, section 9.2.3.22
ME failure
SMS service of ME reserved
Operation not allowed
Operation not supported
Invalid PDU mode parameter
SIM not inserted
SIM PIN necessary
PH-SIM PIN necessary
SIM failure
SIM busy
SIM wrong
Memory failure
Invalid memory index
Memory full
SMSC address unknown
No network service
Network timeout
Unknown error