This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to use whitelist only for scan requests?

According to this advertising blog: "The advertiser can use a whitelist to limit the interaction to a number of scanner/central device. The whitelist contains an array of the peer device addresses or IRK numbers (when central use resolvable random address). It will reject packets from scanners/centrals whose addresses are not in the list. Whitelist can be configured to filter scan request packets, connect request packets or both. "

I would like to enable scan response only for those devices that are on whitelist but simultaneously I would like to enable connection request for all devices. Is it possible with s110? I have greped examples and I have found that there is none that would use BLE_GAP_ADV_FP_FILTER_SCANREQ.

I also know that according to Bluetooth Spec Core, flags in advertising have to be set to BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED, this will cause that my device will not be discovered by nrf connect, is there any workaround for this issue or will it make device "undiscoverable" and without knowings its mac address I would not be able to connect to it using mobile phone?

  • The scan response is in response to a scan request. An advertiser can only filter on scan request and connect request as these are transmitted from the scanner device.

    I assume you want to respond to all connect requests but you only want to respond to scan requests in the whitelist.

    What is the behavior that you see when using the BLE_GAP_ADV_FP_FILTER_SCANREQ ? Suggest that you try it out and provide details.

Related