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

Jbd BMS not recognized after update #912

Closed
ToxSox opened this issue Jan 9, 2024 · 7 comments
Closed

Jbd BMS not recognized after update #912

ToxSox opened this issue Jan 9, 2024 · 7 comments
Labels
support Support request

Comments

@ToxSox
Copy link

ToxSox commented Jan 9, 2024

Describe the problem

My old sd card is broken. On that was venus os 2.9x and an older serialbattery version.
I got a new one, installed the newest venus os version and the current serialbattery version.
But it not regognized my Jbd BMS.

I get the following error in the logfile:
2024-01-09 20:20:44.129263500 INFO:SerialBattery:Testing LltJbd 2024-01-09 20:20:44.322643500 ERROR:SerialBattery:Unexpected err=TypeError('can only concatenate str (not "int") to str'), type(err)=<class 'TypeError'>

I have tried the latest, the master and the dev branch.

Driver version

v1.0.20230531

Venus OS device type

Raspberry Pi

Venus OS version

v3.13

BMS type

Smart BMS (LLT, JBD, Overkill Solar)

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 = 50.0
; MAX_BATTERY_DISCHARGE_CURRENT = 60.0

Relevant log output

2024-01-09 20:24:57.543089500 INFO:SerialBattery:Starting dbus-serialbattery
2024-01-09 20:24:57.544049500 INFO:SerialBattery:dbus-serialbattery v1.0.20230531
2024-01-09 20:24:57.544513500 INFO:SerialBattery:Testing Daly
2024-01-09 20:24:57.671728500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:24:57.672246500 INFO:SerialBattery:Testing Daly
2024-01-09 20:24:57.798413500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:24:57.798914500 INFO:SerialBattery:Testing Ecs
2024-01-09 20:24:57.858891500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:24:57.859382500 INFO:SerialBattery:Testing HeltecModbus
2024-01-09 20:25:01.547166500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:01.547659500 INFO:SerialBattery:Testing HLPdataBMS4S
2024-01-09 20:25:06.058437500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:06.058900500 INFO:SerialBattery:Testing Jkbms
2024-01-09 20:25:06.326832500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:06.328176500 INFO:SerialBattery:Testing Lifepower
2024-01-09 20:25:06.607005500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:06.608417500 INFO:SerialBattery:Testing LltJbd
2024-01-09 20:25:06.788824500 ERROR:SerialBattery:Unexpected err=TypeError('can only concatenate str (not "int") to str'), type(err)=<class 'TypeError'>
2024-01-09 20:25:06.789428500 INFO:SerialBattery:Testing Renogy
2024-01-09 20:25:07.063441500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:07.064958500 INFO:SerialBattery:Testing Renogy
2024-01-09 20:25:07.336697500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:07.338198500 INFO:SerialBattery:Testing Seplos
2024-01-09 20:25:08.345604500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:08.847814500 INFO:SerialBattery:Testing Daly
2024-01-09 20:25:08.973532500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:08.974189500 INFO:SerialBattery:Testing Daly
2024-01-09 20:25:09.100268500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:09.100929500 INFO:SerialBattery:Testing Ecs
2024-01-09 20:25:09.512645500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:09.513433500 INFO:SerialBattery:Testing HeltecModbus
2024-01-09 20:25:13.201358500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:13.201365500 INFO:SerialBattery:Testing HLPdataBMS4S
2024-01-09 20:25:17.713407500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:17.713415500 INFO:SerialBattery:Testing Jkbms
2024-01-09 20:25:17.986537500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:17.988067500 INFO:SerialBattery:Testing Lifepower
2024-01-09 20:25:18.257986500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:18.259509500 INFO:SerialBattery:Testing LltJbd
2024-01-09 20:25:18.546890500 ERROR:SerialBattery:Unexpected err=TypeError('can only concatenate str (not "int") to str'), type(err)=<class 'TypeError'>
2024-01-09 20:25:18.547553500 INFO:SerialBattery:Testing Renogy
2024-01-09 20:25:18.815437500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:18.816989500 INFO:SerialBattery:Testing Renogy
2024-01-09 20:25:19.089844500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:19.091340500 INFO:SerialBattery:Testing Seplos
2024-01-09 20:25:20.097993500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:20.599441500 INFO:SerialBattery:Testing Daly
2024-01-09 20:25:20.726526500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:20.727165500 INFO:SerialBattery:Testing Daly
2024-01-09 20:25:20.856373500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:20.856864500 INFO:SerialBattery:Testing Ecs
2024-01-09 20:25:21.266984500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:21.267437500 INFO:SerialBattery:Testing HeltecModbus
2024-01-09 20:25:24.945790500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:24.945798500 INFO:SerialBattery:Testing HLPdataBMS4S
2024-01-09 20:25:29.467886500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:29.468401500 INFO:SerialBattery:Testing Jkbms
2024-01-09 20:25:29.737474500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:29.738837500 INFO:SerialBattery:Testing Lifepower
2024-01-09 20:25:30.013663500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:30.015103500 INFO:SerialBattery:Testing LltJbd
2024-01-09 20:25:30.205006500 ERROR:SerialBattery:Unexpected err=TypeError('can only concatenate str (not "int") to str'), type(err)=<class 'TypeError'>
2024-01-09 20:25:30.205485500 INFO:SerialBattery:Testing Renogy
2024-01-09 20:25:30.482124500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:30.483440500 INFO:SerialBattery:Testing Renogy
2024-01-09 20:25:30.752988500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:30.754465500 INFO:SerialBattery:Testing Seplos
2024-01-09 20:25:31.761719500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-09 20:25:32.263026500 ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB0
2024-01-09 20:25:32.263218500 
2024-01-09 20:25:32.263220500 #0
2024-01-09 20:25:32.263221500 #1
2024-01-09 20:25:32.263222500 #2
2024-01-09 20:25:32.263224500 #3
2024-01-09 20:25:32.263225500 #4
2024-01-09 20:25:32.263226500 #5
2024-01-09 20:25:32.263227500 #6
2024-01-09 20:25:32.263229500 #7
2024-01-09 20:25:32.263230500 #8
2024-01-09 20:25:32.263231500 #9
2024-01-09 20:25:32.263233500 #10
2024-01-09 20:25:32.263234500 #11
2024-01-09 20:25:32.263235500 #12
2024-01-09 20:25:32.263236500 #13
2024-01-09 20:25:32.263238500 #14
2024-01-09 20:25:32.263239500 #15
2024-01-09 20:25:32.263240500 #0
2024-01-09 20:25:32.263270500 #1
2024-01-09 20:25:32.263272500 #2
2024-01-09 20:25:32.263273500 #3
2024-01-09 20:25:32.263274500 #4
2024-01-09 20:25:32.263275500 #5
2024-01-09 20:25:32.263277500 #6
2024-01-09 20:25:32.263278500 #7
2024-01-09 20:25:32.263279500 #8
2024-01-09 20:25:32.263280500 #9
2024-01-09 20:25:32.263282500 #10
2024-01-09 20:25:32.263283500 #11
2024-01-09 20:25:32.263284500 #12
2024-01-09 20:25:32.263286500 #13
2024-01-09 20:25:32.263287500 #14
2024-01-09 20:25:32.263288500 #15
2024-01-09 20:25:32.263290500 #0
2024-01-09 20:25:32.263291500 #1
2024-01-09 20:25:32.263315500 #2
2024-01-09 20:25:32.263317500 #3
2024-01-09 20:25:32.263318500 #4
2024-01-09 20:25:32.263319500 #5
2024-01-09 20:25:32.263321500 #6
2024-01-09 20:25:32.263322500 #7
2024-01-09 20:25:32.263323500 #8
2024-01-09 20:25:32.263324500 #9
2024-01-09 20:25:32.263326500 #10
2024-01-09 20:25:32.263327500 #11
2024-01-09 20:25:32.263328500 #12
2024-01-09 20:25:32.263330500 #13
2024-01-09 20:25:32.263331500 #14
2024-01-09 20:25:32.263332500 #15

Any other information that may be helpful

No response

@ToxSox ToxSox added the support Support request label Jan 9, 2024
@mr-manuel
Copy link
Collaborator

Please use the latest nightly of the dev branch. The logs should look different.

@ToxSox
Copy link
Author

ToxSox commented Jan 10, 2024

Here the log from the dev branch:

2024-01-10 20:20:50.976349500 INFO:SerialBattery:
2024-01-10 20:20:50.976691500 INFO:SerialBattery:Starting dbus-serialbattery
2024-01-10 20:20:50.981996500 INFO:SerialBattery:dbus-serialbattery v1.1.20231224dev
2024-01-10 20:21:06.990284500 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
2024-01-10 20:21:06.990844500 INFO:SerialBattery:Testing Daly at address "\x40"
2024-01-10 20:21:07.117791500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:07.118418500 INFO:SerialBattery:Testing Daly at address "\x80"
2024-01-10 20:21:07.245165500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:07.245627500 INFO:SerialBattery:Testing Ecs
2024-01-10 20:21:07.305506500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:07.305965500 INFO:SerialBattery:Testing HeltecModbus
2024-01-10 20:21:10.632821500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:10.633244500 INFO:SerialBattery:Testing HLPdataBMS4S
2024-01-10 20:21:11.462205500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:11.462212500 INFO:SerialBattery:Testing Jkbms
2024-01-10 20:21:11.733776500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:11.735690500 INFO:SerialBattery:Testing Lifepower
2024-01-10 20:21:12.006117500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:12.007654500 INFO:SerialBattery:Testing LltJbd
2024-01-10 20:21:12.335942500 ERROR:SerialBattery:Unexpected err=TypeError('can only concatenate str (not "int") to str'), type(err)=<class 'TypeError'>
2024-01-10 20:21:12.336613500 INFO:SerialBattery:Testing Renogy at address "\x30"
2024-01-10 20:21:12.609394500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:12.610904500 INFO:SerialBattery:Testing Renogy at address "\xf7"
2024-01-10 20:21:12.883385500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:12.884963500 INFO:SerialBattery:Testing Seplos
2024-01-10 20:21:13.892524500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:14.394735500 INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
2024-01-10 20:21:14.394742500 INFO:SerialBattery:Testing Daly at address "\x40"
2024-01-10 20:21:14.520624500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:14.521202500 INFO:SerialBattery:Testing Daly at address "\x80"
2024-01-10 20:21:14.647496500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:14.647986500 INFO:SerialBattery:Testing Ecs
2024-01-10 20:21:15.075842500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:15.075849500 INFO:SerialBattery:Testing HeltecModbus
2024-01-10 20:21:18.770706500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:18.770713500 INFO:SerialBattery:Testing HLPdataBMS4S
2024-01-10 20:21:19.580066500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:19.580073500 INFO:SerialBattery:Testing Jkbms
2024-01-10 20:21:19.850730500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:19.852493500 INFO:SerialBattery:Testing Lifepower
2024-01-10 20:21:20.123728500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:20.125086500 INFO:SerialBattery:Testing LltJbd
2024-01-10 20:21:20.557683500 ERROR:SerialBattery:Unexpected err=TypeError('can only concatenate str (not "int") to str'), type(err)=<class 'TypeError'>
2024-01-10 20:21:20.558193500 INFO:SerialBattery:Testing Renogy at address "\x30"
2024-01-10 20:21:20.838465500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:20.839978500 INFO:SerialBattery:Testing Renogy at address "\xf7"
2024-01-10 20:21:21.108918500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:21.110300500 INFO:SerialBattery:Testing Seplos
2024-01-10 20:21:22.117811500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:22.619180500 INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
2024-01-10 20:21:22.619864500 INFO:SerialBattery:Testing Daly at address "\x40"
2024-01-10 20:21:22.746395500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:22.747122500 INFO:SerialBattery:Testing Daly at address "\x80"
2024-01-10 20:21:22.873548500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:22.874044500 INFO:SerialBattery:Testing Ecs
2024-01-10 20:21:23.283960500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:23.284397500 INFO:SerialBattery:Testing HeltecModbus
2024-01-10 20:21:26.966073500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:26.966523500 INFO:SerialBattery:Testing HLPdataBMS4S
2024-01-10 20:21:27.774594500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:27.775176500 INFO:SerialBattery:Testing Jkbms
2024-01-10 20:21:28.042801500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:28.044073500 INFO:SerialBattery:Testing Lifepower
2024-01-10 20:21:28.314600500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:28.316211500 INFO:SerialBattery:Testing LltJbd
2024-01-10 20:21:28.640205500 ERROR:SerialBattery:Unexpected err=TypeError('can only concatenate str (not "int") to str'), type(err)=<class 'TypeError'>
2024-01-10 20:21:28.641021500 INFO:SerialBattery:Testing Renogy at address "\x30"
2024-01-10 20:21:28.923946500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:28.925816500 INFO:SerialBattery:Testing Renogy at address "\xf7"
2024-01-10 20:21:29.201106500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:29.202595500 INFO:SerialBattery:Testing Seplos
2024-01-10 20:21:30.209805500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-10 20:21:30.711077500 ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyUSB0
2024-01-10 20:21:30.711265500 #0
2024-01-10 20:21:30.711267500 #1
2024-01-10 20:21:30.711268500 #2
2024-01-10 20:21:30.711270500 #3
2024-01-10 20:21:30.711271500 #4
2024-01-10 20:21:30.711272500 #5
2024-01-10 20:21:30.711274500 #6
2024-01-10 20:21:30.711275500 #7
2024-01-10 20:21:30.711276500 #8
2024-01-10 20:21:30.711277500 #9
2024-01-10 20:21:30.711279500 #10
2024-01-10 20:21:30.711280500 #11
2024-01-10 20:21:30.711281500 #12
2024-01-10 20:21:30.711283500 #13
2024-01-10 20:21:30.711284500 #14
2024-01-10 20:21:30.711285500 #15
2024-01-10 20:21:30.711287500 #0
2024-01-10 20:21:30.711288500 #1
2024-01-10 20:21:30.711318500 #2
2024-01-10 20:21:30.711319500 #3
2024-01-10 20:21:30.711321500 #4
2024-01-10 20:21:30.711322500 #5
2024-01-10 20:21:30.711323500 #6
2024-01-10 20:21:30.711324500 #7
2024-01-10 20:21:30.711326500 #8
2024-01-10 20:21:30.711327500 #9
2024-01-10 20:21:30.711328500 #10
2024-01-10 20:21:30.711330500 #11
2024-01-10 20:21:30.711331500 #12
2024-01-10 20:21:30.711332500 #13
2024-01-10 20:21:30.711333500 #14
2024-01-10 20:21:30.711335500 #15
2024-01-10 20:21:30.711336500 #0
2024-01-10 20:21:30.711337500 #1
2024-01-10 20:21:30.711339500 #2
2024-01-10 20:21:30.711362500 #3
2024-01-10 20:21:30.711363500 #4
2024-01-10 20:21:30.711365500 #5
2024-01-10 20:21:30.711366500 #6
2024-01-10 20:21:30.711367500 #7
2024-01-10 20:21:30.711368500 #8
2024-01-10 20:21:30.711370500 #9
2024-01-10 20:21:30.711371500 #10
2024-01-10 20:21:30.711372500 #11
2024-01-10 20:21:30.711373500 #12
2024-01-10 20:21:30.711375500 #13
2024-01-10 20:21:30.711376500 #14
2024-01-10 20:21:30.711377500 #15

