GSM/GPRS Module
M35 AT Commands Manual
M35_AT_Commands_Manual Confidential / Released 90 / 186
Example
+CMTI: "SM",3
// Indicates that new message has been received and saved
to
<index>=3
of “SM”
AT+CMGR=3
// Read message
+CMGR: "REC UNREAD","+8615021012496","","2010/09/25 15:06:37+32",145,4,0,241,"+8
613800210500",145,27
This is a test from Quectel
<fo>
Depending on the command or result code: first octet of GSM 03.40 SMS-DELIVER,
SMS-SUBMIT (default value is 17), SMS-STATUS-REPORT, or SMS-COMMAND (default
value is 2) in integer format
<length>
Integer type value indicating in the text mode (
+CMGF=1
) the length of the message body
<data>
(or
<cdata>
) in characters; or in PDU mode (
+CMGF=0
), the length of the actual
TP data unit in octets (i.e. the RP layer SMSC address octets are not counted in the length)
<mid>
GSM 03.41 CBM Message Identifier in integer format
<oa>
GSM 03.40 TP-Originating-Address Address-Value field in string format; BCD numbers (or
GSM default alphabet characters) are converted characters of the currently selected TE
character set (specified by
+CSCS
in TS 07.07); type of address given by
<tooa>
<pdu>
In the 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
number (e.g. octet with integer value 42 is presented to TE as two characters 2A (IRA 50
and 65))
In the case of CBS: GSM 03.41 TPDU in hexadecimal format
<pid>
GSM 03.40 TP-Protocol-Identifier in integer format (default value is 0)
<sca>
GSM 04.11 RP SC address Address-Value field in string format; BCD numbers (or GSM
default alphabet characters) are converted to characters of the currently selected TE
character set (specified by
+CSCS
in TS 07.07); type of address given by
<tosca>
<scts>
GSM 03.40 TP-Service-Centre-Time-Stamp in time-string format (refer to
<dt>
)
<stat>
PDU mode text mode
Explanation
0
"REC UNREAD" Received unread messages
1
"REC READ"
Received read messages
2
"STO UNSENT" Stored unsent messages
3
"STO SENT"
Stored sent messages
4
"ALL"
All messages
<toda>
GSM 04.11 TP-Destination-Address Type-of-Address octet in integer format (when first
character of
<da>
is + (IRA 43) default value is 145, otherwise default is 129)
<tooa>
GSM 04.11 TP-Originating-Address Type-of-Address octet in integer format (default refer
to
<toda>
)
<tosca>
GSM 04.11 RP SC address Type-of-Address octet in integer format (default refer to
<toda>
)
<vp>
Depending on SMS-SUBMIT
<fo>
setting: GSM 03.40 TP-Validity-Period either in integer
format (default value is 167) or in time-string format (refer to
<dt>
)