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

Page 143: Syntax

Advertising
background image

3GPP TS 27.005 AT COMMANDS FOR SMS AND CBS

 

 

143 

HSPA+ AT Commands Reference Guide

 

Parameters and Values 

<index> 

Location value in the message storage <memw> of the message to send 

<da> 

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. 

<toda> 

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: <mr> 
where: 
<mr> ‐ message reference number. 
 
If message sending fails for some reason, an error code is reported: 
+CMS ERROR:<err> 

Notes 

„

To store a message in the <memw> 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: <mr> or +CMS ERROR: <err> response before issuing 
further commands. 

„

Reference: GSM 27.005. 

Delete Message   +CMGD 

Execute command deletes messages from memory <memr>. 

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

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

Syntax 

Command 

Command type 

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

Execute 

AT+CMGD=? 

Test 

Parameters and Values 

<index> 

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

<delflag> 

Integer indicating multiple message deletion request. 

If 0 or value omitted, delete message specified in <index>. 

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

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

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

Advertising