User Manual

DTE:
+CMTI: "SM",11
AT+CPMS="SM"
+CPMS: 11,50,11,50,11,50
OK
Use unsolicited indication parameter to read the SMS for the first time.
An already written/received SMS can be deleted from the selected storage.
To delete the SMS its location index is needed:
send command AT+CMGD=<index>[,<delflag>]<cr>
where:
<index>: SMS location index, if <delflag> = 0
Test command shows the valid memory locations and optionally the supported values of
<delflag>.
<delflag>: an integer indicating multiple message deletion request as follows:
0 (or omitted) Delete the message specified in <index>
1 Delete all read messages from preferred message storage, leaving unread messages
and stored mobile originated messages (whether sent or not) untouched
2 Delete all read messages from preferred message storage and sent mobile originated
messages, leaving unread messages and unsent mobile originated messages untouched
3 Delete all read messages from preferred message storage, sent and unsent mobile
originated messages leaving unread messages untouched.
4 Delete all messages from preferred message storage including unread messages.
wait for response:
Response
Reason
Action
OK
Message has been successfully
deleted.
proceed ahead
ERROR
some error occurred
Enable the extended error codes
report (see par. 4.4.2.1) and retry.
+CMS ERROR: 321
Invalid memory index
e.g. the given record was already
empty
Check the <index> number and
retry.
For example:
1- Let us assume you want to delete a previously written SMS that was written to the storage
index position number 3. We suppose you already have set up the device for text SMS mode
as described on the previous paragraphs: