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.
185
13.1.2 +CPBR - Command for Reading the Phone Book
Write
command
AT+CPBR=<index1>[,<index2>]
Function
Reads the currently selected phone book records between the index1
and index2 locations in the phone book memory.
Response
z
In case of successful execution:
[<CR><LF>+CPBR: <index1>,<number>,<type>
[<CR><LF>+CPBR:
<index2>,<number>,<type>,<text>[...]<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>
Note:
z
When only one parameter is entered, one phone book record specified by the parameter is
returned.
z
When two parameters are entered, all phone book records between the two indexes are
returned.
Parameter description
<number>: string, which indicates the phone number.
<type>: number type. The value 145 indicates an international phone number.
z
145: The telephone number contains the international access code +.
z
129: The telephone number does not contain +.
<text>: string, which indicates the name whose maximum length is <tlength>. The
character type is specified by the AT+CSCS command.
13.1.3 Examples
Example 1:
Check the available phone book indexes and the supported length of phone number
and name.
AT+CPBR=?
+CPBR: (1-250),40,16
OK
Example 2:
List all phone book records between index values 10–13.
AT+CPBR=10,13