Huawei MG323 Recording Equipment User Manual


 
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification Commands for Short Messages
Issue 02 (2010-11-23)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
173
11.9.3 Setting the Storage Location
Write
command
AT+CPMS=<mem1>[,<mem2>[,<mem3>]]
Function
Sets the storage media on which the operations of reading and writing
short messages are performed.
Response
z
In case of successful execution:
<CR><LF>+CPMS:
<used1>,<total1>,<used2>,<total2>,<used3>,<total3><CR><LF>
<CR><LF>OK<CR><LF>
z
In case of an error during command execution:
<CR><LF>ERROR<CR><LF>
z
In case of an error related to the MS: <CR><LF>+CMS ERROR:
<err><CR><LF>
11.9.4 Examples
Example 1:
Read the current status of storage location.
AT+CPMS=?
+CPMS: (“SM”), (“SM”), (“SM”)
OK
Example 2:
Check the available storage location of short messages.
AT+CPMS?
+CPMS: “SM”,12,20, “SM”,12,20, “SM”,12,20
OK
Example 3:
Set the first storage location of short message to SM.
AT+CPMS=“SM”
+CPMS: 12,20,12,20,12,20
OK
11.10 AT+CSCA - Command for Setting the Number of the
SMSC
The AT+CSCA command sets the number of the SMSC. For short messages in PDU
mode, the settings performed through this command are used only when sc_len=0