Siemens MC35 User Manual

Page of 256
AT Command Set
 
 
 
 
 
 
 
MC35_ATC_01_V05.00 
Page 110 of 256 
15.07.2002 
 
4.34  AT+CPBW  Write phonebook entry 
Test command 
AT+CPBW=? 
Response 
TA returns location range supported by the current storage, the maximum 
length of <number> field, supported number formats of the storage and the 
maximum length of <text> field. 
Note: The length may not be available while SIM storage is selected. If storage 
does not offer format information, the format list should be empty parenthe-
sises. 
 
+CPBW:
  (list of supported <index>s),  <nlength>, (list of supported <type>s), 
<tlength> OK 
If error is related to ME functionality: 
+CME ERROR: <err> 
 
Parameter 
See write command. 
Write command 
AT+CPBW= 
[<index>] 
[,<number> 
[[,<type>] 
[,<text>]]] 
This command writes a phonebook entry to the memory location <index> of the 
active memory.  
The memory location number <index> is followed by the phone number <num-
ber>
 (in the format <type>) and the associated <text>.  
If writing fails, an ME error +CME ERROR: <err> is returned. 
 
Parameter 
<index> 
Location number within phonebook memory, total range is given 
in test command response 
<number> 
Phone number, maximum length is given as <nlength> in test 
command response  
<type> 
Type of phone number (address octet in integer format); 145 when 
dialling string includes international access code character “+”, 
otherwise 129 (refer GSM 04.08 subclause 10.5.4.7)
 
<text> 
Text assigned to the phone number, maximum length is given in 
test command response <tlength>. Character set as specified with 
+CSCS. See note below. 
<nlength> 
Max. length of phone number, normally 20, for a small number of 
locations 40 
<tlength> 
Max. length of text assigned to phone number (depending on 
storage type 16 - 18 characters including blanks) 
Response 
OK/ERROR/+CME ERROR 
 
To delete a phonebook entry simply enter the location number: 
AT+CPBW=<index> 
 
To write a phonebook entry to the first free location number: 
AT+CPBW=,<number>,<type>,<text> 
 
Reference 
GSM 07.07 
Note 
If  <text> contains characters which are coded differently in ASCII and GSM 
(e.g. Ä, Ö, Ü), these characters have to be entered via escape sequences as 
described in Chapter 1.5.