question

Nicholas Herbst avatar image
Nicholas Herbst asked

Mapping BMS RS485 to Venus OS

Hi All,

I'd like to consider the development of mapping a new BMS, with regards to its RS485 registers, to the Venus OS on particularly a Colour Control GX.

I would envisage connecting the BMS via a Victron RS485 to USB Interface Cable and then using the Modbus-TCP protocol on the CCGX.

It seems to have been done already with the ZBM Redflow Battery BMS. See here: https://www.victronenergy.com/live/battery_compatibility:redflow_zbm

Can anybody point me in the right direction or offer any advice?


Thanks in advance,

Nicholas

BMSrs485
2 |3000

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

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

Hi, sorry, but that won't work. You can't write BMS data to our system using ModbusTCP. The only supported protocol is CAN-bus.


The alternative would be that your driver takes the data from RS485, and then publishes it to the internal D-Bus. Doable, but tricky, there is not a lot of public documentation available - and in case there is ever some issue with such system all our support people have strict instructions to stay far away from it - as I hope you understand.


If you are going to do this, then I recommend to start with getting your hands on a system with a canbus bms, so you can see the D-Bus profile and mimick that in your own driver.

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.

Nicholas Herbst avatar image Nicholas Herbst commented ·

Thank you for the response.

Would it not be possible to "piggyback"/copy the solution that is in place for the ZBM Redflow RS485 BMS Communication?

0 Likes 0 ·
mvader (Victron Energy) avatar image mvader (Victron Energy) ♦♦ Nicholas Herbst commented ·

That code is no longer present in todays Venus OS version:

https://github.com/victronenergy/meta-victronenergy/search?q=redflow&type=Commits

That RS485 implementation was quite complex (handling multiple batteries and such) and ZBM then improved it by implementing a CAN-bus version of it: they now changed their system so that itself combines the information of all available batteries, and then it makes it into one coherent set of data.

So, we removed it.

For a framework of getting data from RS485 and then publishing it to D-Bus, better check this recently new project: https://github.com/victronenergy/dbus-modbus-client .

0 Likes 0 ·
gro avatar image
gro answered ·

Have a look here, might not be exactly what you want but I think it will achieve the final result you are after.


https://community.victronenergy.com/questions/76159/victron-venusos-driver-for-serial-connected-bms-av.html


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

Victron VE.Bus BMS product page

Victron 3rd party BMS compatibility page

Additional resources still need to be added for this topic