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

NRF connect doesn't reconnect when phone bluetooth is turned off and then back to on again

I connect to my BLE peripheral device using NRF connect app. While in connection, if I switch my phone's bluetooth off and turn it back again and then try to connect to my device then it doesn't connect. If I go to the "scanner" tab and do a scan, I observed that my device is advertising. When I press the connect button from the scanner screen then NRF connect connects to my device.

Why is NRF connect not able to connect when I press the connect button(upper right corner button) on the device's tab? And what happens when I do a scan, after which I am able to connect to my device?

OS: Android nugget on Motorola C.

Parents
  • Since this only happens on a few phones, I suspect that this issue is bug in the BLE stack on the phones that is affected.

    Error 133, defined as: #define GATT_ERROR 0x85 is a general BLE error. It usually appears when a device is not reachable or when Android stack expected something or received something unexpectedly. Doing a new scan might have reset some internal state, and made it possible to connect again.

Reply
  • Since this only happens on a few phones, I suspect that this issue is bug in the BLE stack on the phones that is affected.

    Error 133, defined as: #define GATT_ERROR 0x85 is a general BLE error. It usually appears when a device is not reachable or when Android stack expected something or received something unexpectedly. Doing a new scan might have reset some internal state, and made it possible to connect again.

Children
No Data
Related