-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Daly bms sleep mode causing incorrect data in MP2 gx webinterface #193
Comments
The same behavior can be observed when completely disconnecting the BMS. I just connected the BMS to a cerbogx of a friend of mine to test the software. I'd expect my installation to stop charging while the BMS is not connected. Unfortunately it just keeps charging. Went from 61% to 69% percent without any error or something. |
@transistorgit maybe you know, if this is still an issue? |
Yes, I think so. There is no means of state handling employed. If the bms stops answering, the last values will be there forever. How is it done in other bms? Wonder if it shouldn't be a base class function? |
From what I know, it's all the same for all BMS. There is actually no timeout. A timeout in the battery class would be a good idea. The default Victron timeout are 60 seconds as you also said. Even, if I unplug the USB to serial adapter it still shows the BMS. 2023-05-01 18:53:21.222963500 ERROR:SerialBattery:[Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
2023-05-01 18:53:22.224139500 ERROR:SerialBattery:[Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
2023-05-01 18:53:23.225307500 ERROR:SerialBattery:[Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
2023-05-01 18:53:24.226727500 ERROR:SerialBattery:[Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
2023-05-01 18:53:25.227252500 ERROR:SerialBattery:[Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
2023-05-01 18:53:26.229309500 ERROR:SerialBattery:[Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0' Could you implement your suggestion and open a PR for the |
Theoretically there should already be a check, but it seems that it's not working. dbus-serialbattery/etc/dbus-serialbattery/dbushelper.py Lines 322 to 350 in fce00b9
|
just did a real test with my dalys with branch jkbms_ble. |
created pull request mr-manuel/venus-os_dbus-serialbattery#4 hope somebody can test with other BMS types also. Just tested with Daly, but should be the same on any BMS as the changes are in battery.py mainly. |
Better open a PR in my repo until we finished testing :-) I test it today with a JKBMS. |
@transistorgit I did some testing If I reconnect the BMS in the seconds from 0 - 60, it's not recognized again. Only when the driver is restarted. If the BMS gets disconnected in Venus OS after 60 seconds the charging/discharging is not blocked anymore. This can be good or bad depending on the cause. Would it make more sense to keep the driver "connected", but blocking charge/discharge and eventually let the user select/change the behaviour by config file? In this case the driver/system has to be restarted, if a BMS is removed from the device. What are your thoughts? |
yes, I had quite some error handling to do until I had fixed all Type errors. just very probable that I misses one that is now triggered with your BMS. Can you send me the log line with the line no where is crashed? If all exceptions are handled, the behaviour should be like I wrote. And I had also no problem with redetecting the device then. This is in my view the cleanest solution. |
Ok, in my case somehow I made some more changes in the
|
We wrote nearly at the same time :P I already fixed the other errors, so none left. If the adapter does not change port, all is working as expected. In my eyes we can close this now. |
Describe the bug
The battery is fully loaded and the daly bms stops charging.
Shortly after it goes into sleep mode and doesn't respond on the uart interface.
In the WebInterface of the MP2 GX and on the VRM Portal wrong values are shown.
e.g the current is displayed with 20 amps but is 0 in real.
The driver log ("/var/log/dbus-serialbattery.ttyUSB0/current") shows "No reply - returning"
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I'd expect the web interface of the MP2 GX to show the correct data.
I'd expect the software to differentiate between the daly bms being in sleep mode
and the daly bms not responding.
VenusOS (please complete the following information):
Battery/BMS (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: