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

Start advertising after connection's hard fault

Hello all:

I have faced a problem that my device will report hard fault when I try to start advertising after force disconnect the device.

My EV board is nRF52832 and develop with SDK12.2.First I connect device with app and send data via uart service continuously.Then I long push my button and executed sd_ble_gap_disconnect(m_conn_handle,BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION) to disconnect and set advertising IDLE in next step. If I done these steps and click button to set advertising slow quickly, error check will report "NRF_ERROR_CONN_COUNT". But this situation occurs probability.

Is the problem caused by conn_param with softdevice(3.1.0)?How to quickly update the conn_param immediately?

Thanks.

  • If you see NRF_ERROR_CONN_COUNT (even just "randomly") then I would say you have some serious problem in your app logic because you are either trying to establish new connection link when you don't have available slot (yet) or you are mixing connection handle values in SD API calls. Debugging and fixing this looks to me like much better approach then doing some nasty workaround...

Related