I did insert the line "INVERT_CURRENT_MEASUREMENT = -1 " in a config.ini file (after loading the latest build of the driver file) to find that the charging is more or less behaving like before finding out about this parameter and the need to use it.
Funny thing is, that replacing it with (positive) 1 makes no visible difference. I tried putting it in config.ini, I even put it manually In config.default.ini and checked the old-school .py file (there is a link to config.ini nowadays).
But I keep seeing "discharging" displayed while charging and time left of hours, while i.m.h.o. a fully charged battery under charge has "unlimited" as time left, so apparently the -1 is somehow not communicated to the driver.
[DEFAULT]
; If you want to add custom values/settings, then check the values/settings you want to change in "config.default.ini"
; and insert them below to persist future driver updates.
; Example (remove the semicolon ";" to uncomment and activate the value/setting):
; MAX_BATTERY_CHARGE_CURRENT = 50.0
; MAX_BATTERY_DISCHARGE_CURRENT = 60
INVERT_CURRENT_MEASUREMENT = -1
Relevant log output
A I look in the appropriate directory i see these files:
root@ccgx:/data/log# ls
boot dbus-systemcalc-py messages.2 swupdate
boot~ dbus-vebus-to-pvinverter messages.3 vecan-dbus.can0
can-bus-bms.can0 dmesg messages.4 vedirect.ttyO0
dbus-adc dmesg.old messages.5 vedirect.ttyO2
dbus-ble-sensors flashmq mk2_dbus.ttyO1 vedirect.ttyUSB0
dbus-cgwacs.ttyUSB0 gps-dbus.ttyUSB0 mosquitto venus-access
dbus-digitalinputs gui mqtt-rpc venus-html5-app
dbus-fronius hiawatha netmon venus-html5-logger
dbus-generator-starter hub4control nginx venus-platform
dbus-modbus-client lastlog serial-starter vesmart-server
dbus-mqtt localsettings service-advertiser vrmlogger
dbus-qwacs messages simple-upnpd watchdog
dbus-serialbattery.ttyUSB0 messages.0 ssh-tunnel websockify-c
dbus-shelly messages.1 sshd wtmp
I can't really find logfiles here. As I am not such a "Knight-of-the-command-prompt" as some of you guys,
a little help will be highly appreciated. :-)
Describe the problem
I did insert the line "INVERT_CURRENT_MEASUREMENT = -1 " in a config.ini file (after loading the latest build of the driver file) to find that the charging is more or less behaving like before finding out about this parameter and the need to use it. Funny thing is, that replacing it with (positive) 1 makes no visible difference. I tried putting it in config.ini, I even put it manually In config.default.ini and checked the old-school .py file (there is a link to config.ini nowadays). But I keep seeing "discharging" displayed while charging and time left of hours, while i.m.h.o. a fully charged battery under charge has "unlimited" as time left, so apparently the -1 is somehow not communicated to the driver.
https://github.com/Louisvdw/dbus-serialbattery/assets/35534038/7282e632-2341-4272-994a-ade6cb72eb58
Driver version
1.0.20230531
Venus OS device type
CCGX
Venus OS version
3.10~8
BMS type
Daly Smart BMS
Cell count
16
Connection type
Serial USB adapter to RS485
Config file
Relevant log output
Any other information that may be helpful