AT command interface
Version 8 dated 15.03.00
76
Siemens Information and Communication Products
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 lengths may not be available in case of SIM storage. If storage does not offer format in-
formation, the format list should be empty parenthesis.
+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 execute command
Execute command
AT+CPBW = [<in-
dex>], [<number>,
[<type>, [<text>]]]
Response
TA writes phonebook entry in location number <index> in the current phonebook memory storage
selected with +CPBS. Entry fields written are phone number <number> (in the format <type>)
and text <text> associated with the number. If these fields are omitted, phonebook entry is deleted.
If <index> is left out, but <number> is given, entry is written to the first free location in the pho-
nebook (see note for MT phonebook). The string <number> may also contain letters, these are
stored as capitals.
Note:
PIN2 is necessary for writing in FD phonebook.
OK
If error is related to ME functionality:
+CME ERROR: <err>
Parameter
<nlength>
max. length of phone number
<tlength>
max. length of text for number
<index>
location number
<number>
phone number
<type>
type of number; e.g. 145 when dialling string includes international access code cha-
racter "+", otherwise 129
<text>
text for phone number
Note:
the following characters in <text> must be entered via the escape sequence:
GSM char.
Seq.
Seq.(hex)
Note
\
\5C
5C
35 43
(backslash)
"
\22
5C
32 32
(string delimiter)
BSP
\08
5C
30 38
(backspace)
NULL
\00
5C
30 30
(GSM null)
’0’ (GSM null) may cause problems on application level when using the
function (strlen) and should thus be represented by an escape sequence when
necessary
Reference
GSM 07.07
Note
In case of MT phonebook this command works equal. But take care in which physical phonebook
the entry is written: Unless the ME phonebook is full, the entry is written in the ME phonebook. If
the ME phonebook is full, the entry is written in the SM phonebook. ME Phonebook data is only
stored if unit is shut down using the
“AT^SMSO Switch off mobile station turn off”
command.