Huawei MG323 Recording Equipment User Manual


 
HUAWEI MG323 GSM M2M Module
AT Command Interface Specification Commands for the Phone Book
Issue 02 (2010-11-23)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
189
13.3.2 Reading the Current Memory of the Phone Book
Read
command
AT+CPBS?
Function
Reads the current memory of the phone book.
Response
z
In case of successful execution:
<CR><LF>+CPBS:
<storage>[,<used>,<total>]<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 MT: <CR><LF>+CME ERROR:
<err><CR><LF>
Parameter description
<used>: integer value, which indicates the number of used entries in the currently
selected memory.
<total>: integer value, which indicates the maximum number of entries in the
currently selected memory.
13.3.3 Setting the Memory Type of the Phone Book
Write
command
AT+CPBS=<storage>
Function
Sets the memory type of the phone book.
Response
z
In case of successful execution: <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 MT: <CR><LF>+CME ERROR:
<err><CR><LF>
13.3.4 Examples
Example 1:
AT+CPBS=?
+CPBS: (“FD”,”SM”,”ON”,”LD”,”MC”,”RC”,”EN”)
OK
Example 2: