bitcraze / crazyflie-android-client

The Crazyflie Nano Quadcopter client for Android OTG or BLE enabled devices
GNU General Public License v2.0
103 stars 118 forks source link

Bluetooth connection timeout if phone location disabled #65

Closed ataffanel closed 7 years ago

ataffanel commented 7 years ago

There has been one occurence where the bluetooth connection was always failing with a timeout if the android device location settings was disable: https://forum.bitcraze.io/viewtopic.php?f=2&t=2367&e=1&view=unread#p12015

In new android system bluetooth low energy is considered as a location technology so this makes sense but we should display a better error than connection timeout.

I haven't have time to confirm this on another device yet so, confirming the bug is the fist step.

fredg02 commented 7 years ago

Thanks for creating the bug, I will also try to reproduce the error. I have asked in the forum for a screenshot, because I'm not sure yet which exact setting is causing the error.

fredg02 commented 7 years ago

I cannot reproduce this error on a Nexus 5x with version 6.0.1 or 7.1.2. So I honestly don't know which "localization" or location settings is preventing the use of Bluetooth for the user.

fredg02 commented 7 years ago

After an extensive search and some tests this issue seems to be specific to the HTC A9S. There is currently no know way to reproduce this issue on another phone. Since a workaround has been found I have marked this as wontfix.