Android - HTC A9S - Cannot connect via Bluetooth

Discussions about all things Bitcraze
Sebalos
Beginner
Posts: 22
Joined: Sun Dec 14, 2014 10:24 pm

Re: Cannot conect by bluetooth

Post by Sebalos » Thu Apr 06, 2017 10:29 pm

Ok I solved the issue. Strange but crazyflies connected after I have turned on the localization function in phone. Without it, the app can't connect.
Why it doesn't work without localization?

Other point is about three icons in app led ring, front lights and sound. It doesn't work, why?

arnaud
Bitcraze
Posts: 1067
Joined: Tue Feb 06, 2007 12:36 pm

Re: Cannot conect by bluetooth

Post by arnaud » Mon Apr 10, 2017 11:06 am

Thanks for the info for the localization! In the new android bluetooth low energy is considered as a localization technology (thanks to things like iBeacon). This is something that should be detected by the app in order to give a better message to the user. I will try to reproduce it and add a ticket in Github.

The buttons in the interface are currently only activated when using a Crazyradio attached with an on-the-go cable to the phone USB port.

Sebalos
Beginner
Posts: 22
Joined: Sun Dec 14, 2014 10:24 pm

Re: Cannot conect by bluetooth

Post by Sebalos » Wed Apr 12, 2017 5:27 pm

You are welcome ;)

arnaud
Bitcraze
Posts: 1067
Joined: Tue Feb 06, 2007 12:36 pm

Re: Cannot conect by bluetooth

Post by arnaud » Thu Apr 13, 2017 6:56 am

I haven't had time to test yet but I have created the ticket anyway. For info it is there: https://github.com/bitcraze/crazyflie-a ... /issues/65

derf
Expert
Posts: 160
Joined: Fri May 31, 2013 12:17 am
Location: Germany

Re: Cannot conect by bluetooth

Post by derf » Fri Apr 14, 2017 3:41 pm

Sebalos wrote:Ok I solved the issue. Strange but crazyflies connected after I have turned on the localization function in phone. Without it, the app can't connect.
Why it doesn't work without localization?
Hi,

Could you provide a screenshot of the settings menu, where you have to enable the "localization function"?
This would make it easier to reproduce the error and fix it.

Regards,

Fred

Sebalos
Beginner
Posts: 22
Joined: Sun Dec 14, 2014 10:24 pm

Re: Cannot conect by bluetooth

Post by Sebalos » Sun Apr 16, 2017 10:35 am

Hi I start it directly in phone options, simple as that :) Just slide down bar menu where u have options like bluetooth, screen autorotation, etc. and there is also icon for localisation.

derf
Expert
Posts: 160
Joined: Fri May 31, 2013 12:17 am
Location: Germany

Re: Cannot conect by bluetooth

Post by derf » Tue Apr 18, 2017 10:29 pm

Do you mean the "Location" setting as seen in the picture below?
location.png

derf
Expert
Posts: 160
Joined: Fri May 31, 2013 12:17 am
Location: Germany

Re: Cannot conect by bluetooth

Post by derf » Sat Apr 29, 2017 12:47 pm

*bump*

Without additional info I can't fix this problem, because I have no way of reproducing it.

Sebalos
Beginner
Posts: 22
Joined: Sun Dec 14, 2014 10:24 pm

Re: Cannot conect by bluetooth

Post by Sebalos » Fri May 12, 2017 4:13 pm

HI sorry for delay. Yes that's it :)

derf
Expert
Posts: 160
Joined: Fri May 31, 2013 12:17 am
Location: Germany

Re: Cannot conect by bluetooth

Post by derf » Fri May 19, 2017 10:29 pm

I've searched extensively for information about this issue. I found a few comments saying that Google made changes in Android 6.0 that now require enabled location settings to be able to use Bluetooth. I know for a fact that this is not the case for all Android phones, because it's working fine on my Nexus 5x and several other phones running Android 6.0. It''s also not related to Android 7.0, because it works fine with Android 7.0 phones.

My conclusion so far is, that this is a specific problem with the HTC A9S (until someone can reproduce the problem with a different phone). Since I don't own a HTC A9S I can't debug this issue. A workaround has been found, so I won't investigate any further for now.

Post Reply