PIONEERPOS G24-LC manual +CMGD, Delete Message, 68 +CMGD Parameters, Delflag, +Cmgd=?

Models: G24-LC G24-L

1 444
Download 444 pages 51.67 Kb
Page 172
Image 172

SMS

+CMGD, Delete Message

This command handles deletion of a single message from memory location <index>, or multiple messages according to <delflag>. If the optional parameter <delflag> is entered, and is greater than 0, the <index> parameter is practically ignored. If deletion fails, result code +CMS ERROR: <err> is returned.

Note: The deletion of multiple commands is a time-consuming process that may require more than 60 seconds to complete.

 

 

 

 

Command Type

Syntax

Response/Action

Remarks

 

 

 

 

 

 

 

 

Set

+CMGD=<index>

OK

 

 

[,<delflag>]

or:

 

 

 

+CMS ERROR: <err>

 

 

 

 

 

Read

 

 

The Read command for +CMGD is not

 

 

 

defined by ETSI, and therefore is not

 

 

 

supported by the G24-L. The G24-L

 

 

 

returns an error.

 

 

 

 

Test

+CMGD=?

+CMGD: (list of valid

The Test command displays the

 

 

<index>s), (list of valid

supported values of <n>.

 

 

<deflag>s)

 

 

 

 

 

 

 

 

 

The following table shows the +CMGD parameters.

 

 

Table 3-68: +CMGD Parameters

 

 

 

<Parameter>

 

Description

 

 

 

 

<index>

1-352 Index in the SMS memory of the message to be deleted.

 

 

 

<delflag>

0

Deletes the message specified in <index>

 

1

Deletes all read messages

 

2

Deletes all read messages and sent MO messages

 

3

Deletes all read messages, sent and unsent MO messages

 

4

Deletes all messages

 

 

 

 

 

 

Example

AT+CMGD=4

OK

AT+CMGD=1,3

OK

3-108

G24-L AT Commands Reference Manual

April 15, 2008

Page 172
Image 172
PIONEERPOS G24-LC manual +CMGD, Delete Message, 68 +CMGD Parameters, Delflag, +Cmgd=?, AT+CMGD=4 AT+CMGD=1,3