BGS2T AT Command Set
16.7 AT^SPBG
BGS2T_ATC_V01.301 Page 498 of 554 1/31/12
c
Maximum length of <text> assigned to the telephone number. The value indicated by the test command is
given in octets. If the <text> string is given in GSM characters, each character corresponds to one octet. If the
<text> string is given in UCS2, the maximum number of characters depends on the coding scheme used for
the alpha field of the SIM according to 3GPP TS 11.11 [14], Annex B. In the worst case the number of UCS2
characters is at least one less than half the number of GSM characters.
Notes
• The command can be used for the phonebooks "SM", "FD", "ME" (cf. AT+CPBS).
• Users should be aware that when using this AT command quickly after SIM PIN authentication the SIM data
may not yet be accessible, resulting in a short delay before the requested AT command response is returned.
See Section 19.1, Restricted access to SIM data after SIM PIN authentication for further detail.
Examples
EXAMPLE 1
Using AT^SPBG without <RealLocReq>:
The numbers at the beginning of each line are not the memory locations in the phonebook, but only serial
numbers assigned to the entries' positions in the alphabetical list.
EXAMPLE 2
Using AT^SPBG with <RealLocReq>:
The numbers at the end of each line are the memory locations in the phonebook and can be used for dialing
or editing phonebook entries:
<tlength>
(num)
AT^SPBG=?
First run the AT^SPBG test command to find out the
range of entries stored in the current phonebook.
^SPBG: (1-33),20,17
TA returns the range, where 33 is the number of
entries stored in the current phonebook.
AT^SPBG=1,33
Now, enter the write command. To obtain best
results it is recommended to query the full range of
entries. TA returns phonebook entries in alphabetical
order.
^SPBG:1,"+999999",145,"Arthur"
^SPBG:2,"+777777",145,"Bill"
^SPBG:3,"+888888",145,"Charlie"
......................
AT^SPBG=?
First run the AT^SPBG test command to find out the
range of entries stored in the current phonebook.
^SPBG: (1-33),20,17
TA returns the range, where 33 is the number of
entries stored in the current phonebook.
AT^SPBG=1,33,1
Now, enter the write command including parameter
<RealLocReq>=1 to get the actual location num-
bers.
^SPBG:1,"+999999",145,"Arthur",27
^SPBG:2,"+777777",145,"Bill",6
^SPBG:3,"+888888",145,"Charlie",15
......................
AT+CPBR=27
Read out phonebook location 27.
+CPBR: 27,"+999999",145,"Arthur"
This entry can be edited with AT+CPBW or used for
dialing with ATD><mem><n>.