OnCell G2150I AT Command SetShort Message Commands

but can be used in PDU mode (+CMGS).

SRR: Status Report Request, b5=1 if a status report is requested. This mode is supported.

VPF: Validity Period Format

b4=0 & b3=0 -> <vp> field is not present

b4=1 & b3=0 -> <vp> field is present in relative format Other formats (absolute & enhanced) are not supported.

RD: Reject Duplicates, b2=1 to instruct the SC to reject an SMS-SUBMIT for an SM still held in the SC which has the same <mr> and the same <da> as the previously submitted SM from the same <oa>

MTI: Message Type Indicator

b1=0 & b0=0 -> SMS-DELIVER (in the direction SC to MS) b1=0 & b0=1 -> SMS-SUBMIT (in the direction MS to SC)

In text mode <vp> is only coded in “relative” format. The default value is 167 (24 hours). This means that one byte can describe different values:

VP value

Validity period value

0 to 143

(VP + 1) x 5 minutes (up to 12 hours)

144 to 167

12 hours + ( (VP – 143) x 30 minutes )

 

 

168 to 196

(VP – 166) x 1 day

 

 

197 to 255

(VP – 192) x 1 week

 

 

<pid> is used to indicate the higher layer protocol being used or indicates inter-working with a certain type of telematic device. For example, 0x22 is for group 3 fax, 0x24 is for voice telephone, 0x25 is for ERMES (European Radio Messaging System).

<dcs> is used to determine the way the information is encoded. Compressed text is not supported. Only GSM default alphabet, 8 bit data and UCS2 alphabet are supported.

Delete Message: +CMGD

Description: This command is used to delete 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 also to Preferred Message Storage +CPMS command.

Command syntax:

AT+CMGD=<Index> [,<DelFlag>]

 

 

 

Command

 

Possible responses

 

 

+CMTI:”SM”,3

 

 

Note: New message received

 

 

 

AT+CMGR=3

 

+CMGR: “REC UNREAD”,”0146290800”,

Note: Read it

 

 

 

 

“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

 

OK

Note: Delete it

 

Note: Message deleted

 

 

 

7-14

Page 67
Image 67
Moxa Technologies G2150I manual Delete Message +CMGD, VP value Validity period value, AT+CMGR=3, AT+CMGD=3