User's Manual

Enhanced Class 1 Bluetooth v2.1 Module
User’s Guide
Americas: +1-800-492-2320 Option 2
Europe: +44-1628-858-940
Hong Kong: +852-2923-0610
www.lairdtech.com/wireless
89
CONN-GUIDE-BT740_v0.2
8.15.7 Trusted Database Read Record
This command reads the Bluetooth address of the ITEMNO pairing in the database specified, counted
from the top. ITEMNO is indexed from one.
Command Packet
Offset
Field
Value
Comments
0
LENGTH
6
Fixed
1
CHANNEL
0
Fixed
2
COMMAND
[CMD_TRUSTED_DB_READ]
3
FLOW_IN
??
Runtime value
4
DBTYPE
0..1
0 = ROLLING DATABASE
1 = PERSISTANT
DATABASE
5
ITEMNO
1..N
Item number to read
Response Packet
Offset
Field
Value
Comments
0
LENGTH
13
Fixed
1
CHANNEL
0
Fixed
2
COMMAND
[CMD_TRUSTED_DB_READ]
3
FLOW_OUT
??
Runtime value
4
STATUS
As appropriate
5
DBTYPE
0..1
Echoed from command
6
ITEMNO
1..N
Echoed from command
7..12
BDADDR[]
Nap[0,1]:Uap[2]:Lap[3,4,5]
Bluetooth addr is all zeros if
the item specified does not
exist
If S Reg 47 is set to one, then it is possible to read a record so that both the address and link key
information is supplied by sending the command CMD_ TRUSTED_DB_ISTRUSTED. In that case, the
event EVT_LINK_KEY_EX is sent before the response to CMD_TRUSTED_DB_ISTRUSTED.
8.15.8 Trusted Database Delete Record
This command deletes a pairing from the databases. It is not necessary to specify the database type, as
both databases are scanned.
Command Packet
Offset
Field
Value
Comments
0
LENGTH
10
Fixed
1
CHANNEL
0
Fixed
2
COMMAND
[CMD_ TRUSTED_DB_DELETE]