AT Commands Phone Terminal Terminated 99
AT+CMGR Read Message
<alpha>: String; left empty, but not omitted (commas mark the place where it should be). The
character set used is selected with AT+CSCS.
<length>: Integer; with AT+CMGF=’0’, this value indicates the length of the actual TP data
unit (in octet units).
<pdu>: In case of SMS: GSM 04.11 SC address followed by GSM 03.40 TPDU in
hexadecimal format. ME/TA converts each octet of TP data unit into two
IRA-character long hexadecimal numbers.
In case of CBS: GSM TPDU in hexadecimal format.
<mem1>: Memory from which messages are read and deleted (see AT+CMGL, AT+CMGR, and
AT+CMGD).
<mem1> Description
“ME” ME message storage
“SM” SIM message storage
“TL” Template message storage
Description: Returns messages with location value <index> from preferred message storage
<mem1> to the TE. If the status of the message is ‘received unread’, the status in the
storage changes to ‘received read’. If reading fails, +CMS ERROR is returned.
Execution command: AT+CMGR=<index>
Execution command
response:
+CMGR: <stat>,[<alpha>],<length>
<pdu>
Test command: AT+CMGR=? Shows if the command is supported.
Parameters:
<index>: Integer; value in the range of location numbers supported by the associated memory.
<stat>:
<stat> Description
0 Received unread (new) message
Default setting
1 Received read message
2 Stored unread message (only applicable to SMs)
3 Stored sent message (only applicable to SMs)
16 Template message
<alpha>: String; left empty but not omitted (commas mark the place where it should be). The
character set used is selected with AT+CSCS.
<length>: Integer; with AT+CMGF=’0’, this value indicates the length of the actual TP data
unit (in octet units).
<pdu>: In case of SMS: GSM 04.11 SC address followed by GSM 03.40 TPDU in
hexadecimal format. ME/TA converts each octet of TP data unit into two
IRA-character long hexadecimal numbers.
In case of CBS: GSM TPDU in hexadecimal format.
<mem1>:
<mem1> Description
“ME” ME message storage