Examples about phonebooks, Example 1: the whole phonebook of the me is read, Example 2: erase or write a phonebook entry – Westermo GDW-11 User Manual

Page 343

Advertising
background image

Examples 343

6615-2220

Examples about phonebooks

For each example illustrated in this section: at the beginning the ME is powered on and
the SIM PIN has been entered.

Example 1: The whole phonebook of the ME is read

Command example

Possible responses

Note

AT+CPBS=? +CPBS:

(“SM”,”FD”,”ON”)

Query supported phone-
book memories,
ADN, FDN, and MSISDN
phonebooks supported.

AT+CPBS=”SM”

OK

Select ADN phonebook.

AT+CPBR=?

+CPBR: (1-80),20,14

Read the index range and

OK

the length of the elements.

80 locations (from 1 to 80),

max length of 20 for the

phone number, 14 charac-

ters max for the text.

AT+CPBR=1,80

+CPBR: 1,“0346572834”,

Read all entries (only the

129,”Dolores Claiborne”

set ones are returned).

+CPBR:

2,”1284374523”,129,

”Thad

Beaumont”

+CPBR:

3,

“1243657845”,

129,”John

Panborn”

OK

Example 2: Erase or Write a phonebook entry

Command example

Possible responses

Note

AT+CPBW=? +CPBW:

(1-80),20,(129,145),14

Get the phonebook type.
80 locations, max length of
20 for the phone number,
TON/NPI of 129 or 145
and 14 characters max for
the text.

AT+CPBW=3

OK

Erase location 3

AT+CPBW=3,”43567290

OK

Write at location 3.

12”,129,”Carry”

AT+CPBR=1,80

+CPBR:1,“0346572834”,129,

Read all entries (only the

”Dolores Claiborne”

ones set are returned).

+CPBR:2,”1284374523”,129,
”Thad

Beaumont”

+CPBR:

3,”4356729012”,

129,”Carry”
OK

Advertising
This manual is related to the following products: