Notes, Read message +cmgr, Syntax – Synaccess Networks NP-0801DTM User Manual

Page 135: Parameters and values, Pdu mode, Text mode

Advertising
background image

3GPP TS 27.005 AT COMMANDS FOR SMS AND CBS

 

 

135 

HSPA+ AT Commands Reference Guide

 

Note: The order in which the messages are reported by +CMGL 
corresponds to their position in the memory storage 

Notes 

„

Reference GSM 27.005, 3GPP TS 23.040. 

Read Message   +CMGR 

Execute command reports the message with location value <index> from <memr> message storage (<memr> is 
the message storage for read and delete SMs as last settings of command +CPMS). 

Test command returns the OK result code. 

Syntax 

Command 

Command type 

AT+CMGR=<index> 

Execute 

AT+CMGR=? 

Test 

Parameters and Values 

<index> 

Message index. 

 

The output depends on the last settings of command +CMGF (message format to 
be used). 

PDU Mode 

If there is a message in location <index>, the output has the following format: 

+CMGR: <stat>,<alpha>,<length><CR><LF><pdu> 

Where 

<stat>

 

Status of the message.

 

New message. 

Read message. 

Stored message not yet sent. 

Stored message already sent. 

<alpha> 

String type, alphanumeric representation of <da> or <oa>, corresponding to an 
entry found in the phonebook; used character set is the one selected with 
command +CSCS. 

<length> 

Length of the PDU in bytes. 

<pdu> 

Message in PDU format according to GSM 3.40. 

 

The status of the message and entire message data unit <pdu> is returned 

Text Mode 

If there is a Received message in location <index>  the output format is: 

+CMGR: <stat>,<oa>,<alpha>,<scts>[,<tooa>,<fo>,<pid>,<dcs>,<sca>,<tosca>,<length>]<CR><LF><data> 

The information written in italics is present depending on +CSDH last setting. 

If there is either a Sent or an Unsent message in location <index> the output format is: 

Advertising