Louisvdw / dbus-serialbattery

Battery Monitor driver for serial battery in VenusOS GX systems
MIT License
541 stars 165 forks source link

DALY Inverted_current_meassurement not (properly) working #721

Closed josmeijer closed 1 year ago

josmeijer commented 1 year ago

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.

inverted_current

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

[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. :-)

Any other information that may be helpful

drtinaz commented 1 year ago

Did you restart the driver? Invert current works for me.

josmeijer commented 1 year ago

Lots of times.

mr-manuel commented 1 year ago

Please check the documentation. There was also a link on how to get the logfiles when you opened the issue.

mr-manuel commented 1 year ago

Any update?

mr-manuel commented 1 year ago

No feedback.