HUAWEI MU509 HSDPA LGA Module
AT Command Interface Specification
Short Message Service Commands
Issue 04 (2013-01-28)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
93
6.13 +CMGW–Store Message to Memory
6.13.1
Command Syntax
Command
Possible response(s)
If PDU mode (+CMGF=0):
+CMGW=<length>[,<stat>]<C
R>PDU is given<ctrl-Z/ESC>
If TEXT mode (+CMGF=1):
+CMGW[=<oa/da>[,<tooa/toda
>[,<stat>]]]<CR>
text is entered<ctrl-Z/ESC>
<CR><LF>+CMGW:
<index><CR><LF><CR><LF>OK<CR><LF>
In case of SMS-related error:
<CR><LF>+CMS ERROR: <err><CR><LF>
+CMGW=?
<CR><LF>OK<CR><LF>
6.13.2
Description
Store a message to the <mem2> storage set via the “+CPMS” command.
6.13.3
Defined Values
PDU mode:
<length>: number of actually sent TPDU characters/2.
<mr>: message ID. The digits are decimal numbers that range from 0 to 9. The value
range is: 0
–255.
<ctrl-Z>: identifies the end of a PDU data. The characters are: '0x1A'
<ESC>: cancels the sending of this message. The characters are: '0x1B'
<stat>: storage state of the message. The values are as follows: (In the PDU mode,
the default value is 2)
0
"REC UNREAD" received unread message
1
"REC READ" received read message
2
"STO UNSENT" stored unsent message
3
"STO SENT" stored sent message
4
"ALL"
all messages (T
his value is only applicable to the “+CMGL”
command)
<index>: position number in the storage. The digits are decimal numbers that range
from 0 to 9. The value range is 0~maximum capacity of storage-1.
The PDU packet structure is consistent with the description of the “+CMGS”
command.
TEXT mode: