HUAWEI MG323 GSM M2M Module

 

AT Command Interface Specification

Commands for the Phone Book

13.1.2 +CPBR - Command for Reading the Phone Book

Write

AT+CPBR=<index1>[,<index2>]

command

 

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:

zWhen only one parameter is entered, one phone book record specified by the parameter is returned.

zWhen 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.

z145: The telephone number contains the international access code +.

z129: 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

Issue 02 (2010-11-23)

Huawei Proprietary and Confidential

185

Copyright © Huawei Technologies Co., Ltd.

 

 

Page 202
Image 202
Huawei MG323 manual 13.1.2 +CPBR Command for Reading the Phone Book, At+Cpbr=?, Crlf+Cpbr