SIM Phonebook AT Commands


With Online AT Command Tester tool, you read/add/edit/delete phonebook entries on the device.

List all the avaialble phonebooks,

AT+CPBS=?
+CPBS: (“SM”,”DC”,”LD”,”ON”,””,”«¶Ç$QCSIMSTAT”,”IMSTAT”)
OK

The SIM phone book is usually referred by the “SM” name.
Select the SIM phonebook
AT+CPBS=”SM”
OK

Get the ranges of the phonebook entries
href=”https://m2msupport.net/m2msupport/download-at-command-tester/?at_comm=AT%2bCPBS&amp;at_comm_parm=AT%2bCPBR=?”>AT+CPBR=?</a>”>AT+CPBR=?
+CPBR: (1-100),40,25
OK
Above response indicates that the phonebook supports 100 entries. The maximum length of the text entry
is 40 and the maximum lenght of the phonenumber is 25.

To read a phonebook entry,
AT+CPBR=1

+CPBR: 1,”1391812″,129,”Daniel”,,””,0,,
OK

The first response after the semicolon(:) is the phonebook entry which in this case is ‘1’. Then the phone number (1391812) is shown.The next response(129) is the type of number. Here the possible types of numbers,
129 – National number type
161 – National number type
145 – INternational number type
177 – Network specific number

After the number type, the text name (“Daniel”) is shown.

To write an entry to the current phonebook,

AT+CPBW=,”6187759088″,129,”Adam”

OK

A new entry is written to teh next available index. The phone number (6187759088) and the name (Adam) are given with in quotes. The type of the phone number(129) is also specified.

To read back the phonebook entry,
AT+CPBR=1,10

+CPBR: 1,”1391812″,129,”Daniel”,,””,0,,
+CPBR: 2,”6187759088″,129,”Adam”,,””,0,,
OK

To delete a phonebook entry,
AT+CPBW=2

OK
Above command deletes the 2nd entry from the phonebook. Now when you reaback the phonebook,
+CPBR: 1,”1391812″,129,”Daniel”,,””,0,,
OK

To search for a phonebook entry,
AT+CPBF=”Daniel”
+CPBF: 1,”1391812″,129,”Daniel”,””,0
OK
If the search is sucessful, the phonebook entry is displayed.

Keywords: Module SIM Phonebook, M2M SIM Phonebook, GPRS SIM Phonebook, 3G SIM Phonebook, SIM Phonebook through AT commands,