Nokia 6090 AT Command Set
29
+CMGL List Messages
This command returns messages with a status value from a preferred message
storage selected with the
AT
+CPMS command (see page 41). <alpha> and CBM
memory not supported. (GSM 07.05) Only<stat>=0 and 4 are applicable. (GSM
07.05)
Syntax:
AT+CMGL[=<stat>]
Responses:
text mode (+CMGF=1), SMS-DELIVER
or SMS-SUBMIT:
+CMGL:
<index>,<stat>,<oa/da>,[<alpha>],[<scts>]
[,<tooa/toda>,<length>] [<CR><LF>
+CMGL:
<index>,<stat>,<oa/da>,[<alpha>],[<scts>]
[,<tooa/toda>,<length>][…]]
text mode (+CMGF=1), SMS-STATUS-
REPORT:
+CMGL:
<index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],
<scts>,<dt>,<st>[<CR><LF>
+CMGL:
<index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],
<scts>,<dt>,<st>[...]]
text mode (+CMGF=1), SMS-
COMMAND:
+CMGL:
<index>,<stat>,<fo>,<ct>[<CR><LF>
+CMGL: <index>,<stat>,<fo>,<ct>[...]]
PDU mode (+CMGF=0):
+CMGL:
<index>,<stat>,[<alpha>],<length><CR>
<LF><pdu>[<CR><LF>
+CMGL:<index>,<stat>,[<alpha>],<length
> <CR><LF><pdu>[...]].
Default option
"REC UNREAD" for +CMGF=1
0 for +CMGF=0
AT+CMGL=?
Show supported values.
Response in text mode (+CMGF=1):
+CMGL: ("REC UNREAD”,"ALL")
Response in PDU mode (+CMGF=0):
+CMGL: (0,4)
<stat> for +CMGF=0:
0
received unread
4
all
<stat> for +CMGF=1:
“REC UNREAD”
received unread
“ALL”
all
Example:
AT+CMGL
List all messages on the SIM in the selected mode (change with +CMGF)
Response:
+CMGL: 1,"STO UNSENT","+499501231234",,
abcdefg
+CMGL: 2,"STO UNSENT","+499501231234",,
abcdefghi
+CMGL: 3,"STO UNSENT","+499501231234",,
abcdefghi
OK
Содержание 6090
Страница 1: ...Nokia 6090 AT Command Set ...