BGS2T AT Command Set
16.7 AT^SPBG
BGS2T_ATC_V01.301 Page 496 of 554 1/31/12
c
16.7 AT^SPBG Display phonebook entries in alphabetical order
AT^SPBG sorts the entries of the current phonebook in alphabetical order by name (the first six characters mat-
ter). The sort order is described in Section 16.1, Sort Order for Phonebooks.
There are two ways to use AT^SPBG:
• If the optional parameter <RealLocReq> equals 0 or is omitted the sorted entries will be sequentially num-
bered. As these numbers are not identical with the location numbers stored in the various phonebooks
AT^SPBG can be used for reading only. For example, it helps you find entries starting with matching charac-
ters. Do not use the serial numbers to dial out or modify entries.
• If parameter <RealLocReq>=1 is given by the write command, the response parameter <location> addi-
tionally appended to each entry indicates the actual location number. This number can be used for editing
with AT+CPBW or dialing with ATD><mem><n>. The first index number of each entry is only the serial number
of the sorted list.
Before using the AT^SPBG write command it is recommended to query the number of records currently stored in
the active phonebook (refer to test command parameter <used>). The test command also includes the param-
eters <nlength> and <tlength>. Note that if SIM storage is selected the length may not be available. If stor-
age does not offer format information, the format list should be empty parenthesises.
Syntax
Parameter Description
First index number in the sorted list where to start reading. The supported range is given in the test command
response.
If <index 1> exceeds the upper bound <used>, "+CME ERROR: invalid index" will be returned.
Test Command
AT^SPBG=?
Response(s)
^SPBG: (1-<used>), <nlength>, <tlength>
OK
ERROR
+CME ERROR: <err>
Write Command
AT^SPBG=<index1>[, <index2>][, <RealLocReq>]
Response(s)
[^SPBG: <index1>, <number>, <type>, <text>[, <location>]]
[^SPBG: <index2>, <number>, <type>, <text>[, <location>]]
OK
ERROR
+CME ERROR: <err>
PIN ASC0 MUX1 MUX2 MUX3 Last Reference(s)
+ + + + + - - 3GPP TS 24.008 [32],
3GPP TS 11.11 [14]
<index1>
(num)