Specifications
TC35i AT Command Set
Confidential / Released
TC35i_ATC_V01.05 Page 228 of 278 04.08.2003
7.36 AT^SPBG Read entry from active telephone book via sorted index
This command sorts the active phone book 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 phone books.
CAUTION: The AT^SPBG 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.
Test command
AT^SPBG=?
The test command returns the index range supported by the current storage, the
maximum length of <number> field, and the maximum length of <text> field.
Note: The length may not be available while SIM storage is selected. If storage
does not offer format information, the format list should be empty parenthesises.
Response
^SPBG: (1-<maxindex), <nlength>, <tlength>
OK/ERROR/+CME ERROR
Write command
AT^SPBG=
<index1>
[,<index2>]
The Write command selects the index or range of indices of the phonebook en-
tries to be displayed.
If no <index2> is given, only the entry at <index1> will be displayed. The sorted
index always starts with 1, referring to the entry whose <text> comes first in the
sorted list. Consequentially, the highest index corresponds to the number of cur-
rently used entries in the selected phonebook.
Response
^SPBG: <index1>, <number>, <type>, <text>[<CR><LF>
^SPBG: .....
^SPBG: <index2>, <number>, <type>, <text> ]
OK/ERROR/+CME ERROR
Parameter
<index1> (numeric)
The first (lowest) index number within phonebook memory for
which the corresponding entry is to be displayed. The supported
range is given in the test command response.
If <index 1> exceeds the upper bound <maxindex> (as indicated
by the test command), the AT command will return a CME ERROR
21.
<index2> (numeric)
The last (highest) index number within phonebook memory for
which the corresponding entry is to be displayed. The supported
range is given in the test command response.
If both <index1> and <index 2> are used the following behaviour
applies:
If both <index1> and <index 2> are in the range indicated by the
test command in parameter <maxindex>, the list of entries will be
output and terminated with OK.
If <index 2> exceeds the range indicated by the test command in
parameter <maxindex>, the list of entries will be output but termi-
nated with a +CME error 21 ”invalid index”.