Specifications
3GPPTS27.005ATCOMMANDSFORSMSANDCBS
133 HSPA+ATCommandsReferenceGuide
ListMessages+CMGL
Executecommandreportsthelistofallthemessageswithstatusvalue<stat>storedinto<memr>message
storage.<memr>isthemessagestorageforreadanddeleteSMsaslastsettingsofcommand+CPMS.
Theparametertypeandthecommandoutputdependonthelastsettingsofcommand+CMGF (messageformat
tobeused
).
Testcommandreturnsalistofsupported<stat>s
Syntax
Command Commandtype
AT+CMGL[=<stat>] Execute
AT+CMGL=? Test
ParametersandValuesPDUMode
PDUmodeisusedwhenthedeviceissettoPDUmodebycommandAT+CMGF=0.
<stat>
0 Newmessage.
1 Readmessage.
2 Storedmessagenotyetsent.
3 Storedmessagealreadysent.
4 Allmessages.
Ifthereisatleastonemessagetobelistedtherepresentationformatis:
+CMGL:<index>,<stat>,<alpha>,<length><CR><LF><pdu>[<CR><LF>
+CMGL:<index>,<stat>,<alpha>,<length><CR><LF><pdu>[...]]
where:
<index>‐messagepositioninthememorystoragelist.
<stat>‐statusofthemessage
<alpha>‐
Stringtypealphanumericrepresentationof<da>or<oa>,
correspondingtoanentryfoundinthephonebook;usedcharactersetistheone
selectedwithcommand+CSCS.
<length>‐lengthofthePDUinbytes
<pdu>‐messageinPDUformataccordingtoGSM3.40
ParametersandValuesTextMode
TextmodeisusedwhenthedeviceissettoPDUmodebycommandAT+CMGF=1.
<stat>
"RECUNREAD" Newmessage
"RECREAD" Readmessage
"STOUNSENT" Storedmessagenotyetsent
"STOSENT" Storedmessagealreadysent
"ALL" Allmessages
Therepresentationformatforstoredmessages(eithersentorunsent)
orreceivedmessages(eitherreadorunread,notmessagedelivery
confirm)is(theinformationwritteninitalicsispresentde
pendingon
+CSDHlastsetting):