Running Passive Entry Scenario with Decision Based Advertising Filtering (DBAF)
Decision Based Advertising Filtering can be used in the Passive Entry scenario. Using DBAF optimizes the scanning operation performed by the Digital Key Device of the advertisements sent by the Digital Key Car Anchor devices. This is accomplished by using ‘ADV_DECISION_IND
’ PDUs, which contain the advertising address in the extended header. Using these PDUs allows the scanner to perform address resolution without the need to retrieve the AUX_ADV_IND PDU sent on the data channels.
The DBAF feature is supported on the following platforms:
KW45B41Z-EVK
KW47-EVK
Enabling DBAF
To enable DBAF, modify the Digital Key applications as per the steps listed below:
(Required only for KW45B41Z-EVK): Flash the
kw45b41_nbu_ble_xp_hosted
NBU found inmiddleware/wireless/ble_controller/bin/experimental/
.
For all platforms:
Update the application project so that it uses the experimental Bluetooth LE Host library path:
middleware/wireless/bluetooth/host/lib_exp/
:Use
lib_ble_OPT_host_cm33_iar.a
for the Digital Key Car Anchor application.Use
lib_ble_OPT_host_central_cm33_iar.a
for the Digital Key Device application.
In
app_preinclude.h
file, setgBLE60_DecisionBasedAdvertisingFilteringSupport_d
toTRUE
.Make the following updates in the
digital_key_device.c
(for the Digital Key Device application) and inapp_digital_key_car_anchor.c
(for the Digital Key Car Anchor application):extern uint8_t gHostInitExpmFeatures; #define gExpmDecisionBasedAdvertisingFilteringBit_d BIT1;
In the function
BluetoothLEHost_AppInit()
, add the below line prior to theBluetoothLEHost_Init()
function call:gHostInitExpmFeatures |= gExpmDecisionBasedAdvertisingFilteringBit_d;
Parent topic:Running Passive Entry Scenario with Decision Based Advertising Filtering (DBAF)
Running the Passive Entry with DBAF scenario
The Passive Entry with DBAF scenario runs after Owner Pairing between a Car Anchor and a Device successfully completes.
To run the Passive Entry with DBAF demo, reset the recently paired boards using either the RST switch or the “
reset
” command in the shell. Do NOT perform a factory reset, as this removes the bonding information from non-volatile memory.After reset, run the “
sd pe
” command on the Car Anchor and “sd pe
” command on the Device as shown in Figure 1 and Figure 2.
Passive Entry with DBAF on Device
Passive Entry with DBAF on Car Anchor
After following these steps, the Passive Entry scenario as described in Passive Entry Scenario runs.
Parent topic:Running Passive Entry Scenario with Decision Based Advertising Filtering (DBAF)