@emerge411 Might you be able to share more regarding this? I have Brad's solution up and running and it works great, especially with the automated reconnect. But I have another battery in parallel and your solution looks to be the only avenue at the moment. I am a novice at all of this SSH stuff, I know I need to jump into the files with a text editor but unsure what next steps would be.This is awesome. Installed and running now. I have two batteries in parallel so looking forward to updated support for that.
I am able to run two seperate processes to get two entries in the display running. Its not elegant or the right way to do it but it works.
I setup a second "service" for the second battery and modify the run command to point to the below dbus-btbattery(1|2).py files.
/opt/victronenergy/service/dbus-btbattery/run
and
/opt/victronenergy/service/dbus-btbattery2/run
I created two copys of both dbus-btbattery.py and jbdbt.py
dbus-btbattery1.py
jbdbt1.py
and
dbus-btbattery2.py
jbdbt2.py
jbdbt.py had line 155 editied with the new name for the display.
dbus-btbattery was edited to import the corisponding jbdbt(1|2).py file.
View attachment 144361
@BradCagle This was working fantastic for me with my Cerbo GX (albeit every once in a while it would disconnect and throw errors, but it would fix itself after rebooting for some time) but now I cannot get it to work any longer.
Thank you for all the links. I will do some exploring.IIRC, @BradCagle isn't developing it anymore, and @Louisvdw 's version now supports bluetooth.
![]()
Renogy is on the BMS support list.
Recommend you scour the site and make your best effort:
![]()
How to install, update, disable, enable and uninstall | dbus-serialbattery
🚨 NB! Before you beginlouisvdw.github.io
Multiple batteries require additional drivers:
![]()
FAQ (Frequently Asked Questions) | dbus-serialbattery
How to change the default limitslouisvdw.github.io
I will state that I found the bluetooth reliability to be unacceptable from either source; however, in the newer Venus OS, it could be installed as a battery monitor only without actual control of the system. I would likely be willing to use bluetooth that way.
I'm using a JBD with UART to USB adapter to a RPi running Venus 3.10 with @Louisvdw 's driver. It is not interfaced with any other Victron equipment - simply a test system. Here's a 30 day plot for giggles:
View attachment 172011
I would consider putting this battery in control of a Victron system via direct UART to USB connection.
Also worth exploring:
I see with the initial overview of the github that although @Louisvdw's project supports the Renogy BMS as well as Bluetooth, it does not support Renogy over bluetooth, only JKBMS/Heltec and Smart BMS. This looks like it may require some development.IIRC, @BradCagle isn't developing it anymore, and @Louisvdw 's version now supports bluetooth.
![]()
Renogy is on the BMS support list.
Recommend you scour the site and make your best effort:
![]()
How to install, update, disable, enable and uninstall | dbus-serialbattery
🚨 NB! Before you beginlouisvdw.github.io
Multiple batteries require additional drivers:
![]()
FAQ (Frequently Asked Questions) | dbus-serialbattery
How to change the default limitslouisvdw.github.io
I will state that I found the bluetooth reliability to be unacceptable from either source; however, in the newer Venus OS, it could be installed as a battery monitor only without actual control of the system. I would likely be willing to use bluetooth that way.
I'm using a JBD with UART to USB adapter to a RPi running Venus 3.10 with @Louisvdw 's driver. It is not interfaced with any other Victron equipment - simply a test system. Here's a 30 day plot for giggles:
View attachment 172011
I would consider putting this battery in control of a Victron system via direct UART to USB connection.
Also worth exploring:
I see with the initial overview of the github that although @Louisvdw's project supports the Renogy BMS as well as Bluetooth, it does not support Renogy over bluetooth, only JKBMS/Heltec and Smart BMS. This looks like it may require some development.
I agree, bluetooth isn't the best option, but the bluetooth smart batteries don't have a hard wired option or I would go that route. I (incorrectly) made the assumption when I purchased the batteries that they would have the 485 connection, but they do not. I was a bit surprised when I unboxed to find a portless battery.You are correct. In addition to the documentation, it is clear in the configuration file that the BT is only available for JK and JBD.
Again, I would discourage use of BT. If you can connect via RS485 or UART, that's the preferred method by far. You don't want to have to reboot your GX device regularly to maintain contact with the BMS(s).
I agree, bluetooth isn't the best option, but the bluetooth smart batteries don't have a hard wired option or I would go that route. I (incorrectly) made the assumption when I purchased the batteries that they would have the 485 connection, but they do not. I was a bit surprised when I unboxed to find a portless battery.
Yeah it seems a bit risky. I've got a smart shunt I can rely on. Appreciate your inputthen I would encourage you to disable BMS control in Venus OS 3.10 and only use the GX/VRM for battery monitoring. I absolutely, positively would not put a BT connected BMS in control of my system.
Yeah it seems a bit risky. I've got a smart shunt I can rely on. Appreciate your input
I created a Bluetooth version of @Louisvdw serial driver
It's still very early work-in-progress. It only supports JBD BMS at the moment.
Code is here: https://github.com/bradcagle/dbus-btbattery
Instructions on how to get it going is in the README.md
If you need to setup a Raspberry Pi you can watch my how-to video
Hi Brad, Thank you so much for the very helpful instructions! I am able to start the BT BMS in Venus OS but it shuts off as soon as I close Putty. I see the instructions for Nano, but I have no idea where to make the change. I would be very grateful for some directions for this.
Thank you!
To make dbus-btbattery startup automatically
nano service/run
and replace 70:3e:97:08:00:62 with the Bluetooth address of your BMS/Battery
Save with "Ctrl O"
run ./installservice.sh
reboot
Hi,Hi All,
I have been using this in my Truck and it's been working well thanks @BradCagle for the project.
I built a new PI for a friend for his truck and tested it against one of my batteries and it worked fine.
His JBD 4s works ok with the APP on his iPhone but when it connects from the PI it pauses for a few seconds and then reports the following error:
root@raspberrypi2:/opt/victronenergy/dbus-btbattery# ./dbus-btbattery.py A4:C1:37:23:45:21
INFO:BluetoothBattery:Starting dbus-btbattery
INFO:BluetoothBattery:dbus-btbattery v0.1.3
INFO:BluetoothBattery:Connecting A4:C1:37:23:45:21
INFO:BluetoothBattery:0.0017201560000046356
INFO:BluetoothBattery:0.002624010000005228
INFO:BluetoothBattery:Connected A4:C1:37:23:45:21
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/opt/victronenergy/dbus-btbattery/jbdbt.py", line 105, in run
while self.bt.waitForNotifications(0.5):
File "/usr/lib/python3.8/site-packages/bluepy/btle.py", line 560, in waitForNotifications
resp = self._getResp(['ntfy','ind'], timeout)
File "/usr/lib/python3.8/site-packages/bluepy/btle.py", line 416, in _getResp
self.delegate.handleNotification(hnd, data)
File "/opt/victronenergy/dbus-btbattery/jbdbt.py", line 159, in handleNotification
self.cellData = self.cellData + data
TypeError: unsupported operand type(s) for +: 'NoneType' and 'bytes'
^[[B^[[INFO:BluetoothBattery:60.07307914399999
Any suggestions are gratefully received.
Thanks, Rich