UMTS/HSPA Module Series
WCDMA UGxx AT Commands Manual
WCDMA_UGxx_AT_Commands_Manual Confidential / Released 129 / 247
Parameter
at>]]
<CR>
text is entered
<
ctrl-Z/ESC>
<ESC> quits without sending
2) If PDU mode (
+CMGF
=0):
AT+CMGW=<length>[,<stat>]
<CR>
PDU is given
<ctrl-Z/ESC>
Memory location
<index>
of the stored message is returned.
By default message status will be set to 'stored unsent', but
parameter
<stat>
also allows 'stored sent' status to be given.
If writing is successful:
+CMGW:
<index>
OK
If error is related to ME functionality:
+CMS ERROR: <err>
Maximum Response Time
300ms
Reference
3GPP TS 27.005
<da>
Destination address. 3GPP TS 23.040 TP-Destination-Address Address-Value field in
string format; BCD numbers (or GSM 7 bit default alphabet characters) are converted to
characters of the currently selected TE character set (refer to command
+CSCS
in
3GPP TS 27.007 ); type of address is given by
<toda>
<oa>
Originating address. 3GPP TS 23.040 TP-Originating-Address Address-Value field in
string format; BCD numbers (or GSM 7 bit default alphabet characters) are converted to
characters of the currently selected TE character set (refer to command
+CSCS
in TS
27.007); type of address given by
<tooa>
<tooa>
Type of originating address. 3GPP TS 24.011 TP-Originating-Address Type-of-Address
octet in integer format (default refer to
<toda>
)
<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>
Type of recipient address. 3GPP TS 24.011 TP-Recipient-Address Type-of-Address
octet in integer format
<length>
Message length. Integer type, 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)
<pdu>
In the case of SMS: 3GPP TS 24.011 SC address followed by 3GPP TS 23.04TPDU 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))
Quectel
Confidential