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

How set whitelist with non-secure device?

Hi ,

I am using NRF52832 device and I am referring ble_central/ble_app_hrs_c app . in this example , there is secure data used(pairing and bonding information) for whitelist. But in my case I want to whitelist BLE devices which are non-secure. How to set whitelist for non-secure ble device?

Regards,

Darshan

  • Hi, 

    Could you provide more detail about the non-secure ble device? What does that mean?

    Whitelist used is for secure devices. I don't know what you are trying to do... If you need to filter addresses, then the scan module supports this scan filters usage and NRF_BLE_SCAN_ADDR_FILTER

    -Amanda

  • Hi,

    I am using filter by NRF_BLE_SCAN_UUID_FILTER. I am connecting peripheral device without pairing and bonding. I want to whitelist five bt device by bt address among 20 bt device.

    Regards,

    Darshan

  • Hi Darshan, 

    If you don't want to pair call pm_sec_params_set() with NULL, if you don't want to bond call pm_sec_params_set() with bond set to 0, i.e. set SEC_PARAM_BOND 0.

    This post might help. 

    -Amanda

  • Hi,

    I am using pm_sec_params_set() with NULL. But when i use peer_list_get(peers, &peer_cnt) in whitelist_load() function.it is always gives peer_cnt 0.

    Is there any APIs for setting whitelist by bt address only?

    Regards,

    Darshan

  • Hi, 

    The function peer_list_get() will retrieve a list of the peers stored in flash, and if you delete all the peers before running the function, there are no devices to put into the list. When you bond with a device the peer is stored in flash, it allocates a peer ID and stores the bonding data (address, IRK and encryption keys) of the new device to flash.

    This post can help you implement the whitelist. 

    -Amanda