@mr-manuel
Copy link
Collaborator

Please use tripple backticks in the line before and after your code for proper formatting :-)

@ToxSox
Copy link
Author

ToxSox commented Jan 10, 2024

okay, sorry

@ToxSox
Copy link
Author

ToxSox commented Jan 11, 2024

I have tried v0.14.3 and that works fine.

mr-manuel added a commit to mr-manuel/venus-os_dbus-serialbattery that referenced this issue Jan 12, 2024
@mr-manuel
Copy link
Collaborator

Could you please install the nightly from the dev branch that I changed a few seconds ago? If it still doesn't work please enable debugging in the config.

@ToxSox
Copy link
Author

ToxSox commented Jan 13, 2024

2024-01-11 18:11:27.784085500 INFO:SerialBattery:Starting dbus-serialbattery
2024-01-11 18:11:27.784778500 INFO:SerialBattery:dbus-serialbattery v0.14.3
2024-01-11 18:11:27.785395500 INFO:SerialBattery:Testing LltJbd
2024-01-11 18:11:27.924076500 INFO:SerialBattery:Connection established to LltJbd
2024-01-11 18:11:27.924717500 INFO:SerialBattery:Battery LLT/JBD connected to dbus from /dev/ttyUSB0
2024-01-11 18:11:27.925226500 INFO:SerialBattery:=== Settings ===
2024-01-11 18:11:27.925798500 INFO:SerialBattery:> Connection voltage NoneV | current NoneA | SOC None%
2024-01-11 18:11:27.926319500 INFO:SerialBattery:> Cell count None | cells populated 0
2024-01-11 18:11:27.926840500 INFO:SerialBattery:> CCCM SOC True | DCCM SOC True
2024-01-11 18:11:27.927350500 INFO:SerialBattery:> CCCM CV True | DCCM CV True
2024-01-11 18:11:27.927852500 INFO:SerialBattery:> CCCM T True | DCCM T True
2024-01-11 18:11:27.928396500 INFO:SerialBattery:> MIN_CELL_VOLTAGE 2.9V | MAX_CELL_VOLTAGE 3.45V
2024-01-11 18:11:27.960725500 INFO:SerialBattery:DeviceInstance = 1
2024-01-11 18:11:27.961271500 INFO:SerialBattery:com.victronenergy.battery.ttyUSB0
2024-01-13 07:54:51.475825500 *** CCGX booted (0) ***
2024-01-13 08:00:51.615654500 *** CCGX booted (0) ***
2024-01-13 08:02:08.089887500 INFO:SerialBattery:
2024-01-13 08:02:08.090234500 INFO:SerialBattery:Starting dbus-serialbattery
2024-01-13 08:02:08.091137500 INFO:SerialBattery:dbus-serialbattery v1.1.20240112dev
2024-01-13 08:02:24.107085500 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
2024-01-13 08:02:24.107648500 INFO:SerialBattery:Testing Daly at address "\x40"
2024-01-13 08:02:24.234389500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-13 08:02:24.234953500 INFO:SerialBattery:Testing Daly at address "\x80"
2024-01-13 08:02:24.362126500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-13 08:02:24.362595500 INFO:SerialBattery:Testing Ecs
2024-01-13 08:02:24.422332500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-13 08:02:24.422801500 INFO:SerialBattery:Testing HeltecModbus
2024-01-13 08:02:27.759385500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-13 08:02:27.759934500 INFO:SerialBattery:Testing HLPdataBMS4S
2024-01-13 08:02:28.569419500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-13 08:02:28.570007500 INFO:SerialBattery:Testing Jkbms
2024-01-13 08:02:28.839405500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-13 08:02:28.841068500 INFO:SerialBattery:Testing Lifepower
2024-01-13 08:02:29.114600500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2024-01-13 08:02:29.115939500 INFO:SerialBattery:Testing LltJbd
2024-01-13 08:02:29.451798500 WARNING:SerialBattery:>>> WARN: BMS rejected request. Status 130
2024-01-13 08:02:29.498123500 WARNING:SerialBattery:>>> WARN: BMS rejected request. Status 129
2024-01-13 08:02:29.545433500 WARNING:SerialBattery:>>> WARN: BMS rejected request. Status 129
2024-01-13 08:02:29.577462500 WARNING:SerialBattery:>>> WARN: BMS rejected request. Status 129
2024-01-13 08:02:29.609509500 WARNING:SerialBattery:>>> WARN: BMS rejected request. Status 129
2024-01-13 08:02:29.926303500 INFO:SerialBattery:Connection established to LltJbd
2024-01-13 08:02:29.926761500 INFO:SerialBattery:Battery LLT/JBD connected to dbus from /dev/ttyUSB0
2024-01-13 08:02:29.927180500 INFO:SerialBattery:========== Settings ==========
2024-01-13 08:02:29.927651500 INFO:SerialBattery:> Connection voltage: 52.93V | Current: 0.0A | SoC: None%
2024-01-13 08:02:29.928073500 INFO:SerialBattery:> Cell count: 16 | Cells populated: 16
2024-01-13 08:02:29.928509500 INFO:SerialBattery:> LINEAR LIMITATION ENABLE: True
2024-01-13 08:02:29.928963500 INFO:SerialBattery:> MAX BATTERY CHARGE CURRENT: 50.0A | MAX BATTERY DISCHARGE CURRENT: 60.0A
2024-01-13 08:02:29.929391500 INFO:SerialBattery:> CVCM:     True
2024-01-13 08:02:29.929838500 INFO:SerialBattery:> MIN CELL VOLTAGE: 2.9V | MAX CELL VOLTAGE: 3.45V
2024-01-13 08:02:29.930297500 INFO:SerialBattery:> CCCM CV:  True  | DCCM CV:  True
2024-01-13 08:02:29.930737500 INFO:SerialBattery:> CCCM T:   True  | DCCM T:   True
2024-01-13 08:02:29.931175500 INFO:SerialBattery:> CCCM SOC: True  | DCCM SOC: True
2024-01-13 08:02:29.931721500 INFO:SerialBattery:Serial Number/Unique Identifier: 35_107.0Ah
2024-01-13 08:02:30.114852500 INFO:SerialBattery:Remove /Settings/Devices/serialbattery_ttyUSB0 from dbus. Old entry. Delete result: False
2024-01-13 08:02:30.736536500 INFO:SerialBattery:DeviceInstance = 1
2024-01-13 08:02:30.738183500 INFO:SerialBattery:Used device instances: ['1']
2024-01-13 08:02:30.740175500 INFO:SerialBattery:com.victronenergy.battery.ttyUSB0
2024-01-13 08:02:30.938673500 WARNING:SerialBattery:>>> WARN: BMS rejected request. Status 130
2024-01-13 08:02:30.987149500 WARNING:SerialBattery:>>> WARN: BMS rejected request. Status 129
2024-01-13 08:02:31.127815500 WARNING:SerialBattery:>>> WARN: BMS rejected request. Status 129
2024-01-13 08:02:31.165134500 WARNING:SerialBattery:>>> WARN: BMS rejected request. Status 129
2024-01-13 08:02:31.212392500 WARNING:SerialBattery:>>> WARN: BMS rejected request. Status 129
2024-01-13 08:02:31.239492500 INFO:SerialBattery:publish config values = True
2024-01-13 08:02:31.309574500 INFO:SerialBattery:DeviceInstance = 1
2024-01-13 08:02:31.310132500 INFO:SerialBattery:Changed DeviceInstance = 1
2024-01-13 08:02:31.311791500 INFO:SerialBattery:Changed CustomName = SerialBattery(LLT/JBD)

Thanks! It works now, with some warnings in the log.

Louisvdw pushed a commit that referenced this issue Feb 28, 2024
* fix Sinowealth not loading
#702

* fix unique identifier function

* enable BMS over config, if disabled by default
Now you can also add more then one BMS for BMS_TYPE

* show battery port in log

* ANT BMS fixes
Fixed that other devices are recognized as ANT BMS

* Sinowealth BMS fixes
Fixed that other devices are recognized as Sinowealth BMS

* improved publish_battery error handling
switched from error count to seconds

* Improve Battery Voltage Handling in Linear Absorption Mode

* Refactor change time() to int(time()) for consistency in max_voltage_start_time and tDiff calculation
* Refactor battery voltage calculations for efficiency and clarity
* Remove penalty_buffer
* Reset max_voltage_start_time wenn we going to bulk(dynamic) mode

* updated changelog

* fix reply processing

* Reduce the big inrush current, if the CVL jumps
from Bulk/Absorbtion to Float
fix #659

* Check returned data lenght for Seplos BMS

Be stricter about the return data we accept, might fix the problem of grid meters accidently being recognized as a Seplos

* Validate current, voltage, capacity and SoC for all BMS
This prevents that a device, which is no BMS, is detected as BMS

* removed double check

* bump version

* fix validation if None

* updated changelog

* proposal to #659 formatted :)

* bugfix proposal to #659

* refactor setting float charge_mode

* fix type error, removed bluetooth cronjob

* updated changelog

* fix rs485 write communication errors by inserting sleeps, add debug print for charge mode and fix crash on write soc failures

* fix write problem on set_soc. also changed the switch charge/discharge function, just in case

* debug msg

* Bluetooth optimizations

* Fixes by @peterohman
#505 (comment)

* fix #712

* fix meaningless time to go values

* fix meaningless time to go values

* Duration of transition to float depends on number of cells

* Float transition - Voltage drop per second

* Update hlpdatabms4s.py

* Validate setting of FLOAT_CELL_VOLTAGE and avoid misconfiguration

* consider utils.LINEAR_RECALCULATION_EVERY to refresh CVL

* cleanup

* consider utils.LINEAR_RECALCULATION_EVERY to refresh CVL

* small refactor, introduced set_cvl_linear function to set CVL only once every LINEAR_RECALCULATION_EVERY seconds

* fix typo

* updated changelog

* remove debug msg

* remove debug msg

* undo debug change

* Daly BMS make auto reset soc configurable

* added debug and error information for CVL

* fix proposal for #733 (#735)

* Added: Tollerance to enter float voltage once the timer is triggered

* Add bulk voltage
Load to bulk voltage every x days to reset the SoC to 100% for some BMS

* JKBMS disable high voltage warning on bulk
reenable after bulk was completed

* fixed error

* disable high voltage warning for all BMS
when charging to bulk voltage

* fix error and change default value
measurementToleranceVariation from 0.025 to 0.5 else in OffGrid mode max voltage is always kept

* Added temperature names to dbus/mqtt

* Use current avg of last 300 cycles for TTG & TTS

* Calculate only positive Time-to-SoC points

* added current average of last 5 minutes

* make CCL and DCL more clear

* fix small error

* bugfix: LLTJBD BMS SOC different in Xiaoxiang app and dbus-serialbattery

* black formatting

* JDB BMS - Control FETs for charge, discharge and disable / enable balancer (#761)

* feature: Allow to control charge / discharge FET
* feature: Allow to enable / disable balancer

* bugfix: Cycle Capacity is in 10 mAh

Fixes SoC with factor 100 * 100% percentage

* JBD BMS show balancer state in GUI page IO (#763)

* Bump version

* Fix typos

* Smaller fixes
- fixes #792 (comment)

* Removed comments from utils.py
This should make more clear that there are no values to change

* Updated changelog

* possible fix for LLT/JBS connection problems
#769
#777

* bugfix: LLT/JBD BMS general packet data size check

* improved reinstall and disable script

* LLT/JBD BMS - Improved error handling and automatical driver restart
in case of error. Should fix:
- #730
- #769
- #777

* Fixed Building wheel for dbus-fast won't finish on weak systems
Fixes #785

* Support for Daly CAN Bus (#169)

* support for Daly CAN Bus
* fix constructor args
* revert port, needs fix
* add can filters
* comment logger

Some changes are still needed to work with the latest version. They will follow in a next PR.

---------

Co-authored-by: Samuel Brucksch <samuel@iternio.com>
Co-authored-by: Manuel <mr-manuel@outlook.it>

* JKBMS BLE - Introduction of automatic SOC reset (HW Version 11) (#736)

* Introduction of automatic SOC reset for JK BMS (HW Version 11)
* Fixed value mapping
* Rework of the code to make it simpler to use without additional configuration.
Moved execution of SOC reset. It's now executed while changing from "Float" to "Float Transition".
* Implementation of suggested changes
Persist initial BMS OVP and OVPR settings
Make use of max_cell_voltage to calculate trigger value for OVP alert

* Added: Daly CAN and JKBMS CAN

* added CAN bms to installation script
optimized CAN drivers

* smaller fixes

* Trigger JK BLE SOC reset when using Step Mode

* Moved trigger_soc_reset()

* fixes LLT/JBD SOC > 100%
#769

* changed VOLTAGE_DROP behaviour

* Fix JKBMS not starting if BMS manuf. date is empty

* corrected bulk, absorption and soc reset terms

* fix typo

* add JKBMS_BLE debugging data

* fix small error

* Some changes for lost bluetooth connection / hci_uart stack restart

* added logging to config

* add sleep before starting driver
prevents lot of timeouts after reinstalling the driver, since the restart is now much faster than before

* changed post install info

* fix error

* Daly BMS fixed embedded null byte
#837

* added info for SoC reset to default config file

* fix for #716
#716

* fix for #716 and JKBMS model recognition
#716

* optimized logging

* fix JKBMS recognition

* added debugging

* fixes #716
#716

* Bind device instance to unique_identifier
#718

* added data types to battery class
disabled unused variables

* save current charge state
#840

* correct file permissions

* updated changelog

* added periodic saveChargeDetails

* fix some small errors

* fix issue with ruuvi tags
When there are hundreds of unused ruuvi tags in the settings list that where added because thei where nearby the driver does not start correctly. These stale entries are disabled on the driver startup.
The issue was already filed to Victron developers

* CVL with i-controller instead of penaltysum

* cvl_controller: switch to choose PenaltySum or ICOntroller + documentation

* docu enhancement

* Add setting and install logic for usb bluetooth module

* round temperatures

* changed battery disconnect behaviour

* Fixes #891
#891

* updated changelog

* Add bluetooth device note to config.default.ini

* Fix typo in bluetooth note in config.default.ini

* fixed error in new cvl_controller

* fixed float division by zero and code optimization

* Restart MAX_VOLTAGE_TIME_SEC if cell diff > CELL_VOLTAGE_DIFF_KEEP_MAX_VOLTAGE_TIME_RESTART

* Calculation of the SOC based on coloumb-counting (#868)

* Calculation of the SOC in the driver based on coloumb-counting

* soc_calc: add current correction before integration

* soc_calc: correction map for current

* Soc_calc: CorrectionMap, switch to turn on/off correction, selectable initial value

* soc_calc: Bugfix

* soc_calc: Bugfix

* store soc in dbus for restart

* store soc in dbus for restart (formatted)

* store soc in dbus for restart (bugfix)

* save soc_calc only after change > 1.0

* store soc in dbus for restart (bugfix)

* logger does not work this way. do not know why

* writing and reading to dbus works

* Removed options: SOC_CALC_CURRENT_CORRECTION, SOC_CALC_RESET_VALUE_ON_RESTART, SOC_CALC_INIT_VALUE
sort soc_calc alphabetically

* fixed comments

* Updated changelog, small fixes

* Changed: PUBLISH_CONFIG_VALUES from 0/1 to True/False

* Changed: Code optimizations
- Changed some variables to be more clear
- Added comments for easier code understanding

* Calculated SOC: Added two decimals, added BMS SOC for MQTT & Node-RED

* Updated changelog, small fixes

* Changed: PUBLISH_CONFIG_VALUES from 0/1 to True/False

* Changed: Code optimizations
- Changed some variables to be more clear
- Added comments for easier code understanding

* Calculated SOC: Added two decimals, added BMS SOC for MQTT & Node-RED

* Fix #898
#898

* Changed: Fix issue loading settings from dbus

* Added nightly install option
makes it easier for users to pretest fixes

* Changed: more detailed error output when an exception happens

* Possible fix for #912
#912

* Fixes #919
#919

* Changed: Exit script with error, if port excluded
else the serialstarter stops at the dbus-serialbattery

* Fixed some smaller errors

* Updated pre-release workflow

* Fix JK BMS connection restart when bluetooth fails.

This fix installs a new thread to monitor the state of the original
scraping thread.
If scraping thread dies, it verifies that it did not because the
scraping was intentionally stopped by calling stop_scrapping.
When restarting the scrapper, it first calls the bluetooth
reset lambda function that was passed in the class contructor, such that
bluetooth is ready to make a proper connection.

* Fixes #916
#916

* Added Venus OS version to logfile

* Fix #840
#840

* Small code formatting fixes

* Optimized reinstall script. Restart GUI only on changes.

* Display debugging data in GUI when DEBUG enabled

* Install script now shows repositories and version numbers

* Update daly_can.py

Fixing #950 for DalyBMS

* Update jkbms_can.py

Fixing #950 for Jk BMS

* Fix black lint check

* Fixes #970
#970

* Fixed some errors in restoring values from dbus settings

* Moved sleep on start for all BMS

* Update config description

* Reworked a part of the default config

* fix typo in stopping services when reinstalling

* Fix Time-to-SoC and Time-to-Go calculation

* Add changelog info

* Round sum and diff voltage

* Temperature limitation variables where changed

* SoC limitation variables where changed

* Added error messages

* Remove unneeded code

* Reset SoC to 0% if empty

* Add GUIv2 for dbus-serialbattery

* Check free space before installing

* Added new GUIv2 version

* Removed Python 2 compatibility

* Changelog update

* Code cleanup
- Removed: get_temperatures()
- Removed: update_last_seen()

* Bluetooth code optimizations

* Fixed some JKBMS BLE not starting
#819

* Check if packages are already installed before install

* Fixed some SOC calculation errors

* Fixed None SOC on driver start

* Do not show and allow button change when callback is missing for:
- ForceChargingOff
- ForceDischargingOff
- TurnBalancingOff

* Check if a device instance is already used by creating a PID file

* Log and execute SOC reset to 100% or 0% only once

* Update GitHub workflow and issue templates

* Fixed LLT/JBD BMS with only on temperature sensor #791
#971

* Fix warning on reinstall

* Fix missing IO control for JBDBMS #992
#992

* Prepare for removing dev branch

---------

Co-authored-by: ogurevich <50322596+ogurevich@users.noreply.github.com>
Co-authored-by: Bernd Stahlbock <6627385+transistorgit@users.noreply.github.com>
Co-authored-by: wollew <wollew@users.noreply.github.com>
Co-authored-by: Oleg Gurevich <oleg@gurevich.de>
Co-authored-by: peterohman <psub@fieber.se>
Co-authored-by: Strawder, Paul <paul@coach-ai.com>
Co-authored-by: Paul Strawder <paulidstein@gmail.com>
Co-authored-by: Samuel Brucksch <SamuelBrucksch@users.noreply.github.com>
Co-authored-by: Samuel Brucksch <samuel@iternio.com>
Co-authored-by: ArendsM <136503378+ArendsM@users.noreply.github.com>
Co-authored-by: Meik Arends <github@arends.info>
Co-authored-by: Marvo2011 <Marvin.Edeler@gmail.com>
Co-authored-by: cflenker <christian.flenker@gmx.de>
Co-authored-by: cflenker <125555670+cflenker@users.noreply.github.com>
Co-authored-by: Cupertino Miranda <cupertinomiranda@gmail.com>
Co-authored-by: Martin Polehla <p0l0us@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Support request
Projects
None yet
Development

No branches or pull requests

2 participants