![Wavecom WMO2 Manual Download Page 53](http://html1.mh-extra.com/html/wavecom/wmo2/wmo2_manual_3834769053.webp)
WMO2 G900 / G1800 / G1900
WCOM/GSM/WMO2/WMO2ATDOC
Friday 21 May 1999
WAVECOM confidential ©
47
4.5.6
Move action in phoCPBN
Command syntax:
AT+CPBN = <mode>
This specific command instructs the module to make a forward or a
backward move in the phonebook (in alphabetical order).
<mode> may take the following values: 0 for First item, 1 for Last item, 2
for Next valid item in alphabetical order, 3 for Previous valid item in
alphabetical order, 4 for Last read item and 5 for Last written item.
Application to GSM
AT+CPBN= ?
Test Command
GSM to application
+CPBN=<0-3>
Possible Modes
Application to GSM
AT+CPBN= 0
Read the first location
GSM to application
+CPBN: 15,"+331290101",145, "Eric"
OK
Display the first location
Application to GSM
AT+CPBN=2
Read the next location
GSM to application
+CPBN:5,"+33147658987",145, "Frank"
OK
Display the second location
Application to GSM
AT+CPBN=2
Read the next location
GSM to application
+CPBN: 6,"+331290302",145, "Marc"
OK
Display the third location
Application to GSM
AT+CPBN=3
Read the previous location
GSM to application
+CPBN:5,"+33147658987",145, "Frank"
OK
Display the second location
Application to GSM
AT+CPBN=1
Read the last location
GSM to application
+CPBN: 6,"+331290302",145, "Marc"
OK
Display the last location
Application to GSM
AT+CPBN=2
Read the next location
GSM to application
+CPBN: 15,"+331290101",145, "Eric"
OK
Display the first location
Using mode 4 and 5 with +CPBF command and CPBW:
Application to GSM
AT+CPBF=”Er”
Find “Er” in phonebook
GSM to application
+CPBF: 15,"+331290101",145, "Eric"
OK
Display this location
Application to GSM
AT+CPBN=2
Read the next location
GSM to application
+CPBN:5,"+33147658987",145, "Frank"
OK
Display the following location
Application to GSM
AT+CPBF=”Er”
Find “Er” in phonebook
GSM to application
+CPBF: 15,"+331290101",145, "Eric"
OK
Display this location
Application to GSM
AT+CPBN=4
Read the Last read location
GSM to application
+CPBN:15,"+331290101",145, "Eric"
Display the Last read location
Application to GSM
AT+CPBW=,"0146290800",129, "WM"
Write an item at the first free
location
GSM to application
OK
No information about this location
…
Application to GSM
AT+CPBN=4
Read the Last read location
GSM to application
+CPBN:15,"+331290101",145, "Eric"
Display the Last read location
GSM to application
+CPBN: 38,"0146290800",129, "WM"
Display the Last writen item with
its location.
Application to GSM
AT+CPBN=4
Read the Last read item
GSM to application
+CPBN: 38,"0146290800",129, "WM"
Now the last read item is the last
writen item too
Please note that the AT+CPBN=5 command is useful after an AT+CPBW
command used without a location.