question

Louis van der Walt avatar image
Louis van der Walt asked

Victron VenusOS driver for serial battery BMS - JBD / Daly / JKBMS / Renogy / ECS , etc.

Hi

I have created a VenusOS driver that can talk to BMS/Batteries that has serial communications (instead of the normal CANbus). RS485/RS232/TTL/UART and Venus 2.80+ have been tested.

Currently it works with

  • JBD BMS (LLT Power / Overkill Solar)
  • Daly BMS (Daly Smart BMS / Daly Sinowealth based BMS)
  • ANT BMS
  • MNB spi BMS - disabled by default as it requires extra libraries installed to work. Contact @Mike Dorsett for information
  • JKBMS / Heltec
  • Renogy
  • Tian Power BMS (Revov battery / LifePower)
  • ECS (GreenMeter)


The driver will act as Battery Monitor inside VenusOS which will also publish the battery to your VRM.
The following values are included:

  • State Of Charge
  • Voltage
  • Current
  • Power
  • Can handle batteries with from 3 - 32 cells
  • battery temperature
  • min/max cell voltages
  • raise alarms from the BMS
  • available capacity
  • history of charge cycles

The current release is on GitHub if you want to check it out.
You can up-vote for your BMS to be added to the driver in the here on github.
Documentation with install instructions and troubleshoot is available here


BMV Battery MonitorVenus OSBMSrs485
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

126 Answers
Elimac avatar image
Elimac answered ·

Hello!

Very nice work! I did not test it (yet) - I'm using individual cells with JBD BMS, but I have one question:

- I am using in fact 2 battery banks in parallel, one with its own BMS (100A/24V) from LTT Power. If one bank is removed, the remaing bank can handle the typical loads and charge current.

Can your application deal with parallel banks, each with its own BMS?

4 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

mvader (Victron Energy) avatar image
mvader (Victron Energy) answered ·

Super cool @Louis van der Walt

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

federico993 avatar image
federico993 answered ·

Very interesting! Will you add the REC BMS at the list?

The instructions for the serial connection are listed in the manual.

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Elimac avatar image
Elimac answered ·

This weekend I gave it a try.

I want to thank Louis for this work - it really fits with my installation :). I left my VenusGX unchanged, and for the time being this will continue to be the main unit that controls the whole installation and I used a dedicated Raspberry to experiment with this thread software.

I have LA OpZS in parallel with 2x LiFEPO4 packs, the latter do all the work - Lead Acid is only discharged rarely, like a Backup for extended periods without sun. I had a small PC running windows with LLT application to monitor and change the BMS parameters. Main function was to monitor remotely cell balance in both packs in absorption. With this VenusOS addon, I can at least monitor both packs at the very low power cost of the raspberry instead of x86 PC.

Here's the main menu of raspberry as of today:

1612722993091.png

I tried with both packs, even though was stated not to be supported, but in fact I seem to be able to monitor both packs, which was what interested me most!

And front page:

- Here we can see that the Battery data is only referreing to one of the packs, and not the SUM/ association of all packs. It's ok for me at the moment :)

EDIT: Both packs have same VRM id. This is a pitty, the current major limitation - only one BMS can be monitored in VRM.

1612723045836.png


I'm using the Pi as an AUXiliary VenusOS, just to monitor Lithium BMSs. I still have Main Venus OS in another IP, with global data available and it is the one controlling the MPPTs for the moment.

Congratulations to Louis and keep up the excellent work! It would be absolutely delightful if this software could also change BMS parameters like the original LLT windows application does, but I don't want to ask too much :)


PS: Since I was at it, I also installed the Temperature monitor (thanks LHardwick): https://github.com/LHardwick-git/Victron-Service





1612722993091.png (20.9 KiB)
1612723045836.png (17.8 KiB)
6 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Jaco Reinecke avatar image
Jaco Reinecke answered ·

This is THE best software since sliced toast ... toasted in a toaster powered by a Victron setup.

Been using it for months now, Louis is absolutely committed, and it WORKS, on my Venus and Rpi Venus.

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

gyrex avatar image
gyrex answered ·

Hi Louis, thanks for your incredible work on this project! I was wondering if you've made any progress on Daly BMS?

2 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

justin-schoen avatar image
justin-schoen answered ·

Is it possible to use this on the BMS-CAN ports on a cerbo gx

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

ve7mmg avatar image
ve7mmg answered ·

What you are doing is awesome. can I use it in conjunction with a smart shunt?

Thanks,

