AirPrime and HL7548 AT Commands Interface Guide Rev10 0

Table Of Contents
4116303 Rev 10.0 August 10, 2017 139
AT Commands Interface Guide
SMS Commands
8.4. +CMGL Command: List Messages
HL7518 and HL7548
Test command
Syntax
AT+CMGL=?
Response
+CMGL: (list of supported <stat>s)
OK
Execute command
Syntax
AT+CMGL
[=<stat>]
Response
If in text mode, command is successful and 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>
[...]]
If in text mode, command is successful and SMS-STATUS-REPORTs:
+CMGL: <index>, <stat>,<fo>, <mr>, [<ra>], [<tora>], <scts>, <d-t>,<st>[<CR><LF>
+CMGL: <index>, <stat>, <fo>, <mr>,[<ra>], [<tora>],<scts>,<d_t>,<st>[...]]
If in text mode, command is successful and SMS-COMMANDs:
+CMGL: <index>,<stat>,<fo>,<ct> [<CR><LF>
+CMGL: <index>,<stat>, <fo>,<ct>[...]]
If in text mode, command is successful and CBM storage:
+CMGL : <index>,<stat>,<sn>, <mid>, <page>,<pages> <CR><LF><data>[<CR><LF>
+CMGL : <index>,<stat>,<sn>, <mid>,<page>,<pages><CR><LF><data>[...]]
If in PDU mode and command is successful:
+CMGR: <stat>,[<alpha>],<length><CR><LF><pdu>
or
+CMS ERROR: <err>
Parameters
For parameter information and values, refer to section 8.1 Parameters Definition.
8.5. +CMGR Command: Read Message
HL7518 and HL7548
Test command
Syntax
AT+CMGR=?
Response
OK