Multi-Tech Systems GPRS (MTMMC-G) Benutzerhandbuch

Seite von 203
Chapter 8 – Phonebook Commands  
Multi-Tech Systems, Inc. Wireless GSM/GPRS AT Commands (Document Number S000293I) 
52 
 
Find Phonebook Entries   +CPBF 
Description: 
This command returns phonebook entries with alphanumeric fields starting with a given string. The 
AT+CPBF= “” command can be used to display all phonebook entries sorted in alphabetical order.  
 
This command is not allowed for "LD", "RC", "MC" phonebooks and for the “EN” phonebook, which 
does not contain alphanumeric fields.  
 
It is possible to use this command with UCS2 strings. If a wrong UCS2 format is entered, the string is 
considered as an ASCII string. 
Values: 
<string>   Searched pattern string (depends on the format of the data stored in the phonebooks) 
 <loc> 
Location number (20 digits maximum)
 
 <num> 
Phone number
 (20 digits maximum)  
 <type> 
TON/NPI (Type of address byte in integer format) 
 <contact> 
Extended contact structure 
Syntax:   
Command Syntax:  AT+CPBF=<string> 
 Response 
Syntax: 
 
• 
The entry is stored in the ADN phonebook and AT+WCOS=0 
<CR><LF> +CPBF=<loc>,<num>,<type>,<name> 
• 
The entry is stored in the ADN phonebook with AT+WCOS=1 
 <CR><LF> 
+CPBF=<loc>,<num>,<type>,<name>,<Phb_group> 
• 
The entry is stored in the Mobile Equipment phonebook with AT+WCOS=0 
 <CR><LF> 
+CPBF=<loc>,<num>,<type>,<name> 
• 
The entry is stored in the Mobile Equipment phonebook with AT+WCOS=1 
 <CR><LF> 
+CPBF=<loc>,<num>,<type>,<name>,<Contact>,<Phb_group> 
Command 
Possible responses
AT+CPBF=? 
Note: Test command 
+CPBF: 20,10 
OK 
Note: Maximum length for a phone number is 20 digits; 14 characters for 
the text 
AT+CPBF=“E” 
Note: Read entries with “E” 
+CPBF: 12,”112”,129,”Emergency” 
+CPBF: 15,”+331290101”,145,”Eric” 
OK 
Note: Display locations with text field starting with “E” 
AT+CPBF=”H” 
Note: Read entries with “H” 
+CME ERROR: 22 
Note:  Entry not found 
AT+CPBF=”800001” 
Note: Read entries starting with 
0001 UCS2 character 
+CPBF: 11, ”0146290921”,129,”8000010002FFFF” 
OK 
Note: Display locations with text field starting with 0001 UCS2 character 
AT+CPBF=”8045C” 
Note: Read entries with “8045C” 
(ASCII format) 
+CME ERROR: 22 
Note: Entry not found. The string has a wrong UCS2 format; it is therefore 
considered as an ASCII string 
AT+CPBS=”SM” 
Note: ADN phonebook 
OK 
AT+WCOS=0 
Note: Phonebook not extended 
OK 
 
AT+CPBF=”Test” 
Note: Read entries with “Test” 
+CPBF: 1,”0123456789”,129,”Test ADN” 
Note: Display locations with text field starting with “Test” 
AT+WCOS=1 
Note: Phonebook extended 
OK 
 
AT+CPBF=”Test” 
Note: Read entries with “Test” 
+CPBF: 1,”0123456789”,129,”Test ADN”,0 
Note: Display locations with text field starting with “Test”, extended entry. 
AT+CPBS=”ME” 
Note: ADN phonebook 
OK 
AT+WCOS=0 
Note: Phonebook not extended 
OK 
 
AT+CPBF=”Test” 
Note: Read entries “Test” 
+CPBF: 1,”0123456789”,129,”Test ME” 
Note: Display locations with text field starting with “Test” 
AT+WCOS=1 
Note: Phonebook extended 
OK 
 
AT+CPBF=”Test” 
Note: Read entries with “Test” 
+CPBF: 1,”0123456789”,129,”Test 
ME”,”9876543210”,129,””,””,””,email@mail_address.com, 
”post address’,0 
Note: Display locations with text field starting with “Test”, extended entry.