AT Command

Description

AT+CPBR AT command returns entries from the device's phonebook.

Usage
Command Possible response(s)
+CPBR=[,] [+CPBR: ,,,[,][,][,][,][,][,][,][,]] [[...] [+CPBR: ,,,[,][,][,][,][,][,][,][,]]] +CME ERROR: 
+CPBR=? +CPBR: (list of supporteds),[],[],[],[],[],[],[] +CME ERROR: 

Examples

Read all entries but only the ones set are returned
AT+CPBR=1,99
+CPBR: 1,"931123456",129,"Ilkka"
+CPBR: 2,"9501234567",129,""
+CPBR: 4,"901234567",129,"Hesari"
OK

Read the phone book entry 1
AT+CPBR=1
+CPBR: 1,"931123456",129,"Ilkka"

KeywordsAT+CPBR syntax, examples, parameters, error, input, response.

With Online AT Command Tester tool, you can read all the phonebook entries stored on the device.

Users can also test the AT command under the ‘Command Mode’ tab of the AT Command Tester.



Try this script included in AT Command Tester Tool.

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

//Script-at_cpbr.at

//Test AT+CPBR AT command

//AT+CPBR command is used to read phone book entries from the device

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

 

//List of supported responses

//Returns range supported by current storage, maximum lengths of number and text fields

AT+CPBR=?

 

//WAIT for 1 sec

WAIT=1

 

//Read Phonebook at index 1

AT+CPBR=1

 

//WAIT for 1 sec

WAIT=1

 

//Let us add a Phonebook entry with national number type

AT+CPBW=,"8589898844",129,"John Smith"

 

//WAIT for 1 sec

WAIT=1

 

//Now read phonebook entry at index 1

AT+CPBR=1

 

//WAIT for 1 sec

WAIT=1

 

//Let us add another  Phonebook entry with international number type

AT+CPBW=,"0018589898844",145,"John Smith"

 

//WAIT for 1 sec

WAIT=1

 

//Now read phonebook entry at index 2

AT+CPBR=1,2

 

//WAIT for 1 sec

WAIT=1

 

//Now read all phone book entries

AT+CPBR=1,50

 

//WAIT for 1 sec

WAIT=1


Output of above script in AT Command Tester Tool.

 AT+CPBR=?

+CPBR: (1-50),40,30

 

OK

AT+CPBR=1

OK

No phonebook entries found in the device.

 

 

AT+CPBW=,"8589898844",129,"John Smith"

OK

Phonebook sucessfully updated

 

AT+CPBR=1

+CPBR: 1,"8589898844",129,"John Smith"

 

OK

AT+CPBW=,"0018589898844",145,"John Smith"

OK

Phonebook sucessfully updated

 

AT+CPBR=1,2

+CPBR: 1,"8589898844",129,"John Smith"

 

+CPBR: 2,"+0018589898844",145,"John Smith"

 

OK

 

AT+CPBR=1,50

+CPBR: 1,"8589898844",129,"John Smith"

 

+CPBR: 2,"+0018589898844",145,"John Smith"

 

OK