beautypg.com

Siemens MC35 User Manual

Page 193

background image

AT Command Set

MC35_ATC_01_V03.02

Page 193 of 228

13.03.2002

8.28 AT^SPBG Read entry from active telephone book via sorted index

This command sorts the active phonebook records by name, in alphabetical order. Please note that
the alphabetical order is assigned an index of its own which is not identical with the location num-
bers used in the various phonebooks
.
CAUTION: The AT^SBPG command is intended for reading only. For example, it helps you find en-
tries starting with matching characters. However, do not use the listed index numbers to dial out or
modify entries.

Response

^SPBG: (list of used s), ,
OK/ERROR/+CME ERROR

Test command

AT^SPBG=?

Parameter

Total number of entries stored in the active phonebook; displayed as
a range of serial numbers (1 – n).

Max. length of phone number

Max. length of the text associated with the phone number

Response

^SPBG: , , , [
^SPBG: .....
^SPBG: , , , ]
OK/ERROR/+CME ERROR

Execute command

AT^SPBG=

[, ]

Parameter

Serial number assigned to the position in the alphabetical list where
reading of entries starts

Serial number assigned to the position in the alphabetical list where
reading of entries ends

Phone number

Type of phone number

Text associated with phone number

Reference

Siemens

Note

The AT^SPBG feature is able to sort by the first 6 matching characters only. All
the following characters will be ignored.

Example

1. First, run the Test command to find out the range of phonebook entries stored

in the active phonebook:
AT^SPBG=?
TA returns the number of entries in the format: ^SPBG: (1-33),20,17 where 33
is the total number of entries.

2. Now, run the Execute command to display the phonebook entries by alpha-

betical order. It is recommended to enter the full range to obtain best results.
AT^SPBG=1,33

TA returns phonebook entries by alphabetical order:

^SPBG: 1,"+999999",145,"Arthur"
^SPBG: 2,"+777777",145,"Bill"
^SPBG: 3,"+888888",145,"Charlie" .........

The numbers at the beginning of each line are not the memory locations in the
phonebook, but only serial numbers assigned to the alphabetical list.