Closed PeerD closed 2 weeks ago
It seems, that you don't have a stable wired connection. Is the serial cable shielded?
Anyway, unfortunately you did not read carefully the instructions when opening an issue, but at least you provided the correct logs :-)
Here again:
Please carefully read all the instructions below including the descriptions! Very often we have to request the data again, because it was not provided in the first place.
Please try the nightly
build first, if you are not already using it. It's very likely that the bug is already fixed. See here how to install it.
Oh, I'm terriby sorry. I missed that one. I have installed it now and the error is gone :)
But now I have ever device twice. The name of the battery is still the custom one I gave but it shows them twice now:
If you reboot or go to the bottom of the list, you can remove the Not Connected
devices. This is because with the latest driver the dbus service name of the driver changed. Nothing to worry about.
I, it seems I was too quick. Now suddenly all three battery banks threw this error at the same time:
2024-08-28 08:23:07.724850500 WARNING:SerialBattery:calcMaxDischargeCurrentReferringToCellVoltage(): get_min_cell_voltage() is None, using default current instead. If you don't see this warning very often, you can ignore it.
2024-08-28 08:23:07.724858500 ERROR:SerialBattery:Non blocking exception occurred: TypeError("unsupported operand type(s) for -: 'NoneType' and 'NoneType'") of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/dbushelper.py line #1142
2024-08-28 08:23:08.720964500 ERROR:SerialBattery:Non blocking exception occurred: TypeError("unsupported operand type(s) for -: 'NoneType' and 'NoneType'") of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #628
2024-08-28 08:23:08.721961500 WARNING:SerialBattery:calcMaxChargeCurrentReferringToCellVoltage(): get_max_cell_voltage() is None, using default current instead. If you don't see this warning very often, you can ignore it.
2024-08-28 08:23:08.723311500 WARNING:SerialBattery:calcMaxDischargeCurrentReferringToCellVoltage(): get_min_cell_voltage() is None, using default current instead. If you don't see this warning very often, you can ignore it.
2024-08-28 08:23:08.727952500 ERROR:SerialBattery:Non blocking exception occurred: TypeError("unsupported operand type(s) for -: 'NoneType' and 'NoneType'") of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/dbushelper.py line #1142
2024-08-28 08:23:09.721759500 ERROR:SerialBattery:Non blocking exception occurred: TypeError("unsupported operand type(s) for -: 'NoneType' and 'NoneType'") of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #628
2024-08-28 08:23:09.722746500 WARNING:SerialBattery:calcMaxChargeCurrentReferringToCellVoltage(): get_max_cell_voltage() is None, using default current instead. If you don't see this warning very often, you can ignore it.
2024-08-28 08:23:09.724244500 WARNING:SerialBattery:calcMaxDischargeCurrentReferringToCellVoltage(): get_min_cell_voltage() is None, using default current instead. If you don't see this warning very often, you can ignore it.
2024-08-28 08:23:09.728665500 ERROR:SerialBattery:Non blocking exception occurred: TypeError("unsupported operand type(s) for -: 'NoneType' and 'NoneType'") of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/dbushelper.py line #1142
2024-08-28 08:23:10.719404500 ERROR:SerialBattery:Non blocking exception occurred: TypeError("unsupported operand type(s) for -: 'NoneType' and 'NoneType'") of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #628
2024-08-28 08:23:10.720398500 WARNING:SerialBattery:calcMaxChargeCurrentReferringToCellVoltage(): get_max_cell_voltage() is None, using default current instead. If you don't see this warning very often, you can ignore it.
2024-08-28 08:23:10.721723500 WARNING:SerialBattery:calcMaxDischargeCurrentReferringToCellVoltage(): get_min_cell_voltage() is None, using default current instead. If you don't see this warning very often, you can ignore it.
2024-08-28 08:23:10.726459500 ERROR:SerialBattery:Non blocking exception occurred: TypeError("unsupported operand type(s) for -: 'NoneType' and 'NoneType'") of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/dbushelper.py line #1142
2024-08-28 08:23:11.808814500 ERROR:SerialBattery:Non blocking exception occurred: TypeError("unsupported operand type(s) for -: 'NoneType' and 'NoneType'") of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #628
2024-08-28 08:23:11.810046500 WARNING:SerialBattery:calcMaxChargeCurrentReferringToCellVoltage(): get_max_cell_voltage() is None, using default current instead. If you don't see this warning very often, you can ignore it.
2024-08-28 08:23:11.811561500 WARNING:SerialBattery:calcMaxDischargeCurrentReferringToCellVoltage(): get_min_cell_voltage() is None, using default current instead. If you don't see this warning very often, you can ignore it.
2024-08-28 08:23:11.820397500 ERROR:SerialBattery:Non blocking exception occurred: TypeError("unsupported operand type(s) for -: 'NoneType' and 'NoneType'") of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/dbushelper.py line #1142
2024-08-28 08:23:12.789732500 ERROR:SerialBattery:Non blocking exception occurred: TypeError("unsupported operand type(s) for -: 'NoneType' and 'NoneType'") of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #628
2024-08-28 08:23:12.790679500 WARNING:SerialBattery:calcMaxChargeCurrentReferringToCellVoltage(): get_max_cell_voltage() is None, using default current instead. If you don't see this warning very often, you can ignore it.
2024-08-28 08:23:12.792100500 WARNING:SerialBattery:calcMaxDischargeCurrentReferringToCellVoltage(): get_min_cell_voltage() is None, using default current instead. If you don't see this warning very often, you can ignore it.
2024-08-28 08:23:12.797615500 ERROR:SerialBattery:Non blocking exception occurred: TypeError("unsupported operand type(s) for -: 'NoneType' and 'NoneType'") of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/dbushelper.py line #1142
2024-08-28 08:23:13.723212500 ERROR:SerialBattery:Non blocking exception occurred: TypeError("unsupported operand type(s) for -: 'NoneType' and 'NoneType'") of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #628
2024-08-28 08:23:13.724355500 WARNING:SerialBattery:calcMaxChargeCurrentReferringToCellVoltage(): get_max_cell_voltage() is None, using default current instead. If you don't see this warning very often, you can ignore it.
2024-08-28 08:23:13.725713500 WARNING:SerialBattery:calcMaxDischargeCurrentReferringToCellVoltage(): get_min_cell_voltage() is None, using default current instead. If you don't see this warning very often, you can ignore it.
2024-08-28 08:23:13.730345500 ERROR:SerialBattery:Non blocking exception occurred: TypeError("unsupported operand type(s) for -: 'NoneType' and 'NoneType'") of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/dbushelper.py line #1142
2024-08-28 08:23:14.728201500 ERROR:SerialBattery:Non blocking exception occurred: TypeError("unsupported operand type(s) for -: 'NoneType' and 'NoneType'") of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #628
2024-08-28 08:23:14.729175500 WARNING:SerialBattery:calcMaxChargeCurrentReferringToCellVoltage(): get_max_cell_voltage() is None, using default current instead. If you don't see this warning very often, you can ignore it.
2024-08-28 08:23:14.730478500 WARNING:SerialBattery:calcMaxDischargeCurrentReferringToCellVoltage(): get_min_cell_voltage() is None, using default current instead. If you don't see this warning very often, you can ignore it.
2024-08-28 08:23:14.736075500 ERROR:SerialBattery:Non blocking exception occurred: TypeError("unsupported operand type(s) for -: 'NoneType' and 'NoneType'") of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/dbushelper.py line #1142
2024-08-28 08:23:15.728650500 ERROR:SerialBattery:Non blocking exception occurred: TypeError("unsupported operand type(s) for -: 'NoneType' and 'NoneType'") of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #628
2024-08-28 08:23:15.729592500 WARNING:SerialBattery:calcMaxChargeCurrentReferringToCellVoltage(): get_max_cell_voltage() is None, using default current instead. If you don't see this warning very often, you can ignore it.
2024-08-28 08:23:15.732164500 WARNING:SerialBattery:calcMaxDischargeCurrentReferringToCellVoltage(): get_min_cell_voltage() is None, using default current instead. If you don't see this warning very often, you can ignore it.
2024-08-28 08:23:15.737016500 ERROR:SerialBattery:Non blocking exception occurred: TypeError("unsupported operand type(s) for -: 'NoneType' and 'NoneType'") of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/dbushelper.py line #1142
2024-08-28 08:23:16.726843500 ERROR:SerialBattery:Non blocking exception occurred: TypeError("unsupported operand type(s) for -: 'NoneType' and 'NoneType'") of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #628
2024-08-28 08:23:16.727936500 WARNING:SerialBattery:calcMaxChargeCurrentReferringToCellVoltage(): get_max_cell_voltage() is None, using default current instead. If you don't see this warning very often, you can ignore it.
2024-08-28 08:23:16.729397500 WARNING:SerialBattery:calcMaxDischargeCurrentReferringToCellVoltage(): get_min_cell_voltage() is None, using default current instead. If you don't see this warning very often, you can ignore it.
2024-08-28 08:23:16.764228500 ERROR:SerialBattery:Non blocking exception occurred: TypeError("unsupported operand type(s) for -: 'NoneType' and 'NoneType'") of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/dbushelper.py line #1142```
Aggregate Batteries was not able to run (it seems it was supplied NoneType Values).
ERROR:root:Wed Aug 28 08:29:11 2024: Error: '>' not supported between instances of 'NoneType' and 'NoneType'.
ERROR:root:Occured during step Find max. and min. cell voltage of all batteries, Battery Bank 1.
I did a restart for good measure and now it seems to run and aggregate batteries is also running again normally.
The strange thing is that all three banks threw the error this time at the same time. If it would be a bad serial connection on bank 1, this should not affect bank 2 or 3 that have not thrown any errors until now?
It should not be connected, except you are using a USB hub.
Yes, I am using a hub as the cerbo only has two usb ports. Is it possible to connect multiple JK via a single serial adapter? I thought each bms needed its own adapter.
Anyways, now it seems to run fine.
Thank you very much for your support and this great project!
In your case you need one UART/TTL port per BMS. The DuPPa.net Isolated 4 port USB to TTL UART FTDI is very stable.
Describe the bug
I recieved the #8 Internal calculation error two time the last day (fresh setup) with the latest driver version.
First time this occured was yesterday. I connected 1 of my 3 battery banks and after a few minutes (out of the blue) the cerbo beeped and I got this error.
Then I connected all three batteries and it run throughout the night with no problem.
Today I installed aggregate batteries, configured it and used its command to restart serialbattery. Then I got this error again (on the same bank). It runs on a newer hardware version (20230601) of JK than the other two banks (20220701).
The battery now shows state error (not sure how to reset) but otherwise seems to work fine.
How to reproduce
First time: I installed serialbattery on a fresh cerbo gx. Connected 1 battery and after like 10 minutes this error came.
Second time: after installing and configuring aggregate battery and restarting serial battery with their script, banks 2 and 3 were found immediately. Bank 1 took like 30 seconds longer and then when found, threw this error after a few seconds.
Expected behavior
No errors or the ability to clear the error
Driver version
1.3.20240705
Venus OS device type
Cerbo GX
Venus OS version
v3.41
BMS type
JKBMS / Heltec BMS
Cell count
16
Battery count
3
Connection type
Serial USB adapter to TTL
Config file
Relevant log output
Any other information that may be helpful
I saw issue #1110 but there it was requested to open a new issue as this is not a daly bms when another person mentioned they got the same issue on jk.