User Manual

Table Of Contents
SARA-R4/N4 series-AT Commands Manual
UBX-17003787 - R11
9Short Messages Service
Page 76 of 308
9.10List message +CMGL
+CMGL
SARA-R404M SARA-R410M-01B SARA-R410M-02B SARA-R410M-52B SARA-R412MModules
SARA-N4
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
full Yes No No Up to 3 min (<1
s for prompt ">"
when present)
+CMS Error
9.10.1Description
Returns SMS messages with status value <stat> from message storage <mem1> to the DTE. If status of the
received message is "received unread", status in the storage changes to "received read".
9.10.2Syntax
Type Syntax Response Example
Command successful and
SMS-DELIVERs:
+CMGL: <index>,<stat>,<oa>,
[<alpha>],[<scts>][,<tooa>,
<length>]
<data>
[+CMGL: <index>,<stat>,<oa>,
[<alpha>],[<scts>][,<tooa>,
<length>]<data>[...]]
OK
AT+CMGL
+CMGL: 303,"REC READ","+39340
1234999",,"08/08/06,10:01:38+08"
You have a missed called. Free
information provided by your
operator.
OK
Command successful and
SMS-SUBMITs:
+CMGL: <index>,<stat>,<da>,
[<alpha>],[<toda>, <length>]
<data>
[+CMGL: <index>,<stat>,
<da>,[<alpha>],[<toda>,
<length>]<data>[...]]
OK
Command successful and
SMS-STATUS-REPORTs:
+CMGL: <index>,<stat>,<fo>,<mr>,
[<ra>],[<tora>],<scts>,<dt>,<st>
[+CMGL: <index>,<stat>,<fo>,<mr>,
[<ra>],[<tora>],<scts>,<dt>,<st>
[...]]
OK
Command successful and
SMS-COMMANDs:
+CMGL: <index>,<stat>,<fo>,<ct>
[+CMGL: <index>,<stat>,<fo>,
<ct>[...]]
OK
Text mode (+CMGF=1):
AT+CMGL[=<stat>]
Command successful and CBM
storage:
+CMGL: <index>,<stat>,<sn>,
<mid>,<page>,<pages><data>
[+CMGL: <index>,<stat>,<sn>,
<mid>,<page>,<pages>,<data>[...]]
OK
Set
PDU mode (+CMGF=0): Command successful: AT+CMGL=1