Skip to content
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

Driver v1.3.20240705 GUI_PARAMETERS_SHOW_ADDITIONAL_INFO doesn't work #48

Closed
tlamoureux24 opened this issue Jul 8, 2024 · 8 comments
Closed
Labels
bug Something isn't working

Comments

@tlamoureux24
Copy link

Describe the bug

Activate the parameter in config.ini change nothing in GUI, no details in GUI -> Serialbattery -> Parameters
Activate the parameter in config.ini result in no charge mode and no CVL in driver

How to reproduce

Add GUI_PARAMETERS_SHOW_ADDITIONAL_INFO = True in config.ini and restart driver

Expected behavior

Expect details in driver parameters
Expect charge mode
Expect CVL
image

Driver version of the currently installed driver

v1.3.20240705

Driver version of the last known working driver

No response

Venus OS device type

Cerbo GX

Venus OS version

3.33

BMS type

JKBMS Inverter

Cell count

16

Battery count

1

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 = 30.0
MAX_BATTERY_DISCHARGE_CURRENT = 50.0


BMS_TYPE = Jkbms_pb

GUI_PARAMETERS_SHOW_ADDITIONAL_INFO = True

Relevant log output

INFO:SerialBattery:
INFO:SerialBattery:Starting dbus-serialbattery
INFO:SerialBattery:Venus OS v3.33
INFO:SerialBattery:dbus-serialbattery v1.3.20240705
INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
INFO:SerialBattery:Testing Jkbms_pb at address "\x01"
INFO:SerialBattery:Connection established to Jkbms_pb
INFO:SerialBattery:Found existing battery with DeviceInstance = 1
INFO:SerialBattery:DeviceInstance = 1
INFO:SerialBattery:PID file created successfully: /var/tmp/dbus-serialbattery_1.pid
INFO:SerialBattery:Used DeviceInstances = ['1']
INFO:SerialBattery:com.victronenergy.battery.ttyUSB0
INFO:SerialBattery:publish config values = False
INFO:SerialBattery:Battery JKBMS PB Model connected to dbus from /dev/ttyUSB0
INFO:SerialBattery:========== Settings ==========
INFO:SerialBattery:> Connection voltage: 53.491 V | Current: 8.131 A | SoC: 86%
INFO:SerialBattery:> Cell count: 16 | Cells populated: 32
INFO:SerialBattery:> LINEAR LIMITATION ENABLE: True
INFO:SerialBattery:> MIN CELL VOLTAGE: 2.900 V | MAX CELL VOLTAGE: 3.450 V| FLOAT CELL VOLTAGE: 3.375 V
INFO:SerialBattery:> MAX BATTERY CHARGE CURRENT: 30.0 A | MAX BATTERY DISCHARGE CURRENT: 50.0 A
INFO:SerialBattery:> CVCM:     True
INFO:SerialBattery:> CCCM CV:  True  | DCCM CV:  True
INFO:SerialBattery:> CCCM T:   True  | DCCM T:   True
INFO:SerialBattery:> CCCM SOC: False | DCCM SOC: False
INFO:SerialBattery:> CHARGE FET: 1 | DISCHARGE FET: 1 | BALANCE FET: None
INFO:SerialBattery:Serial Number/Unique Identifier: 4041849088

Any other information that may be helpful

Generate a low battery alam even if driver seems to work properly
All solved by commenting GUI_PARAMETERS_SHOW_ADDITIONAL_INFO = True in config.ini and restart driver

@tlamoureux24 tlamoureux24 added the bug Something isn't working label Jul 8, 2024
@mr-manuel
Copy link
Owner

Thanks for reporting. Could you please install the latest nightly and check the logs? I added some troubleshooting for that.

@tlamoureux24
Copy link
Author

tlamoureux24 commented Jul 8, 2024

Thanks for the quick reply.
Installed driver v1.3.20240708dev

config.ini

[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 = 30.0
MAX_BATTERY_DISCHARGE_CURRENT = 50.0


BMS_TYPE = Jkbms_pb

GUI_PARAMETERS_SHOW_ADDITIONAL_INFO = True

log output

INFO:SerialBattery:
INFO:SerialBattery:Starting dbus-serialbattery
INFO:SerialBattery:Venus OS v3.33
INFO:SerialBattery:dbus-serialbattery v1.3.20240708dev
INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
INFO:SerialBattery:Testing Jkbms_pb at address "\x01"
INFO:SerialBattery:Connection established to Jkbms_pb
INFO:SerialBattery:Found existing battery with DeviceInstance = 1
INFO:SerialBattery:DeviceInstance = 1
INFO:SerialBattery:PID file created successfully: /var/tmp/dbus-serialbattery_1.pid
INFO:SerialBattery:Used DeviceInstances = ['1']
INFO:SerialBattery:com.victronenergy.battery.ttyUSB0
INFO:SerialBattery:publish config values = False
INFO:SerialBattery:Battery JKBMS PB Model connected to dbus from /dev/ttyUSB0
INFO:SerialBattery:========== Settings ==========
INFO:SerialBattery:> Connection voltage: 54.208 V | Current: 0.387 A | SoC: 100%
INFO:SerialBattery:> Cell count: 16 | Cells populated: 32
INFO:SerialBattery:> LINEAR LIMITATION ENABLE: True
INFO:SerialBattery:> MIN CELL VOLTAGE: 2.900 V | MAX CELL VOLTAGE: 3.450 V| FLOAT CELL VOLTAGE: 3.375 V
INFO:SerialBattery:> MAX BATTERY CHARGE CURRENT: 30.0 A | MAX BATTERY DISCHARGE CURRENT: 50.0 A
INFO:SerialBattery:> CVCM:     True
INFO:SerialBattery:> CCCM CV:  True  | DCCM CV:  True
INFO:SerialBattery:> CCCM T:   True  | DCCM T:   True
INFO:SerialBattery:> CCCM SOC: False | DCCM SOC: False
INFO:SerialBattery:> CHARGE FET: 1 | DISCHARGE FET: 1 | BALANCE FET: None
INFO:SerialBattery:Serial Number/Unique Identifier: 4041849088
ERROR:SerialBattery:Non blocking exception occurred: TypeError('unsupported format string passed to NoneType.__format__') of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #680
ERROR:SerialBattery:Non blocking exception occurred: TypeError('unsupported format string passed to NoneType.__format__') of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #680
ERROR:SerialBattery:Non blocking exception occurred: TypeError('unsupported format string passed to NoneType.__format__') of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #680
ERROR:SerialBattery:Non blocking exception occurred: TypeError('unsupported format string passed to NoneType.__format__') of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #680
ERROR:SerialBattery:Non blocking exception occurred: TypeError('unsupported format string passed to NoneType.__format__') of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #680
ERROR:SerialBattery:Non blocking exception occurred: TypeError('unsupported format string passed to NoneType.__format__') of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #680
ERROR:SerialBattery:Non blocking exception occurred: TypeError('unsupported format string passed to NoneType.__format__') of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #680
ERROR:SerialBattery:Non blocking exception occurred: TypeError('unsupported format string passed to NoneType.__format__') of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #680
ERROR:SerialBattery:Non blocking exception occurred: TypeError('unsupported format string passed to NoneType.__format__') of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #680
ERROR:SerialBattery:Non blocking exception occurred: TypeError('unsupported format string passed to NoneType.__format__') of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #680
ERROR:SerialBattery:Non blocking exception occurred: TypeError('unsupported format string passed to NoneType.__format__') of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #680
ERROR:SerialBattery:Non blocking exception occurred: TypeError('unsupported format string passed to NoneType.__format__') of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #680
ERROR:SerialBattery:Non blocking exception occurred: TypeError('unsupported format string passed to NoneType.__format__') of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #680
ERROR:SerialBattery:Non blocking exception occurred: TypeError('unsupported format string passed to NoneType.__format__') of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #680
ERROR:SerialBattery:Non blocking exception occurred: TypeError('unsupported format string passed to NoneType.__format__') of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #680
ERROR:SerialBattery:Non blocking exception occurred: TypeError('unsupported format string passed to NoneType.__format__') of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #680
ERROR:SerialBattery:Non blocking exception occurred: TypeError('unsupported format string passed to NoneType.__format__') of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #680
ERROR:SerialBattery:Non blocking exception occurred: TypeError('unsupported format string passed to NoneType.__format__') of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line #680

cerbo gx alarm internal calc error
image

No parameter's detail in venus

Let me know if you need more information

@mr-manuel
Copy link
Owner

Can you please install the same version again? I updated the code.

@tlamoureux24
Copy link
Author

Same as above only the battery.py error line change.

log output
ERROR:SerialBattery:Non blocking exception occurred: TypeError('unsupported format string passed to NoneType.format') of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line Louisvdw#704
ERROR:SerialBattery:Non blocking exception occurred: TypeError('unsupported format string passed to NoneType.format') of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line Louisvdw#704
ERROR:SerialBattery:Non blocking exception occurred: TypeError('unsupported format string passed to NoneType.format') of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line Louisvdw#704
ERROR:SerialBattery:Non blocking exception occurred: TypeError('unsupported format string passed to NoneType.format') of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line Louisvdw#704
ERROR:SerialBattery:Non blocking exception occurred: TypeError('unsupported format string passed to NoneType.format') of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line Louisvdw#704
ERROR:SerialBattery:Non blocking exception occurred: TypeError('unsupported format string passed to NoneType.format') of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line Louisvdw#704
ERROR:SerialBattery:Non blocking exception occurred: TypeError('unsupported format string passed to NoneType.format') of type <class 'TypeError'> in /opt/victronenergy/dbus-serialbattery/battery.py line Louisvdw#704

@mr-manuel
Copy link
Owner

Unfortunately I'm not able to reproduce this issue, therefore we have to continue like this. Can you reinstall again? Should now be good :)

@tlamoureux24
Copy link
Author

I can confirm, now all good and got parameters detail !!!
Thanks for the support :)

@mr-manuel
Copy link
Owner

Thank you for providing all the data I needed!

@tlamoureux24
Copy link
Author

My pleasure, if you need a beta tester i can do test for you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants