mr-manuel / venus-os_dbus-serialbattery

Battery Monitor driver for serial battery in VenusOS GX systems
https://mr-manuel.github.io/venus-os_dbus-serialbattery_docs/
MIT License
39 stars 15 forks source link

Daly WNT issue? Batteries in Parallel not displaying in Venus OS #93

Open NickRoberts174 opened 2 days ago

NickRoberts174 commented 2 days ago

Describe the bug

My Equipment Victron Cerbo GX Victron MPPT 250|100 Solar Charge Controller Victron Multiplus-II 48/5000/70 Battery 1 - 280AH x18s LiFePo4, Daly 150A BMS, Parallel protection board, 1A active Balancer and WNT interface board Battery 2 - 280AH x18s LiFePo4, Daly 150A BMS, Parallel protection board, 1A active Balancer and WNT interface board The Batteries are connected in series.

The Daly WNT board supports RS485, RS232 and CAN 500kbps connections, The WNT boards are addressed via dip switches.

The issue I have is when connecting both batteries to the dbus serial driver (via RS485) at once. I have 2x USB to serial converters connected to the cerbo (https://www.amazon.co.uk/dp/B081NBCJRS?ref=ppx_yo2ov_dt_b_fed_asin_title) , they both work individually, but if you plug both in at the same time, one battery will show up, while the other does not. The one which shows up sometimes goes blank and then changes to display the other battery, this often happens after a reboot.

Despite many different configurations and conditions, The driver does not display both batteries at the same time, which is what I am hoping to achieve.

Solutions I have already tried

How to reproduce

Attempt to connect Daly WNT boards to cerbo GX using RS485 - USB adaptor and this Driver in any of these formats;

image image image image image image

Expected behavior

Expect 2 separate entries for each battery. Sometimes on reboots, there is a second entry which shows 'disconnected' it will never reconnect, on a reboot, it may work, but then the other battery will not. the data displayed is not locked to an individual battery either, it appears to be random for which data it will show.

image image

Driver version of the currently installed driver

v1.4.20240928

Driver version of the last known working driver

No response

Venus OS device type

Cerbo GX

Venus OS version

v3.42

BMS type

Daly BMS

Cell count

2x 18s (in parallel)

Battery count

2

Connection type

Serial USB adapter to RS485

Config file

[DEFAULT]

; If you want to add custom values/settings, then check the values/settings you want to change in "config.default.ini"
; and insert them below to persist future driver updates.

; Example (remove the semicolon ";" to uncomment and activate the value/setting):
; MAX_BATTERY_CHARGE_CURRENT = 75.0
; MAX_BATTERY_DISCHARGE_CURRENT = 150.0

Relevant log output

@40000000670eeb8810b4dcf4 INFO:SerialBattery:Starting dbus-serialbattery
@40000000670eeb8810d44bd4 INFO:SerialBattery:Venus OS v3.42
@40000000670eeb8810ddb5fc INFO:SerialBattery:dbus-serialbattery
v1.4.20240928
@40000000670eeb98120960d4 INFO:SerialBattery:-- Testing BMS: 1 of 3
rounds
@40000000670eeb98120987e4 INFO:SerialBattery:Testing Daly at address
"\x40"
@40000000670eeb982ddc12fc INFO:SerialBattery:Connection established to
Daly
@40000000670eeb9f07c426cc INFO:SerialBattery:Found existing battery with
DeviceInstance = 1
@40000000670eeb9f21e901e4 INFO:SerialBattery:DeviceInstance = 1
@40000000670eeb9f2200e32c ERROR:SerialBattery:** DRIVER STOPPED!
Another battery with the same serial number/unique identifier "20230708"
found! **
@40000000670eeb9f220a513c ERROR:SerialBattery:Please check that the
batteries have unique identifiers.
@40000000670eeb9f22144804 ERROR:SerialBattery:Change the
customizable field in your BMS settings to be unique.
@40000000670eeb9f2231596c ERROR:SerialBattery:To see which battery
already uses this serial number/unique identifier check this file "/var/tmp/dbus-
serialbattery_1.pid"
@40000000670eebf013564b64 INFO:SerialBattery:

Logs attached in additional info (maximum is 65536 characters exceeded here)

Any other information that may be helpful

Logs (combined).pdf

mr-manuel commented 15 hours ago

As the error message in the log states, you have two batteries with the same identical identifier. You need to change that identifier with the Daly PC software.

NickRoberts174 commented 14 hours ago

They are addressed differently in the Daly PC software - using the PC master tool, under the engineering settings Battery one is addressed Board 1, battery 2 is addressed Board 2. I have tried changing the slave numbers too but it doesn't seem to have any effect?

image

Is there another way of giving them unique addresses? I have also previously tried setting line 449 of the config.default.ini file to TRUE, hoping I could use the USB as the unique identifier and had no luck there.

image

mr-manuel commented 12 hours ago

Please check the documentation: https://mr-manuel.github.io/venus-os_dbus-serialbattery_docs/next/general/connect/

mr-manuel commented 12 hours ago

Would be great, if you could provide a screenshot of the whole window of this software, so I can update it in the documentation.