LTE Module Series
EC25&EC21 AT Commands Manual
EC25&EC21_AT_Commands_Manual 125 / 231
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
The Read 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”.
to rules of
Annex A
in
3GPP TS 27.007
.
- I
f TE character set is “HEX”: ME/TA converts each 7-bit character of the GSM 7 bit
default alphabet into two IRA character long hexadecimal number.
- If
<dcs>
, indicates that 8-bit or UCS2 data coding scheme is used: ME/TA converts
each 8-bit octet into two IRA character long hexadecimal number.
<pdu>
In the case of SMS: 3GPP TS 24.011 SC address followed by 3GPP TS 23.040 TPDU
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.
<mem1>
Messages to be read and deleted from this memory storage
“SM”
(U)SIM message storage
“ME”
Mobile equipment message storage
“MT”
Same as “ME” storage
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”.
If in text mode (
AT+CMGF=1
) and the command is executed
successfully: