This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

BLE disconnection does not finish

Hi, I am working on the latest version of SDK (v14) and SoftDevice(v5) on nRF52382. When I call the sd_gap_disconnect it returns NRF_SUCCESS. However the BLE_GAP_DISCONNECT event is not called and the system resets. I checked the reset reason in the power registers and it returns a 4. i.e. a soft reset. The issue here is the disconnection process starts but does not finish, The disconnect event occurs if the nrf_connect app is turned off from the phone. Any reasons for the odd behavior in the first case ?

Parents
  • It is a part of a series of steps such as re-enabling the stack, initializing the gap parameters, advertising data etc. which are performed when the board wakes up or when it enters pairing mode. So the parameters were re-initialized every time when the board entered pairing mode. As I said earlier, this worked in the previous SDK, however the new one doesn't allow so because the change in the new SDK is that the timer in ble_conns_params_init is being called inside a loop.

Reply
  • It is a part of a series of steps such as re-enabling the stack, initializing the gap parameters, advertising data etc. which are performed when the board wakes up or when it enters pairing mode. So the parameters were re-initialized every time when the board entered pairing mode. As I said earlier, this worked in the previous SDK, however the new one doesn't allow so because the change in the new SDK is that the timer in ble_conns_params_init is being called inside a loop.

Children
No Data
Related