-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Race condition or timeouts on establishing BTLE connection? #75
Comments
Investigating this a bit further it seems that the MoveHub goes into standby/off rather quit if it doesn't get initialized (via special commands?) within a rather short time after the initial connection. |
Using the debug server option, with forcing
The debugserver connects, but then the MoveHub turns off right afterwards. That is not normal, the LED of the hub should stay on, right? |
This is not normal for hub to disconnect in this situation. In BLE, there is distinct |
I was running into a similar issue after installing a more current version of Raspbian on my Pi 3 B+. Downgrading the Bluetooth firmware resolved the issue:
This thread pointed me in the right direction: https://www.raspberrypi.org/forums/viewtopic.php?t=254523 Hope this helps! |
First and most important:
fantastic work and great demos/videos!
I love your explanations and humor you put into this project! (just saying: I have a fire extinguisher in my house!)
I really want to get this to work and do some cool projects like you!
Currently testing this on my Raspberry box with the different bluetooth options, but I'm seeing strange behaviors. The most stable one seems to be
gatt
, but even there I can only connect with the demo application maybe once out of 30 tries.I'm wondering if this has to do somethinhg with the Hub itself, some timeout or maybe some race condition.
Examples
A semi-working connection with
gatt
, once in a while I do get the led_demo working until the end.After that the demo just hangs, the MoveHub seems to have turned off.
Sometimes I do get this:
This seems to be a race condition that maybe the list of nearby bluetooth devices changes during iteration?
With
gattlib
With
bluepy
I get tens of thousands ERRORs within a very short time after the Hub has been detected
With ```bleak`` usually no devices are discovered
Versions
Any idea or pointers would be much appreciated!
The text was updated successfully, but these errors were encountered: