Closed hwater closed 8 months ago
Can you please install the nightly from my branch and test if it works?
In your case this should work with:
bash /data/etc/dbus-serialbattery/install.sh
Then select nightly build
(option 3) -> dev (mr-manuel's repo)
(option 3).
Can you please enable it again. I startet the install from an wrong pi. Now on the right one it is gone ;-(
Greetings, Holger
Am 12.01.2024 um 14:28 schrieb Manuel @.***>:
Can you please install the nightly from my branch and test if it works?
In your case this should work with:
bash /data/etc/dbus-serialbattery/install.sh Then select nightly build (option 3) -> dev (mr-manuel's repo) (option 3).
— Reply to this email directly, view it on GitHub https://github.com/Louisvdw/dbus-serialbattery/issues/919#issuecomment-1889208714, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2HE4NHHCPFQLTOURYN4RDYOE3BVAVCNFSM6AAAAABBYBOK6OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBZGIYDQNZRGQ. You are receiving this because you authored the thread.
Hello Manuel this patch works, i will go on with more checking....
greetings, Holger
Last login: Fri Jan 12 17:30:27 2024
root@raspberrypi2:~# tail -F -n 100 /data/log/dbus-canbattery.can8/current | tai64nlocal
2024-01-12 17:30:32.389509500 INFO:SerialBattery:> LINEAR LIMITATION ENABLE: True
2024-01-12 17:30:32.389519500 INFO:SerialBattery:> MAX BATTERY CHARGE CURRENT: 10.0A | MAX BATTERY DISCHARGE CURRENT: 40.0A
2024-01-12 17:30:32.389524500 INFO:SerialBattery:> CVCM: True
2024-01-12 17:30:32.389527500 INFO:SerialBattery:> MIN CELL VOLTAGE: 2.9V | MAX CELL VOLTAGE: 3.45V
2024-01-12 17:30:32.389532500 INFO:SerialBattery:> CCCM CV: True | DCCM CV: True
2024-01-12 17:30:32.389537500 INFO:SerialBattery:> CCCM T: True | DCCM T: True
2024-01-12 17:30:32.389660500 INFO:SerialBattery:> CCCM SOC: True | DCCM SOC: True
2024-01-12 17:30:32.389664500 INFO:SerialBattery:Serial Number/Unique Identifier: DalyBMS4cells_NoneAh
2024-01-12 17:30:34.440181500 INFO:SerialBattery:Found existing battery with DeviceInstance = 2
2024-01-12 17:30:34.684706500 INFO:SerialBattery:DeviceInstance = 2
2024-01-12 17:30:34.685286500 INFO:SerialBattery:Used device instances: ['1', '3', '12', '4', '9', '5', '10', '6', '7', '2', '14', '13', '8', '11']
2024-01-12 17:30:34.685822500 INFO:SerialBattery:com.victronenergy.battery.can8
2024-01-12 17:30:34.706321500 INFO:SerialBattery:publish config values = True
Sorry, this is the logfile AFTER rebooting:
Also, do i need to populate all the parameters into my config.ini ? Now, as seen above i have only the CAN port and the MAX_BATTERY in it.
2024-01-12 18:30:04.549606500 *** CCGX booted (0) ***
2024-01-12 18:31:56.995809500
2024-01-12 18:31:58.967776500 INFO:SerialBattery:
2024-01-12 18:31:58.968400500 INFO:SerialBattery:Starting dbus-serialbattery
2024-01-12 18:31:58.969630500 INFO:SerialBattery:dbus-serialbattery v1.1.20240112dev
2024-01-12 18:32:00.056268500 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
2024-01-12 18:32:00.056845500 INFO:SerialBattery:Testing Daly_Can
2024-01-12 18:32:00.187786500 INFO:SerialBattery:DalyBMS 4 cells
2024-01-12 18:32:00.188749500 INFO:SerialBattery:Connection established to Daly_Can
2024-01-12 18:32:00.189269500 INFO:SerialBattery:Battery Daly_Can connected to dbus from can8
2024-01-12 18:32:00.189715500 INFO:SerialBattery:========== Settings ==========
2024-01-12 18:32:00.190172500 INFO:SerialBattery:> Connection voltage: NoneV | Current: NoneA | SoC: None%
2024-01-12 18:32:00.190615500 INFO:SerialBattery:> Cell count: 4 | Cells populated: 0
2024-01-12 18:32:00.191085500 INFO:SerialBattery:> LINEAR LIMITATION ENABLE: True
2024-01-12 18:32:00.191641500 INFO:SerialBattery:> MAX BATTERY CHARGE CURRENT: 10.0A | MAX BATTERY DISCHARGE CURRENT: 40.0A
2024-01-12 18:32:00.192087500 INFO:SerialBattery:> CVCM: True
2024-01-12 18:32:00.192559500 INFO:SerialBattery:> MIN CELL VOLTAGE: 2.9V | MAX CELL VOLTAGE: 3.45V
2024-01-12 18:32:00.193004500 INFO:SerialBattery:> CCCM CV: True | DCCM CV: True
2024-01-12 18:32:00.193457500 INFO:SerialBattery:> CCCM T: True | DCCM T: True
2024-01-12 18:32:00.193891500 INFO:SerialBattery:> CCCM SOC: True | DCCM SOC: True
2024-01-12 18:32:00.194419500 INFO:SerialBattery:Serial Number/Unique Identifier: DalyBMS4cells_NoneAh
2024-01-12 18:32:02.322136500 INFO:SerialBattery:Found existing battery with DeviceInstance = 2
2024-01-12 18:32:02.558154500 INFO:SerialBattery:DeviceInstance = 2
2024-01-12 18:32:02.558759500 INFO:SerialBattery:Used device instances: ['1', '3', '12', '4', '9', '5', '10', '6', '7', '2', '14', '13', '8', '11']
2024-01-12 18:32:02.559327500 INFO:SerialBattery:com.victronenergy.battery.can8
2024-01-12 18:32:02.579348500 INFO:SerialBattery:publish config values = True
Can you please enable it again.
What should I enable again?
To have proper code formatting add trippe backticks or tildes ~~~
in the line before and after the code.
Also, do i need to populate all the parameters into my config.ini ?
No, only relevant for your system. All other are fetched from the default.config.ini
.
So all is working and I can close this issue?
Hello Manuel About the "enable" - I had the intension, the "dev (mr-manuel's repo) (option 3)." was gone automatically after i installed it to the wrong Computer. My failure, it was allready there.
I will try the ~~~ thx for this Tip.
The Readings from CAN are working now, but i an not shure if it is all correct, i don´t see the Cell Voltages in the Venus - only the min and max Voltage.
But that will be another Issue - this one is ready to be closed.
HoW
2024-01-12 19:18:06.373312500
2024-01-12 19:18:08.501008500 INFO:SerialBattery:
2024-01-12 19:18:08.501498500 INFO:SerialBattery:Starting dbus-serialbattery
2024-01-12 19:18:08.502483500 INFO:SerialBattery:dbus-serialbattery v1.1.20240112dev
2024-01-12 19:18:09.537288500 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
2024-01-12 19:18:09.537869500 INFO:SerialBattery:Testing Daly_Can
2024-01-12 19:18:09.687542500 INFO:SerialBattery:DalyBMS 4 cells
2024-01-12 19:18:09.688139500 INFO:SerialBattery:Connection established to Daly_Can
2024-01-12 19:18:09.688687500 INFO:SerialBattery:Battery Daly_Can connected to dbus from can8
2024-01-12 19:18:09.689175500 INFO:SerialBattery:========== Settings ==========
2024-01-12 19:18:09.689733500 INFO:SerialBattery:> Connection voltage: NoneV | Current: NoneA | SoC: None%
2024-01-12 19:18:09.690225500 INFO:SerialBattery:> Cell count: 4 | Cells populated: 0
2024-01-12 19:18:09.690818500 INFO:SerialBattery:> LINEAR LIMITATION ENABLE: True
2024-01-12 19:18:09.691434500 INFO:SerialBattery:> MAX BATTERY CHARGE CURRENT: 10.0A | MAX BATTERY DISCHARGE CURRENT: 40.0A
2024-01-12 19:18:09.691974500 INFO:SerialBattery:> CVCM: True
2024-01-12 19:18:09.692709500 INFO:SerialBattery:> MIN CELL VOLTAGE: 2.9V | MAX CELL VOLTAGE: 3.45V
2024-01-12 19:18:09.693298500 INFO:SerialBattery:> CCCM CV: True | DCCM CV: True
2024-01-12 19:18:09.694004500 INFO:SerialBattery:> CCCM T: True | DCCM T: True
2024-01-12 19:18:09.694581500 INFO:SerialBattery:> CCCM SOC: True | DCCM SOC: True
2024-01-12 19:18:09.695219500 INFO:SerialBattery:Serial Number/Unique Identifier: DalyBMS4cells_NoneAh
2024-01-12 19:18:11.847755500 INFO:SerialBattery:Found existing battery with DeviceInstance = 2
2024-01-12 19:18:12.151129500 INFO:SerialBattery:DeviceInstance = 2
2024-01-12 19:18:12.151839500 INFO:SerialBattery:Used device instances: ['1', '3', '12', '4', '9', '5', '10', '6', '7', '2', '14', '13', '8', '11']
2024-01-12 19:18:12.152449500 INFO:SerialBattery:com.victronenergy.battery.can8
2024-01-12 19:18:12.175610500 INFO:SerialBattery:publish config values = True
Describe the bug
At first see my logfile:
After updating this seems to give an endless loop, see the Errror messages in the first half.
How to reproduce
If you want me to tryout more with the Daly on CAN-Bus feel free to contact me, the settings is now working in my Lab.
Keep on with your fantastic Work, best Whishes from Austria. Holger Watermann
Expected behavior
.After commenting out the IF inside battery.py it starts to work without further complains.
` # if BMS limit is lower then config limit and therefore the values are not the same,
then the limit was also read from the BMS
Driver version
v1.1.20240112dev
Venus OS device type
Raspberry Pi 2
Venus OS version
v3.20~37
BMS type
Daly Smart BMS
Cell count
4
Battery count
1
Connection type
Raspberry Pi RS485 HAT
Config file
Relevant log output
Any other information that may be helpful
There is no CAN Profile selector here to chooose from, so please add it. I took RS485 HAT.
I use an normal CAN HAT on the pi and that gives me can8 connected to the included CAN L/H Lines of the DALY bms.
Addditional Findings: As it seems, the DALY_CAN has an enabled 120 Ohms Terminator connectet, so connect only one more at he other end of your CAN Bus! This gives you the normal 60 Ohm on the Bus (measure without power attached)