BLE (Bluetooth) BMS notify instead of polling? #684
Closed
seidler2547
started this conversation in
Ideas
Replies: 2 comments 4 replies
-
@idstein would this also be something the the JBD BLE driver? |
Beta Was this translation helpful? Give feedback.
0 replies
-
It is possible, but Venus OS should not process at a faster interval. We need async dbus for better efficiency before starting to increase the frequency. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have played around with my JKBMS over BLE and with a few small code changes I was able to remove the polling loop and rather publish new values to dbus as soon as a complete packet is decoded. Noticeable change is that JKBMS actually sends updates every 500--600ms, so twice as fast as the current polling interval.
I have not yet had the time to update to the latest version of either Venus OS or dbus-serialbattery, but if it's of interest I can see if I can make the time for that and make the changes there. But the changes are really easy, basically don't start the poller if it's a BLE battery, add a new_values_callback lambda variable to the battery class and call it there after self.decode().
Stefan
Beta Was this translation helpful? Give feedback.
All reactions