Specifications
AT Command Set
TC35-ATC-01-V02.10 Page 73/145 02.10 / 23.05.2001
4.30 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 in case of SIM storage. If storage does not
offer format information, the format list should be empty parenthesises.
+CPBW: (list of supported <index>s), <nlength>, (list of supported <typ>s),
<tlength> OK
If error is related to ME functionality:
+CME ERROR: <err>
Parameter
See write command.
Write command
AT+CPBW=
[<index>]
[,<number>
[[,<typ>]
[,<text>]]]
Write the phonebook entry selected by <index> in the current phonebook
(selected by +CPBS). Entry fields written are the phone number <number> (in
the format <type>) and the <text> associated with the number. If both fields
are omitted, the phonebook entry is deleted. If <index> is left out, but
<number> is given, the entry is written to the first free location in the phonebook
(the implementation of this feature is manufacturer specific). If writing
fails, an ME error, +CME ERROR: <err> is returned.
Parameter
<nlength> Max. length of telephone number, normally 20, for a small number
of locations 40
<tlength> Max. length of text corresponding to the telephone number
<index> Location number within phonebook memory,
range is given in test command response
<number> Phone number,
range is given in test command response <nlength>
<typ> Type of number (refer GSM 04.08 subclause 10.5.4.7)
<text> Text corresponding to the telephone number,
range is given in test command response <tlength>,
character set as specified by +CSCS. See note below.
Response
OK/ERROR/+CME ERROR
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 „Supported character sets“, pg. 10.