-
Notifications
You must be signed in to change notification settings - Fork 26
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
Bluetooth interface requires periodic reset #29
Comments
Hey, thank you for the report. Unfortunately, this issue cannot be easily fixed. Here is an issue in bleak hbldh/bleak#500 |
Thanks for the prompt answer. I am not sure whether it is the same issue. In fact, ble2mqtt does not use a lot of CPU time on the Pi Zero. I periodically see it flashing up in top with about 20% CPU usage, but not more and neither permanently. Besides, the LYWSD03MMC devices do not change their bluetooth address. So this problem might be something else. Would you be interested in a debug level log? |
I should probably add that connection to the sensors is not very reliable as I am operating at the range limit. Ble2mqtt sometimes fails to find and connect to the sensors. Looking at the log I get the impression that the connection task is destroyed, while it is still trying to connect to a device, possibly because the next poll is already due. Might that be the cause of the observed behaviour? In this case it should help to reduce the timeout interval or increase the poll interval. |
I noticed that bluetooth connections have a tendency to fail on one of my Raspberry Pi Zero W running ble2mqtt under RaspbianOS (Debian). Initially, ble2mqtt is able to connect to Xiaomi LYWSD03MMC temperature and humidity sensor devices. After a while, connections always fail and I start to see the following error messages in the log:
After reset of the bluetooth interface, everything seems to work again until the next failure:
Any idea, what might be causing this problem? Obviously, I am interested in a stable setup that does not require any manual interventions.
The text was updated successfully, but these errors were encountered: