pulquero / BatteryAggregator

MIT License
32 stars 8 forks source link

Battery aggregator gets stuck when SOC near 100% #24

Closed dbachats closed 5 months ago

dbachats commented 5 months ago

Dear pulquero sorry to disturb. I noticed that since the last version Battery aggregator gets stuck when SOC is near 100%. The only way to unblocked is to reboot venus os or to reinstall via setup helper.. My system with two 16s batteries in parallel was working flawlessly until recently thanks to your plugin. Is there something we can do to fix ? Thanks very much for you work.

pulquero commented 5 months ago

Please check log for errors: cat /var/log/BatteryAggregator/current

dbachats commented 5 months ago

Hi thanks for the reply

This is what i get inside the current file : @4000000065e47ec116463794 INFO:battery:Min charge voltage is 57.92 but using max of 57.92 as balancing @4000000065e47ec12544b004 INFO:battery:Min charge voltage is 57.92 but using max of 57.92 as balancing @4000000065e47ec1343cb034 INFO:battery:Min charge voltage is 57.92 but using max of 57.92 as balancing @4000000065e47ec2079e7e2c INFO:battery:Min charge voltage is 57.92 but using max of 57.92 as balancing @4000000065e47ec216844e1c INFO:battery:Min charge voltage is 57.92 but using max of 57.92 as balancing @4000000065e47ec2256f6984 INFO:battery:Min charge voltage is 57.92 but using max of 57.92 as balancing

pulquero commented 5 months ago

v2.8.2 reduced logging to free-up cpu usage.

dbachats commented 5 months ago

Thanks i ll try and keep you informed. Thanks again

dbachats commented 5 months ago

Sorry to report , battery aggregator continue to get stuck and i get the BMS lost alarm and the system goes in passthru . This is getting critical

coca7 commented 5 months ago

I observed this behavior before BMS getting lost and going to pass thru. I had not considered it to be connected with Battery aggregator. I have the [v1.2.20240227beta] and that improved communication with the BMS. I have only had this about a week, but I have not seen the error since I updated. I have 3 JBD BMS's. I will have to look at my logs when I get back to my system.

dbachats commented 5 months ago

Thanks for the info coca7

coca7 commented 5 months ago

This is what my log file says at cat /var/log/BatteryAggregator/current

@4000000065dde85636f1b644 CCGX booted (0) @4000000065dde86510191224 INFO:root:registered ourselves on D-Bus as com.victronenergy.battery.aggregator @4000000065dde8651efb638c Traceback (most recent call last): @4000000065dde8651efb7ee4 File "/data/BatteryAggregator/battery_service.py", line 429, in @4000000065dde8651efb8a9c main() @4000000065dde8651efb926c File "/data/BatteryAggregator/battery_service.py", line 412, in main @4000000065dde8651efb9e24 batteryAggr = BatteryAggregatorService(dbusConnection(), DEFAULT_SERVICE_NAME, config) @4000000065dde8651efba9dc File "/data/BatteryAggregator/battery_service.py", line 224, in init @4000000065dde8651efd113c self._init_settings(conn) @4000000065dde8651efd1cf4 File "/data/BatteryAggregator/ext/settableservice.py", line 10, in _init_settings @4000000065dde8651efd28ac self.settings = SettingsDevice(conn, self.supportedSettings, self._setting_changed) @4000000065dde8651efd384c File "/data/BatteryAggregator/ext/settingsdevice.py", line 51, in init @4000000065dde8651efd4404 raise Exception("The settings service com.victronenergy.settings does not exist!") @4000000065dde8651efd9ddc Exception: The settings service com.victronenergy.settings does not exist! @4000000065dde86f2443591c INFO:root:registered ourselves on D-Bus as com.victronenergy.battery.aggregator @4000000065dde871227e44d4 INFO:dbusmonitor:===== Search on dbus for services that we will monitor starting... ===== @4000000065dde871233f52b4 INFO:dbusmonitor:===== Search on dbus for services that we will monitor finished ===== @4000000065dde871236ca82c INFO:battery:Registered Battery Aggregator com.victronenergy.battery.aggregator @4000000065dde8c02ca3d17c INFO:dbusmonitor:Found: com.victronenergy.battery.ttyUSB0, scanning and storing items @4000000065dde8ce290c00d4 INFO:dbusmonitor: com.victronenergy.battery.ttyUSB0 has device instance 3 @4000000065dde8cf15003a74 INFO:dbusmonitor:Found: com.victronenergy.battery.ttyUSB1, scanning and storing items @4000000065dde8d53473353c INFO:dbusmonitor: com.victronenergy.battery.ttyUSB1 has device instance 2 @4000000065dde8d61d69bb54 INFO:dbusmonitor:Found: com.victronenergy.battery.ttyUSB2, scanning and storing items @4000000065dde8d83089f8d4 INFO:dbusmonitor: com.victronenergy.battery.ttyUSB2 has device instance 1 @4000000065de44e33ad5b2ec INFO:dbusmonitor:com.victronenergy.battery.ttyUSB2 disappeared from the dbus. Removing it from our lists @4000000065de452d058eeb94 INFO:dbusmonitor:Found: com.victronenergy.battery.ttyUSB2, scanning and storing items @4000000065de4533109f1e8c INFO:dbusmonitor: com.victronenergy.battery.ttyUSB2 has device instance 1 @4000000065de62f925d0d304 INFO:dbusmonitor:com.victronenergy.battery.ttyUSB1 disappeared from the dbus. Removing it from our lists @4000000065de63481ad73164 INFO:dbusmonitor:Found: com.victronenergy.battery.ttyUSB1, scanning and storing items @4000000065de634e3b1ec5f4 INFO:dbusmonitor: com.victronenergy.battery.ttyUSB1 has device instance 2 root@einstein:/#

pulquero commented 5 months ago

I'll add a wait for the settings service.

dbachats commented 5 months ago

The situation just got ugly today. Unfortunately the problem persists.. ... and the charging voltage went to high !!!! Likely the Bms's did the job cutting off.

pulquero commented 5 months ago

What were the individual battery cvls, the aggregator cvl and the contents of the log?

dbachats commented 5 months ago

GNU nano 4.9.3 /data/log/BatteryAggregator/current @4000000065e88a250838aaec INFO:battery:Waiting for batteries (attempt 7 of 30).. @4000000065e88a2608432e54 INFO:battery:Waiting for batteries (attempt 8 of 30).. @4000000065e88a27089cfe84 INFO:battery:Waiting for batteries (attempt 9 of 30).. @4000000065e88a280893cb0c INFO:battery:Waiting for batteries (attempt 10 of 30). @4000000065e88a3c25c8ad14 INFO:battery:Waiting for batteries (attempt 11 of 30). @4000000065e88a3d25c70b1c INFO:battery:Waiting for batteries (attempt 12 of 30). @4000000065e88a3e25c7a374 INFO:battery:Waiting for batteries (attempt 13 of 30). @4000000065e88a3f2622e2d4 INFO:battery:Waiting for batteries (attempt 14 of 30). @4000000065e88a4025cdf0bc INFO:battery:Waiting for batteries (attempt 15 of 30). @4000000065e88a4125c5da6c INFO:battery:Waiting for batteries (attempt 16 of 30). @4000000065e88a4225c56d0c INFO:battery:Waiting for batteries (attempt 17 of 30). @4000000065e88a4325c71abc INFO:battery:Waiting for batteries (attempt 18 of 30). @4000000065e88a4425da48e4 INFO:battery:Waiting for batteries (attempt 19 of 30). @4000000065e88a4525c810d4 INFO:battery:Waiting for batteries (attempt 20 of 30). @4000000065e88a4625cd8b2c INFO:battery:Waiting for batteries (attempt 21 of 30). @4000000065e88a4725c4f7dc INFO:battery:Waiting for batteries (attempt 22 of 30). @4000000065e88a4826ab0e34 INFO:battery:Waiting for batteries (attempt 23 of 30). @4000000065e88a4925cd6804 INFO:battery:Waiting for batteries (attempt 24 of 30). @4000000065e88a4a2612c1ec INFO:battery:Waiting for batteries (attempt 25 of 30). @4000000065e88a4b25d4130c INFO:battery:Waiting for batteries (attempt 26 of 30). @4000000065e88a4c25d956b4 INFO:battery:Waiting for batteries (attempt 27 of 30). @4000000065e88a4d25c72a5c INFO:battery:Waiting for batteries (attempt 28 of 30). @4000000065e88a4e25c1e6b4 INFO:battery:Waiting for batteries (attempt 29 of 30). @4000000065e88a4f25c30f94 INFO:battery:Waiting for batteries (attempt 30 of 30). @4000000065e88a4f25dc67dc WARNING:battery:No batteries discovered! @4000000065e88a4f25e06f1c INFO:battery:Exit GNU nano 4.9.3 /data/log/BatteryAggregator/current @4000000065e88a250838aaec INFO:battery:Waiting for batteries (attempt 7 of 30).> @4000000065e88a2608432e54 INFO:battery:Waiting for batteries (attempt 8 of 30).> @4000000065e88a27089cfe84 INFO:battery:Waiting for batteries (attempt 9 of 30).> @4000000065e88a280893cb0c INFO:battery:Waiting for batteries (attempt 10 of 30)> @4000000065e88a3c25c8ad14 INFO:battery:Waiting for batteries (attempt 11 of 30)> @4000000065e88a3d25c70b1c INFO:battery:Waiting for batteries (attempt 12 of 30)> @4000000065e88a3e25c7a374 INFO:battery:Waiting for batteries (attempt 13 of 30)> @4000000065e88a3f2622e2d4 INFO:battery:Waiting for batteries (attempt 14 of 30)> @4000000065e88a4025cdf0bc INFO:battery:Waiting for batteries (attempt 15 of 30)> @4000000065e88a4125c5da6c INFO:battery:Waiting for batteries (attempt 16 of 30)> @4000000065e88a4225c56d0c INFO:battery:Waiting for batteries (attempt 17 of 30)> @4000000065e88a4325c71abc INFO:battery:Waiting for batteries (attempt 18 of 30)> @4000000065e88a4425da48e4 INFO:battery:Waiting for batteries (attempt 19 of 30)> @4000000065e88a4525c810d4 INFO:battery:Waiting for batteries (attempt 20 of 30)> @4000000065e88a4625cd8b2c INFO:battery:Waiting for batteries (attempt 21 of 30)> @4000000065e88a4725c4f7dc INFO:battery:Waiting for batteries (attempt 22 of 30)> @4000000065e88a4826ab0e34 INFO:battery:Waiting for batteries (attempt 23 of 30)> @4000000065e88a4925cd6804 INFO:battery:Waiting for batteries (attempt 24 of 30)> @4000000065e88a4a2612c1ec INFO:battery:Waiting for batteries (attempt 25 of 30)> @4000000065e88a4b25d4130c INFO:battery:Waiting for batteries (attempt 26 of 30)> @4000000065e88a4c25d956b4 INFO:battery:Waiting for batteries (attempt 27 of 30)> @4000000065e88a4d25c72a5c INFO:battery:Waiting for batteries (attempt 28 of 30)> @4000000065e88a4e25c1e6b4 INFO:battery:Waiting for batteries (attempt 29 of 30)> @4000000065e88a4f25c30f94 INFO:battery:Waiting for batteries (attempt 30 of 30)> @4000000065e88a4f25dc67dc WARNING:battery:No batteries discovered! @4000000065e88a4f25e06f1c INFO:battery:Exit @4000000065e88a5101559744 INFO:dbusmonitor:===== Search on dbus for services th> @4000000065e88a5101bacd6c INFO:dbusmonitor:===== Search on dbus for services th> @4000000065e88a5225dd1f74 INFO:battery:Waiting for batteries (attempt 1 of 30).> @4000000065e88a5325cf8ae4 INFO:battery:Waiting for batteries (attempt 2 of 30).> @4000000065e88a5425fe95dc INFO:battery:Waiting for batteries (attempt 3 of 30).> @4000000065e88a5525cbf104 INFO:battery:Waiting for batteries (attempt 4 of 30).> @4000000065e88a5625c9b2cc INFO:battery:Waiting for batteries (attempt 5 of 30).> @4000000065e88a5725c457b4 INFO:battery:Waiting for batteries (attempt 6 of 30).> @4000000065e88a5825dac1fc INFO:battery:Waiting for batteries (attempt 7 of 30).> @4000000065e88a5925d48454 INFO:battery:Waiting for batteries (attempt 8 of 30).> @4000000065e88a5a25cfa63c INFO:battery:Waiting for batteries (attempt 9 of 30).> @4000000065e88a5b25caeb4c INFO:battery:Waiting for batteries (attempt 10 of 30)>

CVLS 54.8

pulquero commented 5 months ago

So, looking at the log, the battery aggregator never started. Add "startupBatteryWait": 60 to config.json and try that. I assume the batteries themselves are present in dbus?

dbachats commented 5 months ago

Yes they are present. I m worried. I never saw my system that unstable since the beginning.(For almost two years everything was running smoothly).. I

pulquero commented 5 months ago

I've created a v2.4 tag for you, so if you like, in package manger, change "latest" to "v2.4" and install the version that was working fine. Verify if that still does work fine for you and that will help eliminate any possible external factors.

dbachats commented 5 months ago

Thank you very much i will try it and keep you informed

dbachats commented 5 months ago

Dear pulquero After install of version 2.4 as you suggested everything seems to be working good as before. No aggregator stalling and the batteries charged to 100% without problem. I will closely monitor the system the next days. Thanks again for your help and work. I don't understand why the last versions did this with my system,( hope you can figure why) Keep the good work