Write Phonebook Entry +Cpbw - Multitech MMCModem GPRS (MTMMC-G) Reference Manual

Wireless gsm/gprs modems at commands reference guide
Table of Contents

Advertisement

Write Phonebook Entry +CPBW

Description:
This command writes a phonebook entry in location number <index> in the current phonebook memory
storage.
Notes:
Values:
<index>
<number>
<type>
<text>
<contact>
<Phb_Group>
Syntax:
Command Syntax:
For ADN phonebook with AT+WCOS=0
For ADN phonebook with AT+WCOS=1
For the Mobile Equipment phonebook with AT+WCOS=0
For the Mobile Equipment phonebook with AT+WCOS=1
Command
AT+CPBS="SM"
Note: ADN phonebook
AT+CPBS?
Note: Which phonebook is selected
AT+WCOS=0
Note: phonebook not extended
AT+CPBW=?
Note: Test command
AT+CPBW=5,"112",129,"SOS"
Note: Write at location 5
AT+CPBR=5
Note: Read the entry at location 5
AT+CPBS?
Note: Which phonebook is selected
Multi-Tech Systems, Inc. Wireless GSM/GPRS AT Commands (Document Number S000293I)
"RC" and "MC" phonebooks could be erased only by +CPBW. Adding a field and/or modifying a
field is not allowed for these phonebooks.
This command is not allowed for "EN", "LD", "MC", "RC", "MT", and "SN" phonebooks (they
cannot be written).
If the AT+WCOS=1 command was used, the request would include the "Contact" structure.
Integer type value depending on the capacity of the phonebook memory.
Phone number in ASCII format.
TON/NPI (Type of address octet in integer format).
Note:
The value is 145 if the dialing string (<number> response value) includes the
international access code character +; otherwise, the value is 129 (Example: a <type>
value of 17 will be written as 145).
String type. Maximum length of <text> field is:
For the Mobile Equipment phonebook, 30 ASCII characters.
For the ADN phonebook, SIM dependent (use AT+CPBW=?)
Notes:
For the <text> parameter all strings starting with "80", "81" or "81" are
considered in UCS2 format.
The +CSCS (Select Character Set) command does not affect the format for
phonebook entries.
Contact structure.
Phonebook group number in which the entry should be saved.
The range is 1 to 10. If the entry must not be saved in a group, <Phb_Group> = 0 or
can be omitted.
AT+CPBW=<index>[,<number>[,<type>[,<text>]]]
AT+CPBW=<index>[,<number>[,<type>[,<text> [,Phb_group>]]]]
AT+CPBW=<index>[,<number>[,<type>[,<text>]]]
AT+CPBW=<index>[,<number>[,<type>[,<text> [<contact> [,Phb_group>]]]]]
Chapter 8 – Phonebook Commands
Possible responses
OK
+CPBS:"SM",1,10
OK
Note: ADN phonebook is selected, 1 location is
used and 10 locations are available.
OK
+CPBW: (1-50),20,(129,145),10
OK
Note: 50 locations, phone number = 20 digits max,
TON/NPI of 129 or 145, text length = 10
OK
Note: Location 5 written
+CPBR=5,"112",129,"SOS"
Note: Location 5 written
+CPBS:"SM",2,10
OK
Note: ADN phonebook is selected, 2 locations are
used and 10 locations are available.
49

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents