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

Advertising interferes with advertising in non-whitelisted mode

Hello,

We use the nRF52832 with SD 17.2.0, Bluetooth LE.

We observe an error when doing the following sequence:

- Build a bonded connection using the nRF Connect app.

- Trigger a disconnect.

- Trigger non-whitelisted advertising (via a button press but that should not matter) using the function 

err_code = ble_advertising_restart_without_whitelist(&m_advertising);

The disconnect triggers the advertising with whitelist while the non-whitelisted advertising is triggered at the same time and then the following error appears in the logs:

[00:02:15.000,000] <error> app: ERROR 7 [NRF_ERROR_INVALID_PARAM] at :0
PC at: 0x00000000
[00:02:15.000,000] <error> app: End of error report
[00:02:15.000,000] <warning> app: System reset

It also happens when triggering advertising wih the whitelist upon button press:

ble_advertising_start(&m_advertising, BLE_ADV_MODE_FAST);

How can we prevent this to happen?

Parents Reply Children
  • It is set in the init function - it is adapted from the examples and was not suggested. Disabling it prevents the problem from happening which is a possible solution in our case. 

    Out of interest: Shouldn't it work with the directed advertising as well?

    init.config.ble_adv_directed_enabled = true;
    init.config.ble_adv_directed_interval = APP_ADV_DIRECTED_INTERVAL;
    init.config.ble_adv_directed_timeout = APP_ADV_DIRECTED_DURATION;
Related