Cinterion
®
EHS6 AT Command Set
12.5 AT+CMGL
EHS6_ATC_V03.001 15/12/3
Confidential / Released
Page 328 of 513
12.5 AT+CMGL List SMS messages from preferred store
The write command returns messages with status value <stat> from message storage <mem1> to the TE. If the
status of the message is 'received unread', the status in the storage changes to 'received read'.
The execute command is the same as the write command with the given default for <stat>.
Syntax
Test Command
AT+CMGL=?
Response(s)
+CMGL: (list of supported <stat>s)
OK
Exec Command
AT+CMGL
Response(s)
+CMGL: (see write command for default of <stat>)
OK
Write Command
AT+CMGL=<stat>
Response(s)
Output if text mode (AT+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>
[... ]
OK
For SMS-STATUS-REPORTs
+CMGL: <index>, <stat>, <fo>, <mr>, [<ra>], [<tora>], <scts>, <dt>, <st><CR><LF>
[... ]
OK
For SMS-Commands
+CMGL: <index>, <stat>, <fo>, <ct><CR><LF>
[... ]
OK
Output if PDU mode AT+CMGF=0 and command successful:
For SMS-SUBMITs and/or SMS-DELIVERs
+CMGL: <index>, <stat>, [<alpha>], <length><CR><LF><pdu><CR><LF>
[... ]
OK
If error is related to ME functionality
ERROR
+CMS ERROR: <err>
PIN Last Reference(s)
+ + - 3GPP TS 27.005 [44]