Specifications
3GPPTS27.005ATCOMMANDSFORSMSANDCBS
135 HSPA+ATCommandsReferenceGuide
Note:Theorderinwhichthemessagesarereportedby+CMGL
correspondstotheirpositioninthememorystorage
Notes
ReferenceGSM27.005,3GPPTS23.040.
ReadMessage+CMGR
Executecommandreportsthemessagewithlocationvalue<index>from<memr>messagestorage(<memr>is
themessagestorageforreadanddeleteSMsaslastsettingsofcommand+CPMS).
TestcommandreturnstheOKresultcode.
Syntax
Command Commandtype
AT+CMGR=<index> Execute
AT+CMGR=? Test
ParametersandValues
<index> Messageindex.
Theoutputdependsonthelastsettingsofcommand+CMGF(messageformatto
beused).
PDUMode
Ifthereisamessageinlocation<index>,theoutputhasthefollowingformat:
+CMGR:<stat>,<alpha>,<length><CR>< LF><pdu>
Where
<stat> Statusofthemessage.
0 Newmessage.
1 Readmessage.
2 Storedmessagenotyetsent.
3 Storedmessagealreadysent.
<alpha>
Stringtype,alphanumericrepresentationof<da>or<oa>,correspondingtoan
entryfoundinthephonebook;usedcharactersetistheoneselectedwith
command+CSCS.
<length> LengthofthePDUinbyt
es.
<pdu> MessageinPDUformataccordingtoGSM3.40.
Thestatusofthemessageandentiremessagedataunit<pdu>isreturned
TextMode
IfthereisaReceivedmessageinlocation<index>theoutputformatis:
+CMGR:<stat>,<oa>,<alpha>,<scts>[,<tooa>,<fo>,<pid>,<dcs>,<sca>,<tosca>,<length>]<CR><LF><data>
Theinformationwritteninitalicsispresentdependingon+CSDHlastsetting.
IfthereiseitheraSentoranUnsentmessageinlocation<index>theoutputformatis: