> 2.12.7 | Writing entries to SIM fixdialing phonebook

> This section comprises the subsections Description, Used AT Commands, Flow Chart, Hints and Example. To move to these subsections please use the Navigation Frame or the appropriate buttons on the toolbar.

> 2.12.7.1 | Description

> This chapter describes how to write an entry to the fixdialing phonebook. Before editing the “FD” phonebook be sure that PIN2 authentication has been done. Then follow the steps listed in Section 2.12.6.
> After entering the correct PIN2, the PIN2 authentication code changes to READY and remains valid for 300s. Then a repetition of the authentication process is required, i.e. the PIN2 authentication code changes from READY to SIM PIN2. In this case any attempt to edit the “FD” phonebook will be denied with “+CME ERROR: SIM PIN2 required” until PIN2 is entered once again.

> 2.12.7.2 | Used AT commands

> Command | Explanation
> AT+CPBR | Read current phonebook entries
> AT+CPBW | Write phonebook entry

> For further details about the commands see [2].

> 2.12.7.3 | Flow chart

> Figure 94: Writing entries to SIM fixdialing phonebook

> 2.12.7.4 | Hints

> Not applicable.

> 2.12.7.5 | Example

> ***************************************
> Comment: Writing entries to SIM fixdialing phonebook
> ***************************************
> ***************************************
> Comment: Request maximum range of entries.
> ***************************************
> Subscr 1 Send: AT+CPBR=?
> Subscr 1 Receive: AT+CPBR=?
> Subscr 1 Receive: +CPBR: (1-10),20,14
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment: Read all entries.
> ***************************************
> Subscr 1 Send: AT+CPBR=1,10
> Subscr 1 Receive: AT+CPBR=1,10
> Subscr 1 Receive: +CPBR: 1,"+445636934485",145,"Oscar Thomson"
> Subscr 1 Receive: +CPBR: 2,"+44555965835",145,"Katy White"
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment: Write a new entry to third index. PIN2 was not entered before.
> ***************************************
> Subscr 1 Send: AT+CPBW=3,+44545896638,145,"Paul Williams"
> Subscr 1 Receive: AT+CPBW=3,+44545896638,145,"Paul Williams"
> Subscr 1 Receive: +CME ERROR: SIM PIN2 required
> ***************************************
> Comment: Entering PIN2.
> ***************************************
> Subscr 1 Send: AT+CPIN2=1234
> Subscr 1 Receive: AT+CPIN2=1234
> Subscr 1 Receive: OK
> ***************************************
> Comment: Write a new entry to fourth index.
> ***************************************
> Subscr 1 Send: AT+CPBW=4,+44545896638,145,"Paul Williams"
> Subscr 1 Receive: AT+CPBW=4,+44545896638,145,"Paul Williams"
> Subscr 1 Receive: OK
> ***************************************
> Comment: Read all entries.
> ***************************************
> Subscr 1 Send: AT+CPBR=1,10
> Subscr 1 Receive: AT+CPBR=1,10
> Subscr 1 Receive: +CPBR: 1,"+445636934485",145,"Oscar Thomson"
> Subscr 1 Receive: +CPBR: 2,"+44555965835",145,"Katy White"
> Subscr 1 Receive: +CPBR: 4,"+44545896638",145,"Paul Williams"
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment: Overwrite entry at first index.
> ***************************************
> Subscr 1 Send: AT+CPBW=1,+445636934485,145,"Oscar Thomson"
> Subscr 1 Receive: AT+CPBW=1,+445636934485,145,"Oscar Thomson"
> Subscr 1 Receive: OK
> ***************************************
> Comment: Read all entries.
> ***************************************
> Subscr 1 Send: AT+CPBR=1,10
> Subscr 1 Receive: AT+CPBR=1,10
> Subscr 1 Receive: +CPBR: 1,"+445636934485",145,"Oscar Thomson"
> Subscr 1 Receive: +CPBR: 2,"+44555965835",145,"Katy White"
> Subscr 1 Receive: +CPBR: 4,"+44545896638",145,"Paul Williams"
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment: Add new entry to the next free position.
> ***************************************
> Subscr 1 Send: AT+CPBW=,+44321546546,145,"Tamara Jones"
> Subscr 1 Receive: AT+CPBW=,+44321546546,145,"Tamara Jones"
> Subscr 1 Receive: OK
> ***************************************
> Comment: Read all entries.
> ***************************************
> Subscr 1 Send: AT+CPBR=1,10
> Subscr 1 Receive: AT+CPBR=1,10
> Subscr 1 Receive: +CPBR: 1,"+445636934485",145,"Oscar Thomson"
> Subscr 1 Receive: +CPBR: 2,"+44555965835",145,"Katy White"
> Subscr 1 Receive: +CPBR: 3,"+44321546546",145,"Tamara Jones"
> Subscr 1 Receive: +CPBR: 4,"+44545896638",145,"Paul Williams"
> Subscr 1 Receive:
> Subscr 1 Receive: OK