-
-
Notifications
You must be signed in to change notification settings - Fork 164
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 connection disrupted #655
Comments
The JKBMS also do not require it, but we tracked it down to the bluez stack. It kills the driver, if there is no more answer. We tried the driver also with Raspian and it was no problem. The bluez stack freezes after 15 hours and 20 minutes and has then to be killed to recover. This issue is known by bluez. See the links here #485 |
Super strange. I do not have had these issues before with 2.93 VenusOS and was running my JBD code for 60+ days without intervention. |
We tried with Venus OS 2.92, bleak 5.55 if I remember correctly. Have to check, if they updated it maybe. |
On what device are you running Venus OS? Are you also using an external Bluetooth adapter? |
Using built-in bluetooth of a Raspberry Pi 4. Linux raspberrypi4 5.10.110-rpi-venus-3 #1 SMP Fri May 12 18:57:15 UTC 2023 armv7l GNU/Linux VenusOS 3.0.0~42 It was running without any bluetooth restart for 24h after I removed the cronjob. I'm now constantly checking the logs (A) dbus-blebattery and (B) messages for something related to bluetooth. |
@baranator could you also try to remove the cronjob with Venus OS |
i'm quite busy at the moment, but i'm gonna have a look at it on the weekend and disable the cron. then we'll see if the watchdog is still triggered regularly every 15h20 or if this bug indeed got fixed upstream. |
I Installed v.3.00~42 and dbus-serialbattery master yesterday evening. My Bluetooth-connection suddenly unstable and reconnects every 20s, even when calling m |
Can you try to install from the dev branch? Run the |
got the same behaviour on almost every software-combination; then disabled raspi3 internal bluetooth and went back to external bluetooth-dongle again. That seemed to be the culprit for the 20s-Disconnect. I will let it run now for two days to verify if everything works for now "as it is" and then remove the cron. |
@baranator do you maybe have some news? In the meanwhile an issue #693 was opened and the driver was updated. |
@mr-manuel I used the nightly build from June 11. It seems that the BT connections die after the restart of the BT stack. In Remote Console the latest BMS figures of both BMS's freeze but there is no notification or error. My setup: Cerbo GX, internal BT, Venus OS 3.00, 2 JK BMS, dbus-serialbattery v1.0.20230611beta JK BMS 1:
JK BMS 2:
|
The issue also exists for dbus-serialbattery v1.0.20230612beta. The BT connections die at around 00:05 GMT and 14:05 GMT, respectively. |
All logs I've seen so far are related to JKBMS. Could it be an internal problem with JKBMS implementation? Has anyone also the BT connection salvation with JBD BMS? |
This is due to the cronjob. The cronjob is removed in the next beta. But anyway the driver should not behave like this. I'm searching for a solution, but have no system to test. Would you be available to contact me on Discord and give me direct SSH access to your GX device to find a solution? |
@mr-manuel A couple of days ago I removed the cronjob manually, running dbus-serialbattery v1.0.20230610beta at this time. The BT connection broke after about 15 hours ... as you mentioned above. So it seems that the bluez stack bug is still there. Though, happy to test your next beta. Unfortunately I am not using Discord. You can drop me a mail: removed for privacy |
@mr-manuel I did some further tests. The issue can be reproduced by just restarting the BT stack with P.S. By the way, check your mail if you haven't already. |
Crodjob was removed. A new issue arised. See #720 |
Describe the bug
Using a cronjob to restart at 0 and 12 the entire Bluetooth stack is really disruptive. Can we remove that restart line?
Otherwise it will interrupt the BMS communication for several seconds during that period.
JKBMS BLE may require it, but JBD BMS BLE does not and has built in recovery mechanisms.
How to reproduce
Steps to reproduce the behavior:
Expected behavior
Bluetooth Stack is not restarted
Driver version
1.0
Venus OS device type
Raspberry Pi
Venus OS version
3.0
BMS type
Smart BMS (LLT, JBD, Overkill Solar)
Cell count
18
Connection type
Bluetooth
Config file
Relevant log output
.
Any other information that may be helpful
No response
The text was updated successfully, but these errors were encountered: