64
6196-2220
+CMGL – List message
Description:
This command allows the application to read stored messages, by indicating the type of
the message to read.The messages are read from the memory selected by the +CPMS
command.
Syntax:
AT+CMGL=<stat>
Response syntax for text mode:
+CMGL: <index>,<stat>,<da/oa>[,<alpha>], [<scts>, <tooa/toda>, <length>]
<CR><LF><data> (for SMS-DELIVER and SMS-SUBMIT, may be followed by other
<CR><LF>+CMGL:<index>...)
+CMGL: <index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st>
(for SMS-STATUS-REPORT only, may be followed by other
<CR><LF>+CMGL:<index>...)
Response syntax for PDU mode:
+CMGL: <index>,<stat>, [<alpha>], <length> <CR><LF> <pdu>
(for SMS-DELIVER, SMS-SUBMIT and SMS-STATUS-REPORT, may be followed by other
<CR><LF>+CMGL:<index>...)
Command example
Possible responses
Note
AT+CMGL=“REC UNREAD”
+CMGL: 1,”REC UNREAD”,
List unread messages in
”0146290800”,
text mode, 2 messages
<CR><LF> are
unread, these
Unread message!
messages will then have
+CMGL: 3,
their status changed to
”REC UNREAD”,
“REC READ” (+CSDH:0)
“46290800”, <CR><LF>
OK
AT+CMGL=”REC READ”
+CMGL: 2,”REC READ”,
List read messages in text
”0146290800”,
mode
<CR><LF>
OK
AT+CMGL=”STO SENT”
OK
List stored and sent
messages in text
mode, result: no message
found
AT+CMGL=1
+CMGL: 1,1,,26 <CR><LF>
List read messages in
07913366003000F3040
PDU mode
B913366920547F4
B913366920547F4
001300119041253040074
1AA8E5A9C5201
OK
Содержание GD-01 TCP
Страница 147: ...147 6196 2220...