Specifications

GT300 @Track Air Interface Protocol
- 57 -
4.8. Remote Phone Book Control
The backend server can use command AT+GTPHB to control the phone book in the terminal
local memory. There are up to 20 entries in the local phone book. Each entry includes the
contact name and the phone number. To edit a contact, specify its index in the phone book by
<record index>.
To support multi-language in the contact name field, two data coding schemes are supported:
ASCII (set <DCS> to 0) and UCS2 (set <DCS> to 1). If using UCS2, put the UCS2 code points
in little-endian ordering to the <name> field. For example, the UCS2 code points of 张三 is
5F204E09, then the <name> field should be “205F094E”.
The name of the contact is up to 28 characters in ASCII and 14 characters in UCS2.
This command has two working mode, one is to edit the local phone book; the other is to read the
local phone book.
Example 1:
To set the 1
st
phone book entry, use the following command:
AT+GTPHB=gt300,1,1,0,Alice,+7911888888,0007
By this command, the name of the 1
st
contact is set to Alice and phone number to
+7911888888. The DCS of the name is ASCII.
Or
AT+GTPHB=gt300,1,1,1,205F094E,+7911888888,0007
By this command, the name of the 1
st
contact is set to 张三 and phone number to
+7911888888. The DCS of the name is UCS2.
Example2:
To read the 1
st
phone book entry, use the following command:
AT+GTPHB=gt300,0,1,0007
The device reports by message:
+RESP:GTPHB,135790246811220,1,0,Alice,+7911888888,20090101000000,11F0,0102070
202
Or
+RESP:GTPHB,135790246811220,1,1,205F094E,+7911888888,20090101000000,11F0,010
2070202
Example3:
To read all 20 the phone book entries, use the following command:
AT+GTPHB=gt300,0,0,0007