Mike

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Mike Dorsett avatar image
Mike Dorsett answered ·

This looks very interesting. I'm looking into integrating my BMS software with the Venus OS. My BMS software runs on a Raspberry pi - which plugs into the BMS PCB to communicate with the SPI port, and other I/O for driving relays (Gen start, load stop, charge stop). Given you're using Modbus RTU, I'm using Modbus TCP/IP, what would be needed to interface with the Venus software using modbus at localhost? i.e. the BMS software running under the Venus OS and communicating directly?

5 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Mike Dorsett avatar image
Mike Dorsett answered ·

@Louis van der Walt

Fiinally figured things out. Venus puts an additional /data in front of everything in the command console!. This lead to files in the wrong place. I've now got a fake (static) battery operating:

screenshot-from-2021-06-29-16-53-21.jpg

I can now figure out how to integrate this with the real BMS Software.


2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

nebulight avatar image
nebulight answered ·

@Louis van der Walt Great project!! Any possibility of getting the Electrodacus SBMS0 on the list? Maybe a collaboration with this guy:

https://community.victronenergy.com/questions/92229/electrodacus-sbms0-integration-with-ccgx-to-contro.html?childToView=92932#answer-92932

5 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

spidgrou avatar image
spidgrou answered ·

WOW
@Louis van der Walt Super nice project.
I'm looking forward to test it.
I've alredy received my JBD bms, just waiting the cells.
great job, so far.

Thanks

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Louis van der Walt avatar image
Louis van der Walt answered ·

There is a new version v0.8 that include Venus OS v2.80 compatibility changes for the driver.

To upgrade a V2.72 / V2.73 device you will need to update the battery driver first, then update the Venus firmware to 2.80 and the battery will still be there on V2.80.

(You can still upgrade the driver after the firmware, but then the battery will not offline until the new driver is installed and device rebooted)


2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

alekspoker2 avatar image
alekspoker2 answered ·

Hi Louis, jbd has a new BMS that is 200amp 7s to 20s and it can come with CANBUS. I have one of those with CANBUS in my possession. I also have some documentation on the canbus protocol and identifiers it is using. Would you be interested in trying to make this BMS work with Victron GX devices so BMS data can be sent to GX over CANBUS?

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Elimac avatar image
Elimac answered ·

This week end I have upgraded to version 0.9. I'm running this driver in a Raspberry Pi 3B, just for monitoring pursposes of 2x Lithium banks using each one JBD BMS, connected by USB to the Pi. I was excited to find that after the upgrade the VRM instance of the two banks was different and thus I could record both banks history in VRM Portal. Which I did - VRM instance 2 and 3. Nice!

But after one reboot, both Battery Monitors assumed the same VRM id (1), same as before. So, I'm curious. Was anything been changed to enable more than one bank recording in VRM Portal? If not, how could I briefly had this (wanted) behavihour? I'm trying to replicate and can't... now they have always same ID after reboot.



1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

liam-tuvey avatar image
liam-tuvey answered ·

Hi @Louis van der Walt thanks so much for your work on this.

I'm trying to understand the best way to connect / what cables I need.

I have a JBD 8s BMS with a Bluetooth adaptor connected to a 4 pin serial port. I also have a uart to usb adapter that came with the with the BMS that replaces the Bluetooth adapter. I'm connecting to a cerbo Gx.

Can I use a ve.direct cable connected to the serial port on the BMS instead, or do I need to use the USB interface?

What's the preferred way of connecting?

Many thanks

7 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

mianfrar avatar image
mianfrar answered ·


I bought a bms jbd with the intention of inserting the driver but as I connected it, it appeared on the Cerbo screen

sin-titulo.jpg


I was happy and connected the bms to the computer to configure the limits and the capacity of the battery with jbdtools but after reconnecting it it no longer detects it




sin-titulo2.jpg


sin-titulo2.jpg


Nor does it come out as a disconnected equipment and I think there is something left in the cerbo that thinks that it is still there, it gives me an error in the modbus of ID 1 which is where I detect the bms at the time

  1. any idea what's going on?


  1. photo-2021-11-04-23-02-48.jpg



PD:
I had tried to update the firmware to the louis version but I was not able, it gave me an error and now I wonder if it was actually updated and I did not realize ...


sin-titulo.jpg (49.5 KiB)
sin-titulo2.jpg (67.3 KiB)
sin-titulo2.jpg (67.3 KiB)
7 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

mianfrar avatar image
mianfrar answered ·

Solved. Without realizing it I had installed the driver but this one for lifepo4 limited to 3.45v which is 51.75v for 15s. Edit the file utils.py and it works

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

ds1707 avatar image
ds1707 answered ·

Hello,

Looks like awesome work, couldn't test it because i am waiting for my battery cells.

I will test it with 16 280Ah cells with JK BMS and Victron Multiplus II 5000

But i have two questions in advance.

1. What advantages does a Victron smart shunt has and do i need this additional to your driver?

2. In the future i plan a second bank, i am not sure if multiple BMS are working with your application or an roghly estimation when it will work?

Thank you very much!

Best Regards,

Dominik

3 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Paul B avatar image
Paul B answered ·

Hi would you be able to add the Chargery BMS to your Program, I have added a existing project

The latest 1.26 version details are here https://github.com/Tobi177/venus-chargerybms/blob/25f8540d9a5a8ce9a1806816eb10d4698721d4ee/docs/bms24_additional_protocol%20V1.26.pdf

This protocol is used for BMS8T, BMS16T and BMS24T to communicate with an external device through RS232 by
UART. Open source code can be used as described on https://github.com/Tobi177/venus-chargerybms


1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

ystwyth1 avatar image
ystwyth1 answered ·

This looks awesome, has any one tested it with the pylon 2000 and 3000 series batterys, I'm looking at the 2500 24v set but can't find any in the UK with can bus only a com port. If this works it would be a great addition to the V os and open up more bms options

3 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

captkrisp avatar image
captkrisp answered ·

Hello Luis,

Thank you very much for creating this module and your continued work on it.

I have a Daly 12V250A BMS and running Venus OS on rPi3B+.

I first installed your code a couple months ago. For some reason I could not get it to work, maybe due to WiFi being enabled which has since been disabled. Today pulled the lasted code and am pleased to find it now recognizes the Daly BMS.

I noticed that the displayed current is inverted on both the Remote Console and VRM so I changed line 77 of your file daly.py to be as follows:
self.current = -((current - self.CURRENT_ZERO_CONSTANT) / -10)

This restores the correct current flow direction. I had read elsewhere that Daly reverses their current flow so I'm guessing that the BMS I have is a newer model and they have corrected the current flow data since my Bluetooth app doesn't show reversed current flow as others have reported.

To further help others, I set a flag in file utils.py to indicate whether the BMS reports inverted current flow:
# battery Current limits
MAX_BATTERY_CURRENT = 120.0
MAX_BATTERY_DISCHARGE_CURRENT = 150.0
# BMS reports inverted current flow
INVERTED_CURRENT_FLOW = False

Then in file daly.py replaced line 77 with:
if INVERTED_CURRENT_FLOW is True:
self.current = (current - self.CURRENT_ZERO_CONSTANT) / -10
else:
self.current = -((current - self.CURRENT_ZERO_CONSTANT) / -10)

(formatting is lost in this editor)

I hope this helps.

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Louis van der Walt avatar image
Louis van der Walt answered ·

There is a new beta version that adds support for Renogy BMS.
If you have a Renogy and can give feedback follow the thread at

https://github.com/Louisvdw/dbus-serialbattery/issues/12

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

ds1707 avatar image
ds1707 answered ·

Hello Louis,

i am a new to RS485, for more than 1 battery.

Do i need a second RS485 to usb converter or can i but both cabkes to the existing converter?

Best regards,

Dominik

3 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Harold Halewijn avatar image
Harold Halewijn answered ·

Great!

I have 1 Daly hooked up succesfully with your installation procedure. Will try a few more the comming days.


6 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

corvus avatar image
corvus answered ·

I have a Cerbo GX running 2.73 I can't seem to install the file. I noticed in the installation info that there is an probem with the Cerbo GX installing. I did not try the other installation methods because I edited the utils.py file to update the battery voltage and current for my battery setup.

4 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Lars Filusch avatar image
Lars Filusch answered ·

it looks like 123electric is doing something similar with their 123BMS...

https://123electric.eu/products/new-product-123smartbms-to-usb/

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

mendok avatar image
mendok answered ·

Hi all

This is more so for victron.....

Is victron planning to fix/ upgrade the cerbo gx anytime soon ??

I would like too and many others , just to use the SD slot and auto install Louis van der Walt software !

I am having logging is issues to the cerbo, access denied, using ssh

Cheers mendo

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Elimac avatar image
Elimac answered ·

Tried to update to latest version, via script as I normally do, but this time I had this error:

