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 Reply Children
  • Hi,

    No, I did not use any features related to Matter. Please focus on the BLE advertising issue. I believe that when CONFIG_BT_MAX_CONN is greater than 1, the device should automatically restart advertising after a successful pairing.

    The error message "Failed to start BLE advertising: -12" is the result of my intentional call to BleService::StartAdvertising. In reality, BLE advertising should restart automatically, but it is clear that this version of the SDK does not handle it correctly.

    If I want to allow multiple pairings, besides CONFIG_BT_MAX_CONN, what other configurations are required?

  • Edvin said:
    CONFIG_BT_CTLR_SDC_PERIPHERAL_COUNT=2

    Did you try this one?

    SunHuang said:
    BLE advertising should restart automatically

    That depends on the definition of "automatically". It needs to be done from the application, but apparently it is being done, since it fails. 

    But did you try the config: CONFIG_BT_CTLR_SDC_PERIPHERAL_COUNT=2 ?

    BR,

    Edvin

  • Hi,

    I have already resolved the issue. The differences between the old and new versions made me overlook some configurations.

Related