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

nRF52832 pca10040 S132 cannot set Private Resolvable address

Hi,

My board env as below: nRF52832, pca10040, SDK14.2.0, S132

I am trying advertising sample according to the tutorial devzone.nordicsemi.com/.../

The "Address Type" section

This will set the address type to “Private Resolvable address”.The Address type will still show up as “Random”, but try to reset your board a few times. You should see that after each reset your device shows up with a different address in the device list. This functionality might be handy in certain situations demanding higher security. Remove the lines again to change the address type back to “Random static address”.

For the nRF52832 pca10040 board, I used following code at the end of gap_params_init()

ble_gap_privacy_params_t ble_gap_privacy_params = {0};
ble_gap_privacy_params.privacy_mode = BLE_GAP_PRIVACY_MODE_DEVICE_PRIVACY;
ble_gap_privacy_params.private_addr_type = BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE;
ble_gap_privacy_params.private_addr_cycle_s = 30;
ble_gap_privacy_params.p_device_irk = NULL;
err_code = sd_ble_gap_privacy_set(&ble_gap_privacy_params);
APP_ERROR_CHECK(err_code);

However, when I check the ble mac address on Android APP nRF Connect , I found that the Private Resolvable address will not change by reseting the board a few times.

Can u show me the way to fix it?

BRs

Related