beautypg.com

Parameters and values, Notes, Delete message +cmgd – Synaccess Networks NP-0801DTM User Manual

Page 143: Syntax

background image

3GPP TS 27.005 AT COMMANDS FOR SMS AND CBS

 

 

143 

HSPA+ AT Commands Reference Guide

 

Parameters and Values 

 

Location value in the message storage  of the message to send 

 

Destination address, string type represented in the currently selected character 
set (see +CSCS); if given it is used instead of the one stored with the message. 

 

Type of destination address. 

129 

number in national format 

145 

number in international format (contains the "+") 

 

If message is successfully sent to the network then the result is sent in the format:
+CMSS:  
where: 
 ‐ message reference number. 
 
If message sending fails for some reason, an error code is reported: 
+CMS ERROR: 

Notes 

„

To store a message in the  storage see command +CMGW. 

„

Make sure that no other SIM interacting commands are issued during command execution. Execution may take 
several seconds. 

„

To avoid malfunctions is suggested to wait for the +CMSS:  or +CMS ERROR:  response before issuing 
further commands. 

„

Reference: GSM 27.005. 

Delete Message   +CMGD 

Execute command deletes messages from memory 

Test command shows the valid memory locations and optionally the supported values of 

+CMGD: (supported s list)[,(supported s list)] 

Syntax 

Command 

Command type 

AT+CMGD=[,

Execute 

AT+CMGD=? 

Test 

Parameters and Values 

 

Message index in the selected storage . Can have values from 1 to N, 
where N depends on the available space. See +CPMS. 

 

Integer indicating multiple message deletion request. 

If 0 or value omitted, delete message specified in 

Delete all read messages from  storage, leaving unread messages and 
stored mobile originated messages (whether sent or not) untouched 

Delete all read messages from  storage and sent mobile originated 
messages, leaving unread messages and unsent mobile originated messages 
untouched. 

Delete all read messages from  storage, sent and unsent mobile 
originated messages, leaving unread messages untouched.