GSM/GPRS Module
M35
AT Commands Manual
M35
_AT_Commands_Manual Confidential / Released
95
/
186
Parameter
AT+CMGC=?
OK
Write Command
1) If text mode (
+CMGF=1
):
AT+CMGC=<fo>[,<ct>,<pid>,<mn>,<d
a>,<toda>]<CR>
text is entered
<ctrl-Z/ESC>
ESC quits without sending
2) If PDU mode (
+CMGF=
0):
AT+CMGC=<length>
<CR>
PDU is given
<ctrl-Z/ESC>
Response
TA transmits SMS command message from a TE to the
network (SMS-COMMAND). Message reference value
<mr>
is returned to the TE on successful message delivery. Value
can be used to identify message upon unsolicited delivery
status report result code.
1) If text mode(
+CMGF=1
) and sent successfully:
+CMGC:
<mr> [,<scts>]
OK
2) If PDU mode(
+CMGF=0
) and sent successfully:
+CMGC: <mr> [,<ackpdu>]
OK
3)If error is related to ME functionality:
+CMS ERROR: <err>
Reference
GSM 07.05
<fo>
First octet of GSM 03.40 SMS-COMMAND (default value is 2) in integer format
<ct>
GSM 03.40 TP-Command-Type in integer format (default value is 0)
<pid>
GSM 03.40 TP-Protocol-Identifier in integer format (default value is 0)
<mn>
GSM 03.40 TP-Message-Number in integer format
<da>
GSM 03.40 TP-Destination-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
<toda>
<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 value is 129)
129 Unknown type(IDSN format number)
145 International number type(ISDN format )
<length>
Integer type value indicating 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)
<mr>
GSM 03.40 TP-Message-Reference in integer format
<scts>
GSM 03.40 TP-Service-Centre-Time-Stamp in time-string format (refer to
<dt>
)
<ackpdu>
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