Cpbw – write phonebook entry – Westermo GDW-11 User Manual
Page 62

62 Phonebook commands
6615-2220
+CPBW – Write phonebook entry
Description:
This command writes a phonebook entry in location number <index> in the current
phonebook memory storage.
NOTE:
“RC” and “MC” phonebooks could be only erased by +CPBW. Adding field and/or
modifying field is not allowed for these phonebooks.
This command is not allowed for “EN”, “LD”, “MC”, “RC”, “MT”, “SN” phonebooks, which
can not be written.
If the AT+WCOS=1 command was used, the request would include the ‘Contact’
structure.
Syntax:
For ADN phonebook with AT+WCOS= 0
AT+CPBW=<index>[,<number>[,<type>[,<text>]]]
For ADN phonebook with AT+WCOS= 1
AT+CPBW=<index>[,<number>[,<type>[,<text> [,<Phb_group>]]]]
For ME phonebook with AT+WCOS=0
AT+CPBW=<index>[,<number>[,<type>[,<text>]]]
For ME phonebook with AT+WCOS=1
AT+CPBW=<index>[,<number>[,<type>[,<text>[,<Contact> [,<Phb_group>]]]]]
Parameters:
<index>
Integer type value depending on the capacity of the phonebook memory.
0:
value deletes all entries of the current phonebook (selected with +CPBS command)
NOTE:
To delete all entries of the current phonebook, +WCOS parameter must be different
from 0, elsewhere a +CME ERROR: 21 (invalid index) will be returned.
<number>
Phone number in ASCII format.
<type>
TON/NPI (Type of address octet in integer format).
NOTE:
Value is 145 if the dialing string (<number> response value) includes the international
access code character ‘+’, else value is 129 (ex: a <type> value of 17 will be written as
145).