Wavecom GSM Modem
This confidential document is the property of WAVECOM and may not be copied or circulated without permission
28
4.15. Write phonebook entiy +CPBW
This command writes phonebook entry in location number
<index>
in the
current phonebook memory storage.
Application to GSM
AT+CPBW=?
Test command
GSM to application
+CPBW: (1-50),20,(129,145),10
OK
50 locations, phone
length=20, TON/NPI of
129 or 145, text length=10
Application to GSM
AT+CPBW=3
Erase location 3
GSM to application
OK
Location 3 erased
Application to GSM
AT+CPBW=5,"112",129 ,"SOS"
Write at location 5
GSM to application
OK
Location 5 written
Application to GSM
AT+CPBW=5,"01290917",129,"Jacky"
Overwrite location 5
GSM to application
OK
Location 5 is overwritten
Application to GSM
AT+CPBW=,"+33145221100",145,"S
OS"
Write at the first free
location
GSM to application
OK
Free location is written
Application to GSM
AT+CPBW=,"0345221100",129,"SOS"
Write at the first free
location
GSM to application
+CME ERROR: 20
Phonebook full
Application to GSM
AT+CPBW=57,"112",129 ,"WM"
Write at loc 57 (wrong)
GSM to application
+CME ERROR: 21
Invalid index
Application to GSM
AT+CPBW=7,"012345678901234567
890",129 ,"WAVE"
Write at loc 7 a long Phone
number (21 digits)
GSM to application
+CME ERROR: 26
Phone too long
Application to GSM
AT+CPBW=7,"0122334455",129 ,"WA
VECOM TEL"
Write at loc 7 a long Text
(11 characters)
GSM to application
+CME ERROR: 24
Text too long