Phonebook read +cpbr, Phonebook search +cpbp – Multi-Tech Systems CDMA Wireless Modem User Manual

Page 85

Advertising
background image

Chapter 12 – Phone Book Commands

Multi-Tech Systems, Inc. CDMA Wireless AT Commands - PN S000294C

85

Phonebook Read +CPBR

Description: This command returns phonebook entries from a range of locations from the currently

selected phonebook.

When the “MT” phonebook is selected, a request for the range 95 through 105 will return
locations 95 through 100 of the “ME” phonebook and locations 1 through 5 of the “SM”
phonebook (“MT” phonebook locations 101 through 105).

Note: There are only 9 entries total in the Emergency Numbers phonebook (1 – 9).

Syntax:

Command syntax: AT+CPBR=<first>[,last]

Command

Possible Responses

AT+CPBR=1

+CPBR:1,”6185551212”,145,”test”

AT+CPBR=1,3
Note: Read location 1 to 3 and return and data they
may contain. Only 10 entries starting at the first entry
are displayed. User can enter command multiple
times with different indices.

+CPBR:1,”6185551212”,145,”test1”
+CPBR:2,”6185551212”,129,”test2”
+CPBR:3,”6185551212”,115,”test3”
Note: The MSB of the TON/NPI is ALWAYS set high

AT+CPBR=12,1
Note: <x,y> where x<y

ERROR
Note: Invalid range x>y

AT+CPBR=300

+CMEE:21
Note: Invalid index

Note 1: When the range is more than 10, only the first 10 hit entries will be displayed.
Note 2: For the LD, MC, and RC phonebooks, the TON/NPI number will not be displayed.

Phonebook Search +CPBP

Description: This searches the currently selected phonebook for a phone number match and returns the

entry if found. The search looks for the exactly number string match.
When the “MT” phonebook is selected, the search operation searches the “ME” portion first
followed by the “SM” portion.

Syntax:

Command syntax: AT+CPBP= ”<phone number>”

Command

Possible Responses

AT+CPBP= ”8585551212”
Note: Find ”8585551212” in
current phonebook if it exists.

+CPBP=1,”8585551212”,145,”FullBook”
OK
Note: ME phone book previously selected. Display the entry that
matches.

AT+CPBP=”123”

+CME ERROR: 22
Note: Entry not found

Note: The phone number to search should match that stored in phone book. Partial number
searching is not supported and will return an error.

Advertising