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
91
CONN-GUIDE-BT740_v0.2
8.15.10 Trusted Database Is Peer Trusted
This command checks if a device is trusted.
Command Packet
Offset
Field
Value
Comments
0
LENGTH
10
Fixed
1
CHANNEL
0
Fixed
2
COMMAND
[CMD_
TRUSTED_DB_ISTRUSTED]
3
FLOW_IN
??
Runtime value
4..9
BDADDR[]
Nap[0,1]:Uap[2]:Lap[3,4,5]
Bluetooth addr
Response Packet
Offset
Field
Value
Comments
0
LENGTH
11
Fixed
1
CHANNEL
0
Fixed
2
COMMAND
[CMD_
TRUSTED_DB_ISTRUSTED]
3
FLOW_OUT
??
Runtime value
4
STATUS
As appropriate
5..10
BDADDR[]
Nap[0,1]:Uap[2]:Lap[3,4,5]
Bluetooth addr, echoed from
the command
The STATUS value is MPSTATUS_OK if the device is trusted; any other value means not trusted.
If S Reg 47 is set to one, then if the peer device is found in the trusted device database, then the event
EVT_LINK_KEY_EX is sent to the host BEFORE the response. That event contains the address and link
key associated with that address.
8.15.11 Trusted Database Add Key (Out-Of-Band Facilitator)
This command manually adds a link key/address pair into the rolling trusted database.
The module does not care how the key was generated and the only validation it performs is to check that
it is 16 bytes long.
Command Packet
Offset
Field
Value
Comments
0
LENGTH
1E
Fixed
1
CHANNEL
0
Fixed
2
COMMAND
[CMD_ TRUSTED_DB_ADD]
3
FLOW_IN
??
Runtime value
4..9
BDADDR[6]
Nap[0,1]:Uap[2]:Lap[3,4,5]
Bluetooth addr