Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Mode])
Text Mode
not allowed.
303 =
not supported.
304 =
311 =
314 =
315 =
316 =
321 =
330 =
331 =
332 =
340 =
Test message 2
OK
The response messages are formatted like this:
+CMGL:
<index>,<status>,<from_address>,<mr>,<scts><CRLF><
data>
index
=
The memory index number, use this index to
read or delete this message.
status
=
The status of this message. For received
messages this can be "REC READ" or "REC UNREAD"
depending on whether the messages has been read or listed
before.
from_address =
The subscriber number of the person
who sent the message.
mr =
The reference number of this message. Most
modems keep this field empty.
scts =
The time the message was forwarded to this
phone or modem.
data =
The actual message data in plain text
Reading a message
To list a single message, you have to use the read command.
You must use the list command first, so you know the
indexes of the messages in the storage. For instance, to read
the message on memory location '2' use:
AT+CMGR=2 <ENTER>
The modem will list the single message:
+CMGR: "REC
READ","+31625012254",,"07/07/05,09:56:03+08"
Test message 2
OK
Please note that the status of the message is now
"REC_READ" instead of "REC_UNREAD" because we read the
message.
Deleting a message
Once you have read a message, you can free the memory by
deleting the message from the storage. For instance, to
delete the message on memory location '2' use:
AT+CMGD=2 <ENTER>
The modem will delete the single message.
====================================
====================================
===============
PDU Mode
List Received Messages in PDU Mode
AT+CMGL=<stat>
stat =
Response
+CMGL: <index>,<stat>,
[<alpha>,]<length><CR><LF><pdu><CR><LF>
index
alpha
phonebook)
length
pdu =