Chapter 8 – Phonebook Commands
Multi-Tech Systems, Inc. Wireless GSM/GPRS AT Commands (Document Number S000293I) 47
Read Phonebook Entries +CPBR
Description: This command returns phonebook entries for a range of locations from the current phonebook memory
storage selected with +CPBS.
Note: For all phonebook read commands (+CPBR, +CPBF, +CPBN, +CPBP, +CNUM), the
TON/NPI MSB of each number is set to 1 (ex: a TON/NPI stored as 17 is displayed as 145).
If the AT+WCOS =1 command has been used, the response will include <Contact> structure.
Values: <first_entry>,<last_entry> Location or range of locations of the phonebook entry or entries.
<type (TON/NP)> Type of address byte in integer format. Value is 145 if the dialing string (<number>
response value) includes the international access code character + ; otherwise, the
value is 129.
Syntax: Command Syntx: AT+CPBR
Response Syntax:
The entry is stored in the ADN phonebook and AT+WCOS=0
<CR><LF>+CPBR: <loc>,<num>,<type>,<name>
[<CR><LF>+CPBR: <loc>,<num>,<type>,<name>[...]]
The entry is stored in the ADN phonebook and AT+WCOS=1
<CR><LF>+CPBR: <loc>,<num>,<type>,<name>,<Phb_group>
[<CR><LF>+CPBR: <loc>,<num>,<type>,<name>,<Phb_group>[...]]
The entry is stored in the Mobile Equipment phonebook and AT+WCOS=0
<CR><LF>+CPBR: <loc>,<num>,<type>,<name>
[<CR><LF>+CPBR: <loc>,<num>,<type>,<name>[...]]
The entry is stored in the Mobile Equipment phonebook and AT+WCOS=1
<CR><LF>+CPBR: <loc>,<num>,<type>,<name>,<Contact>,<Phb_group>
[<CR><LF>+CPBR: <loc>,<num>,<type>,<name>,<Contact>, <Phb_group>[...]]
Command Possible responses
AT+CPBR=?
Note: Test command +CPBR: (1-50),20,10
OK
Note: 50 locations (from 1 to 50), max length for phone number is 20
digits, 10 characters max for the text
AT+WCOS?
Note: Test command +WCOS: 0
OK
Note: Contact not selected
AT+CPBR=12,14
Note: Read entries from 12
to 14
+CPBR: 12,”112”,129,”Emergency”
+CPBR: 13,”+331290909”,145,”Fred”
+CPBR: 14,”0146290808”,129,”Zazi”
OK
Note: Display locations 12,13,14 with location, number, type
(TON/NPI), Text
AT+CPBR=10
Note: Read entry 10 +CPBR:10,”0146290921”,129,”Rob”
OK
Note: Display location 10
AT+CPBR=11
Note: Read entry 11 (UCS2
format)
+CPBR:11,”0146290921”,129,”8000010002FFFF”
OK
Note: Display location 11
AT+CPBR=52
Note: Read entry 52 (wrong) +CME ERROR: 21
Note: Invalid index
AT+CPBS=”ME”
Note: Flash memory OK
AT+WCOS=1
OK
Note: Contact selected
AT+CPBR=13
Note: Read entry +CPBR:13,”+331290909”,145,”Fred”,
”0141284549”, 129, “0600003210”, 129, ”0141280000”, 129,
“019876543210”, 129,
fred@mail_address.com, “Becker Street London”,1
OK
Note: Display locations 13 with location, number, type (TON/NPI), Text
and Contact and Phonebook Group n1