Examples about phonebooks – Rainbow Electronics FARGO MAESTRO 100 (with TCP_IP) User Manual

Page 731

Advertising
background image

APPENDIXES

Examples

© Restricted

Page:

25 / 80

This document is the sole and exclusive property of Wavecom. Not to be distributed or divulged without
prior written agreement.

WM_DEV_OAT_UGD_049 - 001

APPENDIXES

August 23,

2007

2.6 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.

2.6.1 Example 1: The whole phonebook of the ME is read

Command

Response

AT+CPBS=?

Note: Query supported phonebook memories

+CPBS: ("SM","FD","ON")

OK

Note: ADN, FDN, and MSISDN phonebooks supported.

AT+CPBS="SM"

Note: Select ADN phonebook.

OK

AT+CPBR=?

Note: Read the index range and the length of the

elements.

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

OK

Note: 80 locations (from 1 to 80), max length of 20 for the

phone number, 14 characters max for the text.

AT+CPBR=1,80

Note: Read all entries (only the set ones are

returned).

+CPBR: 1,"0346572834",129,"Dolores
Claiborne"

+CPBR: 2,"1284374523",129,"Thad
Beaumont"

+CPBR: 3, "1243657845",129,"John
Panborn"

OK

2.6.2 Example 2: Erase or Write a Phonebook Entry

Command

Response

AT+CPBW=?

Note: Get the phonebook type.

+CPBW: (1-80),20,(129,145),14

OK

Note: 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

Note: Erase location 3

OK

AT+CPBW=3,"4356729012",129,"Ca
rry"

Note: Write at location 3.

OK

Advertising