UMTS/HSPA Module Series
WCDMA UGxx AT Commands Manual
WCDMA_UGxx_AT_Commands_Manual Confidential / Released 122 / 247
Example
AT+CMGF=1
//Set SMS message format as text mode
OK
AT+CMGL="ALL"
//List all messages from message storage
+CMGL: 1,"STO UNSENT","",,
<This is a test from Quectel>
+CMGL: 2,"STO UNSENT","",,
<This is a test from Quectel>
OK
9.7. AT+CMGR Read Message
AT+CMGR write command returns SMS message with location value
<index>
from message storage
<mem1>
to the TE. If status of the message is "REC UNREAD", status in the storage changes to "REC
READ".
in hexadecimal format: ME/TA converts each octet of TP data unit into two IRA
character long hexadecimal number (e.g. octet with integer value 42 is presented to
TE as two characters 2A (IRA 50 and 65))3GPP TS 27.007
AT+CMGR Read Message
Test Command
AT+CMGR=?
Response
OK
Write Command
AT+CMGR=<index>
Response
TA returns SMS message with location value
<index>
from
message storage
<mem1>
to the TE. If status of the
message is "REC UNREAD", status in the storage changes to
"REC READ".
1) If text mode (
+CMGF=1
) and command is executed
successfully:
For SMS-DELIVER:
+CMGR:
<stat>,<oa>,[<alpha>],<scts>[,<tooa>,<fo>,<pid>,<dcs>,<
sca>,<tosca>,<length>]<CR><LF><data>
OK
For SMS-SUBMIT:
Quectel
Confidential