1641858049961.png

Anything I could do?


1641858049961.png (11.4 KiB)
3 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

jimmym avatar image
jimmym answered ·

I'm getting a JBD 200A BMS with UART and 485 ports. The 485 port doesn't have a connector, but is called out in the product info. I have an email in to clarify the the 485 port functions.

I want to be able to use the Bluetooth module on the UART port but connect the 485 port to the RasPI//Venus.

From some of the other answers posted, it looks like I'll need an RS485-USB adapter.

Should I still be able to use the UART/BT to connect the app to see individual cell voltages and balance status while also having the BMS connected to the RasPI/Venus?


What data does Venus display from the BMS that I can;t get from my BMV?


Thanks

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

bedggy avatar image
bedggy answered ·

Hi just a couple of questions, so does this driver essentially give me the same reporting and integration as the REC active bms, I understand REC and Daly are apples and oranges but the price difference is made greater if the Daly now integrates just as well.

And second since this driver now allows the Daly BMS to act the battery monitor does that mean that the use of a smartshunt is pointless?

11 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

thom-63 avatar image
thom-63 answered ·

Hi, I am working with a venus 2.73 on a Raspberry Pi and tried to install the driver via auto install on boot (folder venus-data on a USB stick), but I could not see any effect on the Victron Remote Console. Therfore I tried to manually install via ssh. First I used the command

wget https://raw.githubusercontent.com/Louisvdw/dbus-serialbattery/master/etc/dbus-serialbattery/installrelease.sh


But when I tried to start the install script via "sh installrelease.sh" I get the following error messages:

ln: /opt/victronenergy/service/dbus-serialbattery: No such file or directory

ln: /opt/victronenergy/service-templates/dbus-serialbattery: No such file or directory


Is there any other way to sucessfully install the driver? And how can I check the driver was installed sucessfully?

2 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

luphi avatar image
luphi answered ·

Hello Louis,

could you please explain what the issues are in using your driver in parrallel to a SmartShunt.

Cheers,

luphi

5 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

smejfi avatar image
smejfi answered ·

Hello guys, has anyone made Daly Smart BMS working over UART port with this driver? I cant seem to get it recognized by Venus os although Im using original VE direct to USB cable and if I use this same cable on windows computer with Daly software, it works. Any tips how to make it work? Thank you!

2 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

luphi avatar image
luphi answered ·

I added the cell deviation comming from the Daly and the starter battery voltage comming from the SmartShunt to the Overview. OverviewHub.qml.txt1644150379324.png

I have the daly connected to USB0 and the Shunt to USB1. Possibly you have to adjust line 75-77

Cheers, luphi


1644150379324.png (28.0 KiB)
overviewhubqml.txt (8.2 KiB)
1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Harold Halewijn avatar image
Harold Halewijn answered ·

Hi Louis,

Last week I did a few modifications to my system;

  • I installed a BMV700 BMS between the 3 Daly Batteries and the Victron Inverters
  • I upgrade firmware on the Multiplus II inverters due to Overload error's
  • I upgraded firmware on the CCGX from 2.73 to 2.84

Now I have lost connection to two of the Daly BMS's. The system only shows ttyUSB1.

I've followed your troubleshoot remarks and I tried to go back to CCGX firmware 2.73 (with factory reset). Nothing helps. I do see some strange results in the logfiles which I'll show you here.

1646666379167.png

The amount of symbolic links is strange. I don't know how to solve this, if it is related to the problem I'm discovering. As you can see the other services USB0 and USB2 are started. But they are not shown.

The Daly driver I'm using is version 0.1

Have you ever seen this before?

Regards,

Harold


1646666379167.png (122.0 KiB)
2 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Sean Jacobs avatar image
Sean Jacobs answered ·
I need help with this...


I'm pretty technically savvy with an electrical engineering degree (15ish years ago but been out of practice).

I just finished installing a quattro with 2 battery banks using JK BMS.... I'd LOVE this integration but honestly no idea where to start lol

can somebody walk me through more steps? I have a Cerbo...


THANKS!

3 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

schalk-2 avatar image
schalk-2 answered ·

Hi ,

Does someone know what BMS the Huawei ESM48100A use?

I get output on the RS485 when using a serial port monitor.

I just want to get a SOC reading from these batteries

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

lfhoward avatar image
lfhoward answered ·

