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

Reset BLE stack during init

I am using the "ble_app_multilink_central" in version nRF5_SDK_17.0.2_d674dde for development.

It works and can connect to BLE devices.

However, there is one issue

- When device is connected to nRF52, restart the debugger

- BLE Connection is fine but "Discovery" always failed not getting the result.  The code need to disconnect & reconnect before it works again.

If I reset the board (hardware) before loading the code again.  Then it is "OK"

Is there a calls which can be used to reset the BLE stack during init ??

Parents
  • Hello,

    I don't think that resetting the Softdevice is the correct solution as the discovery procedure is managed by the application, and not the Softdevice.

    When device is connected to nRF52, restart the debugger

     Are you resetting the nRF52 when you do this? The connection should be terminated in that case, and the ble_db_discovery_start() function should get called again when you re-connect.

Reply
  • Hello,

    I don't think that resetting the Softdevice is the correct solution as the discovery procedure is managed by the application, and not the Softdevice.

    When device is connected to nRF52, restart the debugger

     Are you resetting the nRF52 when you do this? The connection should be terminated in that case, and the ble_db_discovery_start() function should get called again when you re-connect.

Children
Related