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

nRF52832 custoam board not detecting Diconnect event

Hello,

I made a custom board based on nRf52832, and I am using SDK 14.2 

When I use a slightly modified version of the ble_app_uart example, I see it with  nRf Toolbox, I can connect to it and send data, but when I disconnect, the board seems to not trigger the BLE_GAP_EVT_DISCONNECT.

I do not have an external LF crystal so i am using the NRF_CLOCK_LF_SRC_RC with ctiv at 16 and temp_ctiv at 2 

As anyone any idea why it doesn't detect disconnection? 

Thanks in advance

Parents Reply Children
  • Are you sure you don't have nRF Connect running in background and also connected to your board? In all those apps we use the same API to disconnect. The only difference may be that when you do it with nRF Connect you don't have nRF Connect on the background...

    Also, after you click disconnect in nRF Toolbox and the device should disconnect, you may try opening nRF Connect with GATT Server enabled, and checking if it stress a connection. But that just to make sure that the phone is still connected.

  • Hello Aleksander,

    Thank you for your answer.
    I am not sure I had nRF Connect running in background, but now it works! It is possible that it was running in background all along, as my board received a Diconnect event using my custom application after shuting down nRF Connect.

    It is goos to know not to have nRF Connect running in background, once again thanks a lot

Related