Louis, thank you for developing this software! I have an Overkill BMS and a Raspberry Pi running Venus OS on my trailer, and I’d like to get them to talk to each other. I have a Victron VE.direct cable but the connector at the end is smaller than the 4 pin connector on the BMS (where the bluetooth dongle goes). I made an adapter to allow the cable to plug into the larger port. However, The BMS is not showing up in the device list on the Venus. I am wondering if the wires need to be swapped to different positions to allow the BMS to talk to the Victron system?

Here are the pin positions I used:

On the Victron cable side:
https://i.postimg.cc/KzK0nbHy/DCF4-B009-9023-46-A5-83-E9-ACF585769-E50.jpg

On the Overkill BMS side:
https://i.postimg.cc/C1Wm723n/CAAD32-CC-614-E-4-E3-A-A379-9870-B64-F212-C.jpg

Note: my system does not include a Multiplus inverter.

Thank you!

2 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

wudycool avatar image
wudycool answered ·

Good Morning, i sold my ccgx which was working well with your driver. I bought a new Cerbo gx and updated the firmware to 2.84. Logged in via ssh-> root downloaded via wget and executed install.sh.

with the old CCGX the usb dongle was blinking all the time. now with the cerbo it blinks once when plugged in, then stays red constandly.

its a jk bms JK-B1A24S15P with the jk 485 dongle and a DSD TECH SH-U11L USB to RS485 RS422 Cable with FTDI FT232 Chip 1.5M. worked perfektly fine with the ccgx. Any idea what i did wrong?

less /data/log/dbus-serialbattery.TTY/current

( less /data/log/dbus-serialbattery.ttyUSB0/current did not exist....)


  1. @4000000062404fad1441e7cc ERROR:SerialBattery:>>> ERROR: Incorrect Data
  2. @4000000062404fad144ae87c WARNING:SerialBattery:Testing Daly
  3. @4000000062404fad1460b29c ERROR:SerialBattery:[Errno 2] could not open port /dev/TTY: [Errno 2] No such file or directory: '/dev/TTY'
  4. @4000000062404fad146baf1c WARNING:SerialBattery:Testing Daly
  5. @4000000062404fad148063e4 ERROR:SerialBattery:[Errno 2] could not open port /dev/TTY: [Errno 2] No such file or directory: '/dev/TTY'
  6. @4000000062404fad148c94fc WARNING:SerialBattery:Testing Jkbms
  7. @4000000062404fad14a0d0ac ERROR:SerialBattery:[Errno 2] could not open port /dev/TTY: [Errno 2] No such file or directory: '/dev/TTY'
  8. @4000000062404fad14abbd8c WARNING:SerialBattery:Testing Sinowealth
  9. @4000000062404fad14c04374 ERROR:SerialBattery:[Errno 2] could not open port /dev/TTY: [Errno 2] No such file or directory: '/dev/TTY'
  10. @4000000062404fad14cb3054 WARNING:SerialBattery:Testing Renogy
  11. @4000000062404fad14e2aff4 ERROR:SerialBattery:[Errno 2] could not open port /dev/TTY: [Errno 2] No such file or directory: '/dev/TTY'
  12. @4000000062404fad32ca7eac ERROR:SerialBattery:ERROR >>> No battery connection at /dev/TTY
  13. @4000000062404fad3a2e5344 /opt/victronenergy/serial-starter/run-service.sh: line 15: kill: (10651) - No such process

less /data/log/serial-starter/current:

  1. @4000000062404f910cd3ddec INFO: Start service dbus-modbus-client.serial.ttyUSB0 once
  2. @4000000062404f941ca38524 INFO: Start service dbus-serialbattery.ttyUSB0 once
  3. @4000000062404f972adcbd7c INFO: Start service gps-dbus.ttyUSB0 once
  4. @4000000062404f9a39c8696c INFO: Start service vedirect-interface.ttyUSB0 once
  5. @4000000062404f9e0c81705c INFO: Start service dbus-cgwacs.ttyUSB0 once
  6. @4000000062404fa11abfe48c INFO: Start service dbus-fzsonick-48tl.ttyUSB0 once
  7. @4000000062404fa429d5b1a4 INFO: Start service dbus-imt-si-rs485tc.ttyUSB0 once
  8. @4000000062404fa738c3e9ec INFO: Start service dbus-modbus-client.serial.ttyUSB0 once
  9. @4000000062404fab0bc4d71c INFO: Start service dbus-serialbattery.ttyUSB0 once
2 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

John macrae avatar image
John macrae answered ·

