Chapter 12 – Phone Book Commands

Write Phonebook Entry +CPBW

Description: This command writes a phonebook entry to location <index> in the current phonebook selected with the +CPBS command.

If the “MT” phonebook is selected, <index> is in the range of the combined “ME” and “SM” phonebooks. When using auto address mode (<index> not specified in the command), the “ME” phonebook is accessed first for an available location. If a location is not available in the “ME” phonebook, the “SM” phonebook is accessed.

The +WSPC command must be issued with a valid SPC code value before entries in the “EN” phonebook can be changed.

Values:

<index> Integer type value depending on the capacity of the currently selected phonebook.

 

<phoneNumber> Phone number is in ASCII format. Valid characters are 0-9 and *, #, -.

 

<TON/NPI> Type of address in integer form. The MSB of this will always be set high.

 

<text string>Any text string.

 

 

 

Note: PIN2 verification is required to do this command on the FDN. If the PIN2

 

authentication has been performed during the current session, the +CPBW command with

 

FDN is allowed.

 

 

 

Command

Possible Responses

 

 

 

 

 

AT+CPBS=”FD”

OK

 

 

Note: Select FDN phonebook

 

 

 

 

 

 

 

AT+CPBW=5,”8585551212”,145,”test”

+CME ERRO: 17

 

Note: Write in FDN at location 5

Note: PIN2 is required

 

 

 

 

 

AT+CPIN2?

RUIM PIN2

 

 

Note: SIM PIN2 is required

 

 

 

 

 

AT+CPIN2=1234

OK

 

 

Note: Example PIN2 entered

Note: PIN2 successfully entered

 

 

 

 

 

AT+CPBW=5,”8585551212”,145,”test”

OK

 

 

Note: Write in FDN at location 5

Note: Write in FDN successful

 

 

 

 

Syntax:

Command syntax: AT+CPBW=<index>,”<phoneNumber>”,<TON/NPI number>,”<text

 

string>”

 

 

 

Command

 

Possible Responses

 

AT+CPBW=1,”6195551212”,145,”test1”

 

OK

 

 

 

Note: Data stored in location 1.

 

AT+CPBW=2

 

OK

 

Note: Erase location 2

 

 

 

AT+CPBW=1,”8585551212”,145,”test1”

 

OK

 

Note: Location 1 overwritten

 

 

 

AT+CPBW=80,”8585551212”,145,”test80

 

ERROR

 

Note: Error left off trailing quotes

 

 

 

AT+CPBW=,”8585551212”,145,”test”

 

OK

 

Note: Write to the first open location

 

 

 

AT+CPBW=,”8585551212”,145,”FullBook”

 

+CME ERROR: 20

 

Note: Phone book is full

 

Note: Phonebook full

 

AT+CPBW=,”8585551212”,145,”Text is too long for this ”

+CME ERROR: 24

 

Note: Write to first location that is open 24 ASCII characters

Note: Text string exceed maximum character

 

 

 

length

Multi-Tech Systems, Inc. CDMA Wireless AT Commands - PN S000294C

84

Page 84
Image 84
Multi-Tech Systems CDMA Wireless Modem Write Phonebook Entry +CPBW, String, +CME Erro, AT+CPIN2? Ruim PIN2, AT+CPBW=2