martinohanlon / BlueDot

A zero boiler plate bluetooth remote
MIT License
143 stars 44 forks source link

Blue Dot drops connection immediatly #104

Closed jenglows closed 6 years ago

jenglows commented 6 years ago

I can pair my Samsung 8 with my raspberry pi3 and it looks all good. But when I open the Blue Dot app and choose the Pi3 from the list of available devices it immediately drops the pairing and gives me a "failed to connect" error. I've tried most of the easy things I can think of to try to get it to work, but I must be missing something. When I try to connect through the command line on the Pi3, I can watch the changes between the connected yes and no when the app drops the pairing.

ukBaz commented 6 years ago

It sounds to me like you don't have your BlueDot code running on the Raspberry Pi before you try to connect.

Do you get the code running and then try to connect as documented here: http://bluedot.readthedocs.io/en/latest/gettingstarted.html#code

If you don't do that the app running on the Phone cannot find the right Bluetooth profile on the Raspberry Pi so disconnects.

martinohanlon commented 6 years ago

What @ukBaz said..

If your python program is running and you still can't connect, does Python return an error? Do you get the client connected message? Can you copy your python code into the issue.

martinohanlon commented 6 years ago

@jenglows how did you get on?

martinohanlon commented 6 years ago

Closing

bshreyas13 commented 4 years ago

Hi , was this issue resolved? if so, how? I am having the exact same issue.

Thanks

ukBaz commented 4 years ago

Hi @bshreyas13 ,

People normally see this issue if they haven't started their script on the Raspberry Pi bafore trying to connect from their phone.

It works like this:

This is documented in the getting started guide. https://bluedot.readthedocs.io/en/latest/gettingstarted.html

bshreyas13 commented 4 years ago

Hey @ukBaz ,

I ran the example code from the terminal, it shows my devices MAC address then says waiting for connection . But still doesnt connect.

Thanks Shreyas

bshreyas13 commented 4 years ago

BT_iisue

Here you can see I have the script running and waiting. but the app doesn't connect on the phone. I have pared it as well without problems.

thanks

bshreyas13 commented 4 years ago

I updated Debian and python-bluez which seems to have solved the issue.

Thanks for the inputs guys!