Delete message +cmgd – Multi-Tech Systems MMCModem GPRS (MTMMC-G) User Manual

Page 73

Advertising
background image

Chapter 9 – Short Messages Commands

Multi-Tech Systems, Inc. Wireless GSM/GPRS AT Commands (Document Number S000293I)

73

Syntax:

Command Syntax: AT+CSMP=<fo>, <vp>, <pid>,<dcs>

Command

Possible responses

AT+CSMP?

Note: current values

+CSMP: 0,0,0,0
OK
Note: No validity period <dcs>= PCCP437
alphabet (8 bits

Æ 7 bits)

AT+CMPS=17,23,64,244
Note: <vp> = 23 (2 hours, relative format)

<dcs> = GSM 8 bits alphabet

Reminder: Enter <fo> value in decimal format

OK
Note: Command correct

Delete Message +CMGD

Description:

This command deletes one or several messages from preferred message storage (“BM” SMS CB ‘RAM
storage’, “SM” SMSPP storage ‘SIM storage’ or “SR” SMS Status-Report storage).

Refer to the Preferred Message Storage +CPMS command.

Values:

<index> If <DelFlag>=0

(1-20) If the preferred message storage is “BM”

Sim dependent integer values (in the range of SIM location number) if the preferred
message storage is “SM” or “SR”.

If

<DelFlag> is > 0, <index> is ignored.

<DelFlag>

0

Delete message at location <index>.

1

Delete All READ messages

2

Delete All READ and SENT messages

3

Delete All READ, SENT and UNSENT messages

4

Delete All messages.

Notes:

If

<DelFlag> is omitted, default value is used.

When the preferred message storage is “SR”, as SMS status reports are assumed to have a “READ”
status, if <DelFlag> is greater than 0, all SMS status reports will be deleted.

Syntax:

Command Syntax: AT+CMGD=<Index> [,<DelFalg>]

Command

Possible responses

+CMTI:”SM”,3

Note: New message received

AT+CMGR=3
Note: Read it

+CMGR: “REC UNREAD”,”0146290800”,
“98/10/01,18:19:20+00” <CR><LF>
Message received!
Note: Unread message received from 0146290800 on the 01/10/1998 at 18H19m
20s

AT+CMGD=3
Note: Delete it

OK
Note: Message deleted

AT+CMGD=1,0 OK

Note: The message from the preferred message storage at the location 1 is deleted

AT+CMGD=1,1 OK

Note: All READ messages from the preferred message storage are deleted

AT+CMGD=1,2 OK

Note: All READ messages and SENT mobile originated messages are deleted

AT+CMGD=1,3 OK

Note: All READ, SENT and UNSENT messages are deleted

AT+CMGD=1,4 OK

Note: All messages are deleted

Advertising
This manual is related to the following products: