Closed entropia1ac closed 6 months ago
First entry in the array has precedence, so ttyS data will be preferred over ttyUSB. You can swap the order and/or use the more advanced syntax:
"virtualBatteries": {
"com.victronenergy.battery.virtual1": {"com.victronenergy.battery.ttyS6": ["/Soc"], "com.victronenergy.battery.ttyUSB0": []},
"com.victronenergy.battery.virtual2": {"com.victronenergy.battery.ttyS7": ["/Soc"], "com.victronenergy.battery.ttyUSB1": []]
}
to specify only some dbus paths to take precedence.
Great.Thanks
BA does not accept a new config.json file : { "virtualBatteries": { "com.victronenergy.battery.virtual1": {"com.victronenergy.battery.ttyS7" : ["/Soc"], "com.victronenergy.battery.ttyUSB4":[]}, "com.victronenergy.battery.virtual2": {"com.victronenergy.battery.ttyS6" : ["/Soc"], "com.victronenergy.battery.ttyUSB2": []}, "com.victronenergy.battery.virtual3": {"com.victronenergy.battery.ttyS5" : ["/Soc"], "com.victronenergy.battery.ttyUSB1": []] } } }
Last ] should be a }
This option does not work: { "virtualBatteries": { "com.victronenergy.battery.virtual1": {"com.victronenergy.battery.ttyS7" : ["/Soc"], "com.victronenergy.battery.ttyUSB4":[]}, "com.victronenergy.battery.virtual2": {"com.victronenergy.battery.ttyS6" : ["/Soc"], "com.victronenergy.battery.ttyUSB2": []}, "com.victronenergy.battery.virtual3": {"com.victronenergy.battery.ttyS5" : ["/Soc"], "com.victronenergy.battery.ttyUSB1": []} } }
Try restarting the service, using svc. I'm guessing it is an ordering issue where BA is started before the settings service.
Ok. I' check it out
With this file config.json BA sees 4 batteries instead of 3
dbus-spy BA, look at /System/Batteries, it will list the 4 batteries it thinks it has found.
I have 3 virtual batteries from 3 BMSes, each in series with a shunt.
"com.victronenergy.battery.virtual3": ["com.victronenergy.battery.ttyS5", "com.victronenergy.battery.ttyUSB1"] } }
Is it possible that for the calculation of CCL and DCL the SOC is taken from the shunt and not from the BMS ?