When BLE is paired, advertising cannot be restarted

Hi,

After updating to NCS 2.9.0, I found that if the device is already paired, advertising cannot be started. I have configured CONFIG_BT_MAX_CONN=3.

E: Failed to start advertiser
E: Failed to start BLE advertising: -12
E: Could not start BLE advertising

Parents
  • Hello,

    It is difficult to say without more context. What function returned the value -12? Are you doing normal BLE advertising, or do you have some other radio protocol as well?

    Does your build log say anything that would suggest that the CONFIG_BT_MAX_CONN is not set to 3?

    Do you support scanning/central? CONFIG_BT_CENTRAL=y?

    If so, you also need to specify:

    CONFIG_BT_CTLR_SDC_PERIPHERAL_COUNT=2

    or whatever value you want it to be. It will default to 1 if CONFIG_BT_CENTRAL is set to y.

    Best regards,

    Edvin

Reply
  • Hello,

    It is difficult to say without more context. What function returned the value -12? Are you doing normal BLE advertising, or do you have some other radio protocol as well?

    Does your build log say anything that would suggest that the CONFIG_BT_MAX_CONN is not set to 3?

    Do you support scanning/central? CONFIG_BT_CENTRAL=y?

    If so, you also need to specify:

    CONFIG_BT_CTLR_SDC_PERIPHERAL_COUNT=2

    or whatever value you want it to be. It will default to 1 if CONFIG_BT_CENTRAL is set to y.

    Best regards,

    Edvin

Children
Related