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

nrf52832 after establishing Bluetooth connection getting disconnected and showing paired

hello,

i am using nrf52832 and sdk 15.3, we are building our project in ble_mouse example, after our device is connected to PC it directly getting disconnected and showing paired in PC, because of this we are not able to send any data to the PC through Bluetooth, how to solve this?

  • Hi. 

    Have you tried debugging the example to find you why you are getting disconnected?

    Are you using the example in the nRF5 SDK without changes, or have you made any modifications to the example?

    Best regards, 
    Joakim

  • one of our peripheral is interfaced with nrf52 using gpiote event and that is getting triggered very fastly, thats when this disconnection occur. 

    static void gpiote_evt_handler(nrf_drv_gpiote_pin_t pin, nrf_gpiote_polarity_t action)//STATIC
    {
       if(count>3)
        {
        icmlib_data_handler1();
        count=0;
        }
       count++;
    }

    when i put this icmlib_data_handler directly inside gpiote_evt_handler it shows disconnection after connecting the device in pc, but when we insert  a if condition, like after triggering gpiote for 3 time then count reach 3 then it enter the  icmlib_data_handler, that time the disconnection not occuring, so what may be the reason. icmlib_data_handler handles core function of our project

    we are building our project in ble mouse hid example

Related