Bluetooth LE advertising module¶
In nRF Desktop, the Bluetooth LE advertising module is responsible for controlling the Bluetooth LE advertising for the nRF Desktop peripheral device.
Module events¶
Source Module |
Input Event |
This Module |
Output Event |
Sink Module |
---|---|---|---|---|
|
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Note
See the Overview: Firmware architecture for more information about the event-based communication in the nRF Desktop application and about how to read this table.
Implementation details¶
nRF Desktop uses the Bluetooth LE advertising module module from Common Application Framework (CAF). See the CAF Bluetooth LE advertising page for implementation details.
For more information about Bluetooth configuration in nRF Desktop, see Bluetooth in nRF Desktop.
Avoiding connection requests from unbonded centrals when bonded¶
If the Bluetooth local identity currently in use already has a bond and the nRF Desktop device uses indirect advertising, the device will not set the General Discoverable flag.
The nRF desktop devices also enable CONFIG_BT_WHITELIST
to whitelist incoming scan response data requests and connection requests.
This is done to prevent Bluetooth Centrals other than the bonded one from connecting with the device.
The nRF Desktop dongle scans for peripheral devices using the Bluetooth device name, which is provided in the scan response data.