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

Reconnecting problem in Android

I am trying to connect my android mobile with nRF52DK. At the first moment it gets connected and then I am able to access service and characteristics but once it gets disconnected it is not getting connected. I need to restart my moblie phone and then I can connect again.

While this is not happening in case of iOS, its running smooth on iOS phone.

Do you know what might be the problem ?

Parents
  • Hi Swapnil, I have had the same experience while I was developing my BLE-Android App. Im sure some of the below things will help you fix it.

    1.After connecting your Android App to BLE device, and when you disconnect your device and try to reconnect back to it immediately, the android is not that quick to figure out you have previously disconnected and attempting to reconnect back to it. So make sure atlas wait for 10-20sec to discover your device again.

    2.Clear the app cache in your settings and also clear any data if needed.

    3.I have tested on Samsung S5,Nexux,Huawei,Alcatel. Each device has a different connection issue, The most stable was the Huawei with Android version 5.0!. The devices above 5.0 still connects but has a few complications.

    Let me know if any of these work?

    Thanks

Reply
  • Hi Swapnil, I have had the same experience while I was developing my BLE-Android App. Im sure some of the below things will help you fix it.

    1.After connecting your Android App to BLE device, and when you disconnect your device and try to reconnect back to it immediately, the android is not that quick to figure out you have previously disconnected and attempting to reconnect back to it. So make sure atlas wait for 10-20sec to discover your device again.

    2.Clear the app cache in your settings and also clear any data if needed.

    3.I have tested on Samsung S5,Nexux,Huawei,Alcatel. Each device has a different connection issue, The most stable was the Huawei with Android version 5.0!. The devices above 5.0 still connects but has a few complications.

    Let me know if any of these work?

    Thanks

Children
No Data
Related