Rainbow Electronics GM862-QUAD-PY User Manual

Page 231

Advertising
background image




AT Commands Reference Guide

80000ST10025a Rev. 5 - 09/07/08

Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved

page 231 of 434

+CMGD - Delete Message

SELINT 2

Note: the behaviour of command +CMGD differs depending on whether or not the improved SMS
commands operation mode has been enabled (see #SMSMODE).

(#SMSMODE=0)

AT+CMGD=
<index>
[,<delflag>]

Execution command deletes from memory <memr> the message(s).

Parameter:
<index> - message index in the selected storage <memr> that can
have values form 1 to N, where N depends on the available space
(see +CPMS)
<delflag> - an integer indicating multiple message deletion request.
0 (or omitted) - delete message specified in <index>
1 - delete all read messages from <memr> storage, leaving unread

messages and stored mobile originated messages (whether sent
or not) untouched

2 - delete all read messages from <memr> storage and sent mobile

originated messages, leaving unread messages and unsent mobile
originated messages untouched

3 - delete all read messages from <memr> storage, sent and unsent

mobile originated messages, leaving unread messages untouched

4 - delete all messages from <memr> storage.

Note: if <delflag> is present and not set to 0 then <index> is ignored
and ME shall follow the rules for <delflag> shown above.

Note: if the location to be deleted is empty, an error message is
reported.

AT+CMGD=?

Test command shows the valid memory locations and optionally the
supported values of <delflag>.

+CMGD: (supported <index>s list)[,(supported <delflag>s list)]

Example

AT+CMGD=?
+CMGD: (1,2,3,6,7,17,18,19,20,37,38,39,47),(0-4)


OK

#

S

M

S

M

O

D

E

=
0



#

S

M

S

M

O

D

E

=
0




Reference GSM

07.05

(#SMSMODE=1)

#

S

M

S

M

O

D

E

AT+CMGD=
<index>
[,<delflag>]

Execution command deletes from memory <memr> the message(s).

Parameter:
<index> - message index in the selected storage <memr> that can
have values form 1 to N, where N depends on the available space
(see +CPMS)
<delflag> - an integer indicating multiple message deletion request.
0 (or omitted) - delete message specified in <index>

Advertising