
GSM Module
AT+CPBS="SM"
OK
AT+CPBR=?
+CPBR: (1-10),40,13
AT+CPBR=1,3
+CPBR: 1,"8151****",129,""
+CPBR: 2,"8636****",129,""
+CPBR: 3,"8604****",129,""
Select SIM card phonebook
Check SIM card phonebook
information
Read the contacts information from 1
to 3
Parameters
index1: read phonebook index
index2: read the contacts information from index1 to index2
index: index
number: phone number
type: phone type
129: domestic
145: international
text: number’s corresponding name
2.6.3
+CPBW: phonebook write
Description
This command is used to write information into the phonebook.
Note: as the number length exceeds 20 digits, the first 20 digits will be
saved in one file and the remaining digits saved in another expanded
file. The expanded file is smaller than the first file, therefore a number
exceeding 20 digits can’t be added into SIM card after the expanded
file is full.
Format AT+CPBW=
<index>,<number>,<type>,<name>
+CPBW:(<index>),<length>,(<type>),<tlength>
AT+CPBW=?
+CPBW: (1-10),40,(129,145,
161,177),13
OK
AT+CPBW=?
+CPBW: (1-10),40,(129,145, 161,177),13
OK
Example
AT+CPBS="SM"
OK
AT+CPBW=1,"130********",129,
"john"
OK
AT+CPBR=1
+CPBR:1,"130********",129,
"john"
OK
AT+CPBS="SM"
OK
AT+CPBW=1,"130********",129,"john"
OK
AT+CPBR=1
+CPBR:1,"130********",129,"john"
OK
42