N11 V2
AT Command Manual
Copyright © Neoway Technology Co., Ltd
43
Parameter
<stat>: String type or numeric type
When AT+CMGF=1,
"REC UNREAD": Unread SMS messages received
"REC UNREAD": Read SMS messages received
"STO UNSENT": Stored unsent SMS messages
"STO SENT": Stored sent SMS messages
"ALL": All SMS messages
When AT+CMGF=0,
0: Unread SMS messages received
1: Read SMS messages received
2: Stored unsent SMS messages
3: Stored sent SMS messages
4: All SMS messages
Return Value
Text mode (+CMGF=1)
Command is executed successfully and is 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>[...]]
Command is executed successfully and SMS-STATUS-REPORTs:
+CMGL:
<index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st>[<CR><LF>
+CMGL:<index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st>[...]]
Command successful and SMS-COMMANDs:
+CMGL: <index>,<stat>,<fo>,<ct><CR><LF>
+CMGL: <index>,<stat>,<fo>,<ct>[...]]
Command 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>[...]]
PDU mode (+CMGF=0)
Command is executed successfully:
+CMGL: <index>,<stat>,[<alpha>],<length><CR><LF><pdu><CR><LF>