HUAWEI MU509 HSDPA LGA Module
AT Command Interface Specification
Short Message Service Commands
Issue 04 (2013-01-28)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
74
<ra>: recipient-address
<tora>: receive-address type
<scts>: service-centre-time-stamp.
<dt>: discharge-time.
<st>: status.
6.8 +CMGD–Delete Message
6.8.1
Command Syntax
Command
Possible response(s)
If delflag value is 0:
+CMGD=<index>[,<delflag>]
If delflag value isn
‟t 0:
+CMGD=[<index>],<delflag>
<CR><LF>OK<CR><LF>
In case of SMS-related error:
<CR><LF>+CMS ERROR: <err><CR><LF>
+CMGD=?
<CR><LF>+CMGD: (list of supported <index>s)
,(list of supported <delflag>s)<CR><LF>
<CR><LF>OK<CR><LF>
6.8.2
Description
The SET command deletes message from memory <mem1> location <index>. For
the setting of <mem1> and description, see the “+CPMS command”. If the second
parameter <delflag> is present and not set to 0 then the ME shall ignore <index> and
follow the rules for <delflag> shown below. If deleting fails, +CMS ERROR: <err> is
returned.
The TEST command returns the storage position where the message is currently
stored, and the supported <delflag> values.
6.8.3
Defined Values
<index>: storage position of message
<delflag>:
0: Delete the messages specified by <index> (default value).
1: Delete all read messages from preferred message storage, leaving unread
messages 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.