Deleting Short Messages; Examples - Huawei MG323 At Command Interface Specification

Gsm m2m module
Hide thumbs Also See for MG323:
Table of Contents

Advertisement

HUAWEI MG323 GSM M2M Module
AT Command Interface Specification

11.1.2 Deleting Short Messages

Write
command
Function
Response
Note:
When the value of the <delflag> parameter is not 0, the first parameter <index> can be ignored
and executed according to the <delflag> parameter.
Parameter description
<index>: numeric, which indicates the location for storing short messages. The value
range is related to the storage media. The storage media is set by +CPMS. Currently,
only SM is supported.
< delflag >: numeric, which specifies the short messages to be deleted.

11.1.3 Examples

Example:
AT+CMGD=?
+CMGD:(1-255), (0-4)
OK
AT+CMGD=1
OK
AT+CMGD=1, 4
Issue 02 (2010-11-23)
AT++CMGD=<index>[,<delflag>]
Deletes the short messages that are stored on the storage media.
In case of successful execution: <CR><LF>OK<CR><LF>
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
In case of an error related to the MS: <CR><LF>+CMS
ERROR: <err><CR><LF>
0 (default value): deletes the short messages that are specified by <index>.
1: deletes all the read short messages that are stored on the preferred memory
<mem1>, and retains the unread short messages, sent short messages, and
unsent short messages.
2: deletes all the read short messages and sent short messages that are stored
on the preferred memory <mem1>, and retains the unread short messages and
unsent short messages.
3: deletes all the read short messages, sent short messages, and unsent short
messages that are stored on the preferred memory <mem1>, and retains the
unread short messages.
4: deletes all the short messages that are stored on the preferred memory
<mem1>, including the unread short messages.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Commands for Short Messages
Check the parameter range.
Delete the first short message.
157

Advertisement

Table of Contents
loading

Table of Contents