I opened a discussion at Github on integrating my own BMS with this driver.

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Jan Urbánek avatar image
Jan Urbánek answered ·

Hi, new in Victron so my question is little basic.

If like to connect Daly BMS what option we have? Serial RS485 and 232 i see. And CANBUS works too or other way?

2 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

luphi avatar image
luphi answered ·

Hello Louis,

I saw, you hardcoded a current limit based on SOC.

Could you implement a switch (variable) in utils.py to disable that feature?

Cheers,

luphi

2 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Brian Brown avatar image
Brian Brown answered ·

Any plans to support bluetooth communication from the Cerbo GX to the Xiaoxiang compatible BMS's such as the OverKill Solar (JBD)?

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

luphi avatar image
luphi answered ·

@Louis van der Walt ,

does your driver makes the battery (Daly BMS) intelligent?

Okay, might be an strange question, let me explain:

I have a Multiplus 12/2000 and three Smart MPPTs, which can charge the battery in parallel.

The MPPTs are networked via VictronConnect App, which means we can treat them as one.

To merge the charging algorithms of the inverter/charger and the MPPTs, I thought it might be a good idea to enable DVCC on the Cerbo GX to sync the algorithms, but according to the documentation, that works only for "intelligent" batteries

1649675515782.png

So, I switched it on and configured the SmartShunt for to be SVS and SCS.

After that I started charging via the Multi and noticed, that the Multi didn't switch to fload like configured, which leads to the assumption, that I have an "intelligent battery". Unfortunately I couldn't find any way to configure the charging algorithm of the your driver like Absorption voltage, float voltage, etc.

So, how can I archive a central charging algorithm for the Multi and the MPPTs ?

Cheers, luphi



1649675515782.png (210.6 KiB)
6 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

jsladen avatar image
jsladen answered ·

Hi, I have a Cerbo running Venus 2.82 large, and I am trying to connect it to a JK-B5A24S (HW v8) Balancer (Balancer only, not BMS).


Using a Victron USB RS485 I believe I am correctly connected to the Balancer, and I get both red and green flashing lights on the interface every few seconds, however looking at the driver log it never detects the unit.

Should this be working with a Balancer only unit? And if so, is there anything else I can investigate?


The only part of the log that doesn't say 'no reply' is: WARNING:SerialBattery:Testing Sinowealth

@400000006265ad8b0ec401a4 ERROR:SerialBattery:read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)


Does that provide any suggestion as to what is happening?


Cheers

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Louis van der Walt avatar image
Louis van der Walt answered ·
I have only implemented and tested the JK BMS. No idea if the balancer will be using the same commands, but from your test it seems that it does not.
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

peter-tau avatar image
peter-tau answered ·

> Louis van der Walt > Sean Jacobs · Mar 09 2022 um 7:05 PM
> You need to connect your 2x JKBMS to your Cerbo using USB-RS485 converters.

Is it indeed supported to connect multiple BMS to the Cerbo? Sure, the RS485 MODBUS interface should cope with it. But what happens on the Cerbo end if data from one than more BMS arrives?

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

lennycb avatar image
lennycb answered ·

hello @Louis van der Walt

is that correct or a mistake?

I had adapted the utils.py file from:

  1. MAX_BATTERY_CURRENT = 50.0
  2. MAX_BATTERY_DISCHARGE_CURRENT = 60.0

to

  1. MAX_BATTERY_CURRENT = 70.0
  2. MAX_BATTERY_DISCHARGE_CURRENT = 120.0

Now only the discharge value changed in the display. It's funny that the charge value was 5A instead of 50A in the display.

jbd.jpg

PS: the data current limitation is deactivated in the DVCC.


jbd.jpg (23.7 KiB)
2 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Lee avatar image
Lee answered ·


Hi @Louis van der Walt


i've testet your driver a couple days with an raspi.

Last Saturday i mounted the battery in my caravan. Here i use an VenusGX. I Use the latest release candidate of Venus OS with your Driver, the BMS is a Dali BMS and i will get some Errors like in the Screenshot below.

There are very Strange Things happened. My System isn't be able to charge the battery with 218434 Amps. Also the Error "High Voltage or Low Voltage" apperard several times but the System Voltage is absolutely within normal parameters.

These problems did not occur when the battery was still connected to the test system.


error.jpg


error1.jpg


error2.jpg


error3.jpg



error.jpg (40.2 KiB)
error1.jpg (39.3 KiB)
error2.jpg (38.4 KiB)
error3.jpg (39.2 KiB)
4 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Related Resources