After a long run,bluetooth seem work very slowly

In my project, nrf52832 used as a communication module.

In order to let user's phone reconnect automatically,I add HID service,appearance and uuid into advertising packet.

When I power on my machine,The reconnection happened rapidly.But after run a long time (such as one week),the action will dully.

And the distance between phone and machine when reconnection finished also will shorten.

Maybe I need  to let idle_state_handle() not work?Even though it can lead to the power dissipation enlarge.

  • Hello,

    I don't know what is going on exactly. Is the nRF advertising at all? If it does, I would not suspect the nRF to behave any different. 

    What SDK version are you using? And what do you mean by "dully"?

    But after run a long time (such as one week),the action will dully.

    Maybe I need  to let idle_state_handle() not work?

    You should use idle_state_handle(). It only let's the device enter low power mode, but any event will wake it up. This is not causing whatever issues that you are seeing. 

    Are you sure it is not the computer that is having issues with the BLE behavior?

    Can you capture a sniffer trace of the connection both when it is working as expected, and when it is not? Do you see any difference? Feel free to upload the sniffer traces (.pcapng) files here, and I can have a look. You can use the nRF Sniffer for Bluetooth LE.

    Best regards,

    Edvin

Related