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

LLT/JBD - JBD BMS - unstable communication #730

Closed
Project51At opened this issue Jun 23, 2023 · 17 comments
Closed

LLT/JBD - JBD BMS - unstable communication #730

Project51At opened this issue Jun 23, 2023 · 17 comments
Labels
bug Something isn't working question Further information is requested

Comments

@Project51At
Copy link

Describe the bug

My Setup:
- JBD-AP20S006
- JBD-UART-TOOLS-RS485 (Rev. 1.7)

The setup works well withh Venus OS V3.0 and dbus-serialbattery v0.14.3.

After a dbus-serial battery update (or a fresh install) to v1.0.20230531 the communication is unstable or cannot be established.

How to reproduce

Do a update to v1.0.20230531

Expected behavior

well communication

Driver version

v1.0.20230531

Venus OS device type

Raspberry Pi

Venus OS version

V3.0

BMS type

Smart BMS (LLT, JBD, Overkill Solar)

Cell count

16

Connection type

Serial USB adapter to RS485

Config file

default config

Relevant log output

$	ls -l /dev/ttyACM*
	crw-rw----    1 root     dialout   166,   0 Jun 19 18:00 /dev/ttyACM0

$	head /data/var/lib/serial-starter/*
	==> /data/var/lib/serial-starter/ttyACM0 <==
	sbattery

	==> /data/var/lib/serial-starter/ttyUSB0 <==
	cgwacs

	==> /data/var/lib/serial-starter/ttyUSB1 <==
	mkx


$	tail -F -n 100 /data/log/dbus-serialbattery.ttyACM0/current | tai64nlocal
2023-06-23 11:23:46.397021500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:23:47.397040500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:23:47.405336500
2023-06-23 11:23:47.405341500 #0
2023-06-23 11:23:47.405343500 #1
2023-06-23 11:23:47.405345500 #2
2023-06-23 11:23:47.405347500 #3
2023-06-23 11:23:47.405349500 #4
2023-06-23 11:23:47.405351500 #5
2023-06-23 11:23:47.405353500 #6
2023-06-23 11:23:47.405355500 #7
2023-06-23 11:23:47.405356500 #8
2023-06-23 11:23:47.405358500 #9
2023-06-23 11:23:47.405360500 #10
2023-06-23 11:23:47.405362500 #11
2023-06-23 11:23:47.405364500 #12
2023-06-23 11:23:47.405366500 #13
2023-06-23 11:23:47.405368500 #14
2023-06-23 11:23:47.405370500 #15
2023-06-23 11:23:47.405371500 #0
2023-06-23 11:23:47.405493500 #1
2023-06-23 11:23:47.405495500 #2
2023-06-23 11:23:47.405497500 #3
2023-06-23 11:23:47.405499500 #4
2023-06-23 11:23:47.405501500 #5
2023-06-23 11:23:47.405503500 #6
2023-06-23 11:23:47.405505500 #7
2023-06-23 11:23:47.405506500 #8
2023-06-23 11:23:47.405508500 #9
2023-06-23 11:23:47.405510500 #10
2023-06-23 11:23:47.405512500 #11
2023-06-23 11:23:47.405514500 #12
2023-06-23 11:23:47.405516500 #13
2023-06-23 11:23:47.405517500 #14
2023-06-23 11:23:47.405519500 #15
2023-06-23 11:23:47.405521500 #0
2023-06-23 11:23:47.405523500 #1
2023-06-23 11:23:47.405549500 #2
2023-06-23 11:23:47.405551500 #3
2023-06-23 11:23:47.405553500 #4
2023-06-23 11:23:47.405555500 #5
2023-06-23 11:23:47.405557500 #6
2023-06-23 11:23:47.405559500 #7
2023-06-23 11:23:47.405560500 #8
2023-06-23 11:23:47.405562500 #9
2023-06-23 11:23:47.405564500 #10
2023-06-23 11:23:47.405566500 #11
2023-06-23 11:23:47.405568500 #12
2023-06-23 11:23:47.405570500 #13
2023-06-23 11:23:47.405571500 #14
2023-06-23 11:23:47.405573500 #15
2023-06-23 11:23:47.405575500 #0
2023-06-23 11:23:47.405577500 #1
2023-06-23 11:23:47.405579500 #2
2023-06-23 11:23:47.405605500 #3
2023-06-23 11:23:47.405607500 #4
2023-06-23 11:23:47.405609500 #5
2023-06-23 11:23:47.405611500 #6
2023-06-23 11:23:47.405613500 #7
2023-06-23 11:23:47.405615500 #8
2023-06-23 11:23:47.405617500 #9
2023-06-23 11:23:47.405618500 #10
2023-06-23 11:23:47.405620500 #11
2023-06-23 11:23:47.405622500 #12
2023-06-23 11:23:47.405624500 #13
2023-06-23 11:23:47.405626500 #14
2023-06-23 11:23:47.405628500 #15
2023-06-23 11:23:47.405630500 #0
2023-06-23 11:23:47.405631500 #1
2023-06-23 11:23:47.405633500 #2
2023-06-23 11:23:47.405635500 #3
2023-06-23 11:23:47.405661500 #4
2023-06-23 11:23:47.405664500 #5
2023-06-23 11:23:47.405666500 #6
2023-06-23 11:23:47.405667500 #7
2023-06-23 11:23:47.405669500 #8
2023-06-23 11:23:47.405671500 #9
2023-06-23 11:23:47.405673500 #10
2023-06-23 11:23:47.405675500 #11
2023-06-23 11:23:47.405677500 #12
2023-06-23 11:23:47.405679500 #13
2023-06-23 11:23:47.405680500 #14
2023-06-23 11:23:47.405682500 #15
2023-06-23 11:23:47.405684500 #0
2023-06-23 11:23:47.405686500 #1
2023-06-23 11:23:47.405688500 #2
2023-06-23 11:23:47.405690500 #3
2023-06-23 11:23:47.405691500 #4
2023-06-23 11:23:47.405717500 #5
2023-06-23 11:23:47.405720500 #6
2023-06-23 11:23:47.405722500 #7
2023-06-23 11:23:47.405724500 #8
2023-06-23 11:23:47.405726500 #9
2023-06-23 11:23:47.405727500 #10
2023-06-23 11:23:47.405729500 #11
2023-06-23 11:23:47.405731500 #12
2023-06-23 11:23:47.405733500 #13
2023-06-23 11:23:47.405735500 #14
2023-06-23 11:23:47.405737500 #15
2023-06-23 11:23:47.405738500 #0
2023-06-23 11:23:47.405740500 #1
2023-06-23 11:23:47.405742500 #2
2023-06-23 11:23:47.405744500 #3
2023-06-23 11:23:47.405746500 #4
2023-06-23 11:23:47.405748500 #5
2023-06-23 11:23:47.405773500 #6
2023-06-23 11:23:47.405776500 #7
2023-06-23 11:23:47.405778500 #8
2023-06-23 11:23:47.405780500 #9
2023-06-23 11:23:47.405781500 #10
2023-06-23 11:23:47.405783500 #11
2023-06-23 11:23:47.405785500 #12
2023-06-23 11:23:47.405787500 #13
2023-06-23 11:23:47.405789500 #14
2023-06-23 11:23:47.405791500 #15
2023-06-23 11:23:47.405793500 #0
2023-06-23 11:23:47.405794500 #1
2023-06-23 11:23:47.405796500 #2
2023-06-23 11:23:47.405798500 #3
2023-06-23 11:23:47.405800500 #4
2023-06-23 11:23:47.405802500 #5
2023-06-23 11:23:47.405803500 #6
2023-06-23 11:23:47.405829500 #7
2023-06-23 11:23:47.405831500 #8
2023-06-23 11:23:47.405833500 #9
2023-06-23 11:23:47.405835500 #10
2023-06-23 11:23:47.405837500 #11
2023-06-23 11:23:47.405839500 #12
2023-06-23 11:23:47.405841500 #13
2023-06-23 11:23:47.405843500 #14
2023-06-23 11:23:47.405844500 #15
2023-06-23 11:23:47.405846500 #0
2023-06-23 11:23:47.405848500 #1
2023-06-23 11:23:47.405850500 #2
2023-06-23 11:23:47.405852500 #3
2023-06-23 11:23:47.405854500 #4
2023-06-23 11:23:47.405855500 #5
2023-06-23 11:23:47.405857500 #6
2023-06-23 11:23:47.405859500 #7
2023-06-23 11:23:47.405884500 #8
2023-06-23 11:23:47.405886500 #9
2023-06-23 11:23:47.405888500 #10
2023-06-23 11:23:47.405890500 #11
2023-06-23 11:23:47.405892500 #12
2023-06-23 11:23:47.405894500 #13
2023-06-23 11:23:47.405896500 #14
2023-06-23 11:23:47.405898500 #15
2023-06-23 11:23:47.405899500 #0
2023-06-23 11:23:47.405901500 #1
2023-06-23 11:23:47.405903500 #2
2023-06-23 11:23:47.405905500 #3
2023-06-23 11:23:47.405907500 #4
2023-06-23 11:23:47.405909500 #5
2023-06-23 11:23:47.405910500 #6
2023-06-23 11:23:47.405912500 #7
2023-06-23 11:23:47.405914500 #8
2023-06-23 11:23:47.405991500 #9
2023-06-23 11:23:47.405994500 #10
2023-06-23 11:23:47.405996500 #11
2023-06-23 11:23:47.405998500 #12
2023-06-23 11:23:47.406000500 #13
2023-06-23 11:23:47.406002500 #14
2023-06-23 11:23:47.406004500 #15
2023-06-23 11:23:47.406005500 #0
2023-06-23 11:23:47.406007500 #1
2023-06-23 11:23:47.406009500 #2
2023-06-23 11:23:47.406011500 #3
2023-06-23 11:23:47.406013500 #4
2023-06-23 11:23:47.406015500 #5
2023-06-23 11:23:47.406016500 #6
2023-06-23 11:23:47.406018500 #7
2023-06-23 11:23:47.406020500 #8
2023-06-23 11:23:47.406022500 #9
2023-06-23 11:23:47.406050500 #10
2023-06-23 11:23:47.406053500 #11
2023-06-23 11:23:47.406055500 #12
2023-06-23 11:23:47.406057500 #13
2023-06-23 11:23:47.406059500 #14
2023-06-23 11:23:47.406060500 #15
2023-06-23 11:23:47.406062500 #0
2023-06-23 11:23:47.406064500 #1
2023-06-23 11:23:47.406066500 #2
2023-06-23 11:23:47.406068500 #3
2023-06-23 11:23:47.406070500 #4
2023-06-23 11:23:47.406071500 #5
2023-06-23 11:23:47.406073500 #6
2023-06-23 11:23:47.406075500 #7
2023-06-23 11:23:47.406077500 #8
2023-06-23 11:23:47.406079500 #9
2023-06-23 11:23:47.406080500 #10
2023-06-23 11:23:47.406106500 #11
2023-06-23 11:23:47.406108500 #12
2023-06-23 11:23:47.406111500 #13
2023-06-23 11:23:47.406113500 #14
2023-06-23 11:23:47.406115500 #15
2023-06-23 11:23:47.406117500 #0
2023-06-23 11:23:47.406119500 #1
2023-06-23 11:23:47.406121500 #2
2023-06-23 11:23:47.406122500 #3
2023-06-23 11:23:47.406124500 #4
2023-06-23 11:23:47.406126500 #5
2023-06-23 11:23:47.406128500 #6
2023-06-23 11:23:47.406130500 #7
2023-06-23 11:23:47.406132500 #8
2023-06-23 11:23:47.406133500 #9
2023-06-23 11:23:47.406135500 #10
2023-06-23 11:23:47.406137500 #11
2023-06-23 11:23:47.406163500 #12
2023-06-23 11:23:47.406165500 #13
2023-06-23 11:23:47.406167500 #14
2023-06-23 11:23:47.406169500 #15
2023-06-23 11:23:47.406171500 #0
2023-06-23 11:23:47.406173500 #1
2023-06-23 11:23:47.406175500 #2
2023-06-23 11:23:47.406176500 #3
2023-06-23 11:23:47.406178500 #4
2023-06-23 11:23:47.406180500 #5
2023-06-23 11:23:47.406182500 #6
2023-06-23 11:23:47.406184500 #7
2023-06-23 11:23:47.406185500 #8
2023-06-23 11:23:47.406187500 #9
2023-06-23 11:23:47.406189500 #10
2023-06-23 11:23:47.406191500 #11
2023-06-23 11:23:47.406193500 #12
2023-06-23 11:23:47.406218500 #13
2023-06-23 11:23:47.406221500 #14
2023-06-23 11:23:47.406223500 #15
2023-06-23 11:23:47.406225500 #0
2023-06-23 11:23:47.406227500 #1
2023-06-23 11:23:47.406229500 #2
2023-06-23 11:23:47.406231500 #3
2023-06-23 11:23:47.406232500 #4
2023-06-23 11:23:47.406234500 #5
2023-06-23 11:23:47.406236500 #6
2023-06-23 11:23:47.406238500 #7
2023-06-23 11:23:47.406240500 #8
2023-06-23 11:23:47.406241500 #9
2023-06-23 11:23:47.406243500 #10
2023-06-23 11:23:47.406245500 #11
2023-06-23 11:23:47.406247500 #12
2023-06-23 11:23:47.406249500 #13
2023-06-23 11:23:47.406275500 #14
2023-06-23 11:23:47.406277500 #15
2023-06-23 11:23:47.406279500 #0
2023-06-23 11:23:47.406281500 #1
2023-06-23 11:23:47.406283500 #2
2023-06-23 11:23:47.406285500 #3
2023-06-23 11:23:47.406286500 #4
2023-06-23 11:23:47.406288500 #5
2023-06-23 11:23:47.406290500 #6
2023-06-23 11:23:47.406292500 #7
2023-06-23 11:23:47.406294500 #8
2023-06-23 11:23:47.406295500 #9
2023-06-23 11:23:47.406297500 #10
2023-06-23 11:23:47.406299500 #11
2023-06-23 11:23:47.406301500 #12
2023-06-23 11:23:47.406303500 #13
2023-06-23 11:23:47.406305500 #14
2023-06-23 11:23:47.406330500 #15
2023-06-23 11:23:47.406333500 #0
2023-06-23 11:23:47.406335500 #1
2023-06-23 11:23:47.406337500 #2
2023-06-23 11:23:47.406339500 #3
2023-06-23 11:23:47.406340500 #4
2023-06-23 11:23:47.406342500 #5
2023-06-23 11:23:47.406344500 #6
2023-06-23 11:23:47.406346500 #7
2023-06-23 11:23:47.406348500 #8
2023-06-23 11:23:47.406349500 #9
2023-06-23 11:23:47.406351500 #10
2023-06-23 11:23:47.406353500 #11
2023-06-23 11:23:47.406355500 #12
2023-06-23 11:23:47.406357500 #13
2023-06-23 11:23:47.406359500 #14
2023-06-23 11:23:47.406360500 #15
2023-06-23 11:23:47.406386500 #0
2023-06-23 11:23:47.406388500 #1
2023-06-23 11:23:47.406391500 #2
2023-06-23 11:23:47.406392500 #3
2023-06-23 11:23:47.406394500 #4
2023-06-23 11:23:47.406396500 #5
2023-06-23 11:23:47.406398500 #6
2023-06-23 11:23:47.406400500 #7
2023-06-23 11:23:47.406401500 #8
2023-06-23 11:23:47.406403500 #9
2023-06-23 11:23:47.406405500 #10
2023-06-23 11:23:47.406407500 #11
2023-06-23 11:23:47.406409500 #12
2023-06-23 11:23:47.406411500 #13
2023-06-23 11:23:47.406413500 #14
2023-06-23 11:23:47.406415500 #15
2023-06-23 11:23:47.406417500 #0
2023-06-23 11:23:47.406497500 #1
2023-06-23 11:23:47.406500500 #2
2023-06-23 11:23:47.406502500 #3
2023-06-23 11:23:47.406504500 #4
2023-06-23 11:23:47.406506500 #5
2023-06-23 11:23:47.406508500 #6
2023-06-23 11:23:47.406509500 #7
2023-06-23 11:23:47.406511500 #8
2023-06-23 11:23:47.406513500 #9
2023-06-23 11:23:47.406515500 #10
2023-06-23 11:23:47.406517500 #11
2023-06-23 11:23:47.406519500 #12
2023-06-23 11:23:47.406520500 #13
2023-06-23 11:23:47.406522500 #14
2023-06-23 11:23:47.406524500 #15
2023-06-23 11:23:47.406604500 #0
2023-06-23 11:23:47.406606500 #1
2023-06-23 11:23:47.406608500 #2
2023-06-23 11:23:47.406610500 #3
2023-06-23 11:23:47.406612500 #4
2023-06-23 11:23:47.406613500 #5
2023-06-23 11:23:47.406615500 #6
2023-06-23 11:23:47.406617500 #7
2023-06-23 11:23:47.406619500 #8
2023-06-23 11:23:47.406621500 #9
2023-06-23 11:23:47.406623500 #10
2023-06-23 11:23:47.406624500 #11
2023-06-23 11:23:47.406626500 #12
2023-06-23 11:23:47.406628500 #13
2023-06-23 11:23:47.406630500 #14
2023-06-23 11:23:47.406632500 #15
2023-06-23 11:23:47.406634500 #0
2023-06-23 11:23:47.406662500 #1
2023-06-23 11:23:47.406664500 #2
2023-06-23 11:23:47.406666500 #3
2023-06-23 11:23:47.406668500 #4
2023-06-23 11:23:47.406670500 #5
2023-06-23 11:23:47.406672500 #6
2023-06-23 11:23:47.406673500 #7
2023-06-23 11:23:47.406675500 #8
2023-06-23 11:23:47.406677500 #9
2023-06-23 11:23:47.406679500 #10
2023-06-23 11:23:47.406681500 #11
2023-06-23 11:23:47.406683500 #12
2023-06-23 11:23:47.406684500 #13
2023-06-23 11:23:47.406686500 #14
2023-06-23 11:23:47.406688500 #15
2023-06-23 11:24:01.292532500 INFO:SerialBattery:Starting dbus-serialbattery
2023-06-23 11:24:01.293296500 INFO:SerialBattery:dbus-serialbattery v1.0.20230531
2023-06-23 11:24:01.293696500 INFO:SerialBattery:Testing Daly
2023-06-23 11:24:01.424579500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:01.425122500 INFO:SerialBattery:Testing Daly
2023-06-23 11:24:01.553294500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:01.553740500 INFO:SerialBattery:Testing Ecs
2023-06-23 11:24:01.615334500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:01.615769500 INFO:SerialBattery:Testing HeltecModbus
2023-06-23 11:24:05.319097500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:05.319613500 INFO:SerialBattery:Testing HLPdataBMS4S
tail: /data/log/dbus-serialbattery.ttyACM0/current has been replaced; following end of new file
2023-06-23 11:24:10.386335500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:10.392259500 INFO:SerialBattery:Testing LltJbd
2023-06-23 11:24:10.897584500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:11.134430500 ERROR:SerialBattery:Unexpected err=TypeError('can only concatenate str (not "int") to str'), type(err)=<class 'TypeError'>
2023-06-23 11:24:11.134710500 INFO:SerialBattery:Testing Renogy
2023-06-23 11:24:11.400545500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:11.406052500 INFO:SerialBattery:Testing Renogy
2023-06-23 11:24:11.673389500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:11.679707500 INFO:SerialBattery:Testing Seplos
2023-06-23 11:24:12.690739500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:13.191784500 INFO:SerialBattery:Testing Daly
2023-06-23 11:24:13.324574500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:13.324579500 INFO:SerialBattery:Testing Daly
2023-06-23 11:24:13.453022500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:13.453319500 INFO:SerialBattery:Testing Ecs
2023-06-23 11:24:13.860379500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:13.860662500 INFO:SerialBattery:Testing HeltecModbus
2023-06-23 11:24:17.566122500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:17.566406500 INFO:SerialBattery:Testing HLPdataBMS4S
2023-06-23 11:24:22.079394500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:22.079678500 INFO:SerialBattery:Testing Jkbms
2023-06-23 11:24:22.350772500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:22.356018500 INFO:SerialBattery:Testing Lifepower
2023-06-23 11:24:22.629284500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:22.634868500 INFO:SerialBattery:Testing LltJbd
2023-06-23 11:24:22.901300500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:22.906869500 INFO:SerialBattery:Testing Renogy
2023-06-23 11:24:23.177548500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:23.183086500 INFO:SerialBattery:Testing Renogy
2023-06-23 11:24:23.453525500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:23.458766500 INFO:SerialBattery:Testing Seplos
2023-06-23 11:24:24.471098500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:24.972121500 INFO:SerialBattery:Testing Daly
2023-06-23 11:24:25.103624500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:25.103922500 INFO:SerialBattery:Testing Daly
2023-06-23 11:24:25.232459500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:25.232755500 INFO:SerialBattery:Testing Ecs
2023-06-23 11:24:25.640786500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:25.640989500 INFO:SerialBattery:Testing HeltecModbus
2023-06-23 11:24:29.341312500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:29.341591500 INFO:SerialBattery:Testing HLPdataBMS4S
2023-06-23 11:24:33.855942500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:33.856275500 INFO:SerialBattery:Testing Jkbms
2023-06-23 11:24:34.126422500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:34.131578500 INFO:SerialBattery:Testing Lifepower
2023-06-23 11:24:34.406986500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:34.417066500 INFO:SerialBattery:Testing LltJbd
2023-06-23 11:24:34.922649500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:35.193465500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:35.468629500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:35.740345500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:36.012616500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:36.018291500 INFO:SerialBattery:Connection established to LltJbd
2023-06-23 11:24:36.018767500 INFO:SerialBattery:Battery LLT/JBD connected to dbus from /dev/ttyACM0
2023-06-23 11:24:36.019141500 INFO:SerialBattery:========== Settings ==========
2023-06-23 11:24:36.019558500 INFO:SerialBattery:> Connection voltage: 53.1V | Current: 1.98A | SoC: 77.89%
2023-06-23 11:24:36.019936500 INFO:SerialBattery:> Cell count: 16 | Cells populated: 16
2023-06-23 11:24:36.020388500 INFO:SerialBattery:> LINEAR LIMITATION ENABLE: True
2023-06-23 11:24:36.020776500 INFO:SerialBattery:> MAX BATTERY CHARGE CURRENT: 50.0A | MAX BATTERY DISCHARGE CURRENT: 60.0A
2023-06-23 11:24:36.021148500 INFO:SerialBattery:> CVCM:     True
2023-06-23 11:24:36.021534500 INFO:SerialBattery:> MIN CELL VOLTAGE: 2.9V | MAX CELL VOLTAGE: 3.45V
2023-06-23 11:24:36.021922500 INFO:SerialBattery:> CCCM CV:  True  | DCCM CV:  True
2023-06-23 11:24:36.022305500 INFO:SerialBattery:> CCCM T:   True  | DCCM T:   True
2023-06-23 11:24:36.022678500 INFO:SerialBattery:> CCCM SOC: True  | DCCM SOC: True
2023-06-23 11:24:36.054965500 INFO:SerialBattery:DeviceInstance = 1
2023-06-23 11:24:36.054971500 INFO:SerialBattery:com.victronenergy.battery.ttyACM0
2023-06-23 11:24:36.554328500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:36.824112500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:37.095356500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:37.114681500 INFO:SerialBattery:publish config values = 1
2023-06-23 11:24:38.399594500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:39.396989500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:40.630047500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:42.400253500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-23 11:24:43.400996500 ERROR:SerialBattery:>>> ERROR: No reply - returning

Any other information that may be helpful

No response

@Project51At Project51At added the bug Something isn't working label Jun 23, 2023
@mr-manuel
Copy link
Collaborator

Could you try to install the nightly from the dev branch?

@Project51At
Copy link
Author

Project51At commented Jun 24, 2023

behaviour keeps the same
after

$ bash /tmp/install.sh
$ tail -F -n 100 /data/log/dbus-serialbattery.ttyACM0/current | tai64nlocal

2023-06-24 13:11:15.159839500 INFO:SerialBattery:Testing Renogy at address "\xf7"
2023-06-24 13:11:15.429825500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:15.436864500 INFO:SerialBattery:Testing Seplos
2023-06-24 13:11:16.447544500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:16.948778500 INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
2023-06-24 13:11:16.950076500 INFO:SerialBattery:Testing Daly at address "\x40"
2023-06-24 13:11:17.081893500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:17.082378500 INFO:SerialBattery:Testing Daly at address "\x80"
2023-06-24 13:11:17.210667500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:17.211121500 INFO:SerialBattery:Testing Ecs
2023-06-24 13:11:17.618432500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:17.618949500 INFO:SerialBattery:Testing HeltecModbus
2023-06-24 13:11:21.326398500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:21.326865500 INFO:SerialBattery:Testing HLPdataBMS4S
2023-06-24 13:11:22.140681500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:22.141124500 INFO:SerialBattery:Testing Jkbms
2023-06-24 13:11:22.411912500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:22.417614500 INFO:SerialBattery:Testing Lifepower
2023-06-24 13:11:22.695876500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:22.701256500 INFO:SerialBattery:Testing LltJbd
2023-06-24 13:11:22.966470500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:22.971996500 INFO:SerialBattery:Testing Renogy at address "\x30"
2023-06-24 13:11:23.240518500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:23.246210500 INFO:SerialBattery:Testing Renogy at address "\xf7"
2023-06-24 13:11:23.512271500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:23.518817500 INFO:SerialBattery:Testing Seplos
2023-06-24 13:11:24.534828500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:25.036886500 INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
2023-06-24 13:11:25.036891500 INFO:SerialBattery:Testing Daly at address "\x40"
2023-06-24 13:11:25.167332500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:25.167808500 INFO:SerialBattery:Testing Daly at address "\x80"
2023-06-24 13:11:25.295963500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:25.296417500 INFO:SerialBattery:Testing Ecs
2023-06-24 13:11:25.704062500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:25.704067500 INFO:SerialBattery:Testing HeltecModbus
2023-06-24 13:11:29.409067500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:29.409525500 INFO:SerialBattery:Testing HLPdataBMS4S
2023-06-24 13:11:30.222604500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:30.222609500 INFO:SerialBattery:Testing Jkbms
2023-06-24 13:11:30.498210500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:30.503729500 INFO:SerialBattery:Testing Lifepower
2023-06-24 13:11:30.779778500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:30.785165500 INFO:SerialBattery:Testing LltJbd
2023-06-24 13:11:31.052265500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:31.058006500 INFO:SerialBattery:Testing Renogy at address "\x30"
2023-06-24 13:11:31.334848500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:31.340467500 INFO:SerialBattery:Testing Renogy at address "\xf7"
2023-06-24 13:11:31.616701500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:31.622231500 INFO:SerialBattery:Testing Seplos
2023-06-24 13:11:32.637825500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:33.142950500 ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyACM0
tail: /data/log/dbus-serialbattery.ttyACM0/current has been replaced; following end of new file
2023-06-24 13:11:47.746566500 INFO:SerialBattery:Testing HeltecModbus
2023-06-24 13:11:51.449152500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:51.449641500 INFO:SerialBattery:Testing HLPdataBMS4S
2023-06-24 13:11:52.262940500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:52.262945500 INFO:SerialBattery:Testing Jkbms
2023-06-24 13:11:52.529586500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:52.537635500 INFO:SerialBattery:Testing Lifepower
2023-06-24 13:11:52.809394500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:52.814708500 INFO:SerialBattery:Testing LltJbd
2023-06-24 13:11:53.081399500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:53.086782500 INFO:SerialBattery:Testing Renogy at address "\x30"
2023-06-24 13:11:53.352924500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:53.358520500 INFO:SerialBattery:Testing Renogy at address "\xf7"
2023-06-24 13:11:53.630270500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:53.635795500 INFO:SerialBattery:Testing Seplos
2023-06-24 13:11:54.647873500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:55.152634500 INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
2023-06-24 13:11:55.152639500 INFO:SerialBattery:Testing Daly at address "\x40"
2023-06-24 13:11:55.284990500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:55.284996500 INFO:SerialBattery:Testing Daly at address "\x80"
2023-06-24 13:11:55.413218500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:55.413669500 INFO:SerialBattery:Testing Ecs
2023-06-24 13:11:55.821345500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:55.821350500 INFO:SerialBattery:Testing HeltecModbus
2023-06-24 13:11:59.521972500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:11:59.522436500 INFO:SerialBattery:Testing HLPdataBMS4S
2023-06-24 13:12:00.332897500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:00.332997500 INFO:SerialBattery:Testing Jkbms
2023-06-24 13:12:00.608273500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:00.613913500 INFO:SerialBattery:Testing Lifepower
2023-06-24 13:12:00.883610500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:00.889364500 INFO:SerialBattery:Testing LltJbd
2023-06-24 13:12:01.156943500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:01.162561500 INFO:SerialBattery:Testing Renogy at address "\x30"
2023-06-24 13:12:01.429309500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:01.434488500 INFO:SerialBattery:Testing Renogy at address "\xf7"
2023-06-24 13:12:01.709254500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:01.714949500 INFO:SerialBattery:Testing Seplos
2023-06-24 13:12:02.726466500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:03.228517500 INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
2023-06-24 13:12:03.228522500 INFO:SerialBattery:Testing Daly at address "\x40"
2023-06-24 13:12:03.359429500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:03.359897500 INFO:SerialBattery:Testing Daly at address "\x80"
2023-06-24 13:12:03.488493500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:03.488949500 INFO:SerialBattery:Testing Ecs
2023-06-24 13:12:03.898157500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:03.898162500 INFO:SerialBattery:Testing HeltecModbus
2023-06-24 13:12:07.598998500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:07.599448500 INFO:SerialBattery:Testing HLPdataBMS4S
2023-06-24 13:12:08.409947500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:08.410387500 INFO:SerialBattery:Testing Jkbms
2023-06-24 13:12:08.687263500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:08.692983500 INFO:SerialBattery:Testing Lifepower
2023-06-24 13:12:08.964060500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:08.969323500 INFO:SerialBattery:Testing LltJbd
2023-06-24 13:12:09.482046500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:09.753409500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:10.027619500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:10.300675500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:10.575399500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:10.584548500 INFO:SerialBattery:Connection established to LltJbd
2023-06-24 13:12:10.586143500 INFO:SerialBattery:Battery LLT/JBD connected to dbus from /dev/ttyACM0
2023-06-24 13:12:10.588115500 INFO:SerialBattery:========== Settings ==========
2023-06-24 13:12:10.589782500 INFO:SerialBattery:> Connection voltage: 53.41V | Current: 1.21A | SoC: 85.79%
2023-06-24 13:12:10.591324500 INFO:SerialBattery:> Cell count: 16 | Cells populated: 16
2023-06-24 13:12:10.592956500 INFO:SerialBattery:> LINEAR LIMITATION ENABLE: True
2023-06-24 13:12:10.599671500 INFO:SerialBattery:> MAX BATTERY CHARGE CURRENT: 50.0A | MAX BATTERY DISCHARGE CURRENT: 60.0A
2023-06-24 13:12:10.600123500 INFO:SerialBattery:> CVCM:     True
2023-06-24 13:12:10.600591500 INFO:SerialBattery:> MIN CELL VOLTAGE: 2.9V | MAX CELL VOLTAGE: 3.45V
2023-06-24 13:12:10.601259500 INFO:SerialBattery:> CCCM CV:  True  | DCCM CV:  True
2023-06-24 13:12:10.601963500 INFO:SerialBattery:> CCCM T:   True  | DCCM T:   True
2023-06-24 13:12:10.602615500 INFO:SerialBattery:> CCCM SOC: True  | DCCM SOC: True
2023-06-24 13:12:10.603380500 INFO:SerialBattery:Serial Number/Unique Identifier: 40_280.0Ah
2023-06-24 13:12:10.638669500 INFO:SerialBattery:DeviceInstance = 1
2023-06-24 13:12:10.639142500 INFO:SerialBattery:com.victronenergy.battery.ttyACM0
2023-06-24 13:12:10.905593500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:10.911115500 ERROR:SerialBattery:ERROR >>> Problem with battery set up at /dev/ttyACM0
2023-06-24 13:12:10.911349500 #0
2023-06-24 13:12:10.911352500 #1
2023-06-24 13:12:10.911354500 #2
2023-06-24 13:12:10.911356500 #3
2023-06-24 13:12:10.911358500 #4
2023-06-24 13:12:10.911360500 #5
2023-06-24 13:12:10.911362500 #6
2023-06-24 13:12:10.911363500 #7
2023-06-24 13:12:10.911365500 #8
2023-06-24 13:12:10.911367500 #9
2023-06-24 13:12:10.911369500 #10
2023-06-24 13:12:10.911371500 #11
2023-06-24 13:12:10.911373500 #12
2023-06-24 13:12:10.911375500 #13
2023-06-24 13:12:10.911376500 #14
2023-06-24 13:12:10.911378500 #15
2023-06-24 13:12:25.597424500 INFO:SerialBattery:
2023-06-24 13:12:25.597881500 INFO:SerialBattery:Starting dbus-serialbattery
2023-06-24 13:12:25.598558500 INFO:SerialBattery:dbus-serialbattery v1.0.20230620dev
2023-06-24 13:12:25.598965500 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
2023-06-24 13:12:25.599352500 INFO:SerialBattery:Testing Daly at address "\x40"
2023-06-24 13:12:25.733312500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:25.733792500 INFO:SerialBattery:Testing Daly at address "\x80"
2023-06-24 13:12:25.862641500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:25.863165500 INFO:SerialBattery:Testing Ecs
2023-06-24 13:12:25.924382500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:25.924818500 INFO:SerialBattery:Testing HeltecModbus
2023-06-24 13:12:29.632378500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:29.632902500 INFO:SerialBattery:Testing HLPdataBMS4S
2023-06-24 13:12:30.445439500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:30.445444500 INFO:SerialBattery:Testing Jkbms
2023-06-24 13:12:30.724745500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:30.729966500 INFO:SerialBattery:Testing Lifepower
2023-06-24 13:12:30.997800500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:12:31.003386500 INFO:SerialBattery:Testing LltJbd
2023-06-24 13:12:31.730649500 INFO:SerialBattery:Connection established to LltJbd
2023-06-24 13:12:31.730943500 INFO:SerialBattery:Battery LLT/JBD connected to dbus from /dev/ttyACM0
2023-06-24 13:12:31.731198500 INFO:SerialBattery:========== Settings ==========
2023-06-24 13:12:31.731497500 INFO:SerialBattery:> Connection voltage: 53.39V | Current: 0.0A | SoC: 85.79%
2023-06-24 13:12:31.731755500 INFO:SerialBattery:> Cell count: 16 | Cells populated: 16
2023-06-24 13:12:31.732026500 INFO:SerialBattery:> LINEAR LIMITATION ENABLE: True
2023-06-24 13:12:31.732304500 INFO:SerialBattery:> MAX BATTERY CHARGE CURRENT: 50.0A | MAX BATTERY DISCHARGE CURRENT: 60.0A
2023-06-24 13:12:31.732583500 INFO:SerialBattery:> MAX BATTERY CHARGE CURRENT: 140.0A | MAX BATTERY DISCHARGE CURRENT: 140.0A (read from BMS)
2023-06-24 13:12:31.732917500 INFO:SerialBattery:> CVCM:     True
2023-06-24 13:12:31.733204500 INFO:SerialBattery:> MIN CELL VOLTAGE: 2.9V | MAX CELL VOLTAGE: 3.45V
2023-06-24 13:12:31.733471500 INFO:SerialBattery:> CCCM CV:  True  | DCCM CV:  True
2023-06-24 13:12:31.733736500 INFO:SerialBattery:> CCCM T:   True  | DCCM T:   True
2023-06-24 13:12:31.734001500 INFO:SerialBattery:> CCCM SOC: True  | DCCM SOC: True
2023-06-24 13:12:31.734314500 INFO:SerialBattery:Serial Number/Unique Identifier: 40_280.0Ah
2023-06-24 13:12:31.760707500 INFO:SerialBattery:DeviceInstance = 1
2023-06-24 13:12:31.761002500 INFO:SerialBattery:com.victronenergy.battery.ttyACM0
2023-06-24 13:12:32.148783500 INFO:SerialBattery:publish config values = 1
2023-06-24 13:12:34.430797500 ERROR:SerialBattery:>>> ERROR: No reply - returning

----------------------------------------------------------------

$ rm /data/var/lib/serial-starter/*
$ reboot
$ tail -F -n 100 /data/log/dbus-serialbattery.ttyACM0/current | tai64nlocal 

2023-06-24 13:13:48.555166500 *** CCGX booted (0) ***
2023-06-24 13:14:35.485463500 INFO:SerialBattery:
2023-06-24 13:14:35.485696500 INFO:SerialBattery:Starting dbus-serialbattery
2023-06-24 13:14:35.486392500 INFO:SerialBattery:dbus-serialbattery v1.0.20230620dev
2023-06-24 13:14:35.486688500 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
2023-06-24 13:14:35.486979500 INFO:SerialBattery:Testing Daly at address "\x40"
2023-06-24 13:14:35.618233500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:14:35.618607500 INFO:SerialBattery:Testing Daly at address "\x80"
2023-06-24 13:14:35.762164500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:14:35.762169500 INFO:SerialBattery:Testing Ecs
2023-06-24 13:14:35.823123500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:14:35.823128500 INFO:SerialBattery:Testing HeltecModbus
2023-06-24 13:14:39.528530500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:14:39.528846500 INFO:SerialBattery:Testing HLPdataBMS4S
2023-06-24 13:14:40.340614500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:14:40.340906500 INFO:SerialBattery:Testing Jkbms
2023-06-24 13:14:40.610715500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:14:40.616152500 INFO:SerialBattery:Testing Lifepower
2023-06-24 13:14:40.894950500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:14:40.900142500 INFO:SerialBattery:Testing LltJbd
2023-06-24 13:14:41.621880500 INFO:SerialBattery:Connection established to LltJbd
2023-06-24 13:14:41.622186500 INFO:SerialBattery:Battery LLT/JBD connected to dbus from /dev/ttyACM0
2023-06-24 13:14:41.622450500 INFO:SerialBattery:========== Settings ==========
2023-06-24 13:14:41.622756500 INFO:SerialBattery:> Connection voltage: 52.62V | Current: -35.33A | SoC: 85.46%
2023-06-24 13:14:41.623022500 INFO:SerialBattery:> Cell count: 16 | Cells populated: 16
2023-06-24 13:14:41.623296500 INFO:SerialBattery:> LINEAR LIMITATION ENABLE: True
2023-06-24 13:14:41.623582500 INFO:SerialBattery:> MAX BATTERY CHARGE CURRENT: 50.0A | MAX BATTERY DISCHARGE CURRENT: 60.0A
2023-06-24 13:14:41.623860500 INFO:SerialBattery:> MAX BATTERY CHARGE CURRENT: 140.0A | MAX BATTERY DISCHARGE CURRENT: 140.0A (read from BMS)
2023-06-24 13:14:41.624117500 INFO:SerialBattery:> CVCM:     True
2023-06-24 13:14:41.624396500 INFO:SerialBattery:> MIN CELL VOLTAGE: 2.9V | MAX CELL VOLTAGE: 3.45V
2023-06-24 13:14:41.624662500 INFO:SerialBattery:> CCCM CV:  True  | DCCM CV:  True
2023-06-24 13:14:41.625361500 INFO:SerialBattery:> CCCM T:   True  | DCCM T:   True
2023-06-24 13:14:41.625657500 INFO:SerialBattery:> CCCM SOC: True  | DCCM SOC: True
2023-06-24 13:14:41.625982500 INFO:SerialBattery:Serial Number/Unique Identifier: 40_280.0Ah
2023-06-24 13:14:41.665663500 INFO:SerialBattery:DeviceInstance = 1
2023-06-24 13:14:41.666022500 INFO:SerialBattery:com.victronenergy.battery.ttyACM0
2023-06-24 13:14:42.049969500 INFO:SerialBattery:publish config values = 1
2023-06-24 13:14:51.346850500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:14:52.345942500 ERROR:SerialBattery:>>> ERROR: No reply - returning
2023-06-24 13:14:53.347333500 ERROR:SerialBattery:>>> ERROR: No reply - returning

@mr-manuel
Copy link
Collaborator

Did you troubleshoot like described in the docs? Did you check the FAQ? Please describe your setup and post pictures of the cabling.

@Project51At
Copy link
Author

After a lot of investigations, I was able to identify the BMS as the issue itself.
After the exchange, the latest DEV branch runs without any errors.

The problem already existed in v0.14.3., but I never noticed it.
The error 'ERROR: No reply - returning' was published each second after some minutes, but did not affect the GUI (the error was not visible).
The new version seems to be more sensitive to connection errors.

Thx for supporting

@mr-manuel
Copy link
Collaborator

Hi, the new version has a better error log therefore you now probably see already existing errors that you did not saw before.

@Taranis-Energy
Copy link

I realize this is close but. I am able to replicate this exactly using the Jiabaida SP16S020 bms. I used 3 different ones so its not a defective BMS.
Any idea why its ttyACM instead of ttyUSB? Could this be the RS485 to USB converter?

@mr-manuel mr-manuel reopened this Aug 1, 2023
@mr-manuel mr-manuel reopened this Aug 1, 2023
@Project51At
Copy link
Author

Could this be the RS485 to USB converter?

I tried different USB converters from different vendors, the issue still occurred.

@Marvo2011
Copy link
Contributor

I think I have the same trouble with JBD BMS over Bluetooth randomly it disconnects.

@mr-manuel mr-manuel changed the title JBD BMS - unstable communication LLT/JBD - JBD BMS - unstable communication Sep 4, 2023
@mr-manuel
Copy link
Collaborator

mr-manuel commented Sep 4, 2023

Probably connected issues:
#769
#777

Possible relevant info #769 (comment):

I also have the same issue (identical logs) on all four of my LltJbd BMS with the latest in dev branch (#763) from July 27. However, using the latest tagged release (#757) from July 23 works fine.

@mr-manuel
Copy link
Collaborator

@Taranis-Energy @Project51At @Marvo2011 could you please provide fresh logs? If you don't see the Starting dbus-serialbattery line in your logs, please reboot the Venus OS device or reinstall the driver once.

@mr-manuel
Copy link
Collaborator

Please try to install the nightly from the dev branch. I just pushed some changes.

mr-manuel added a commit to mr-manuel/venus-os_dbus-serialbattery that referenced this issue Sep 5, 2023
@Project51At
Copy link
Author

Today I installed the latest nightly from the dev branch, but no connection to the jbd bms could be established.

root@raspberrypi4:~# tail -F -n 100 /data/log/dbus-serialbattery.ttyACM0/current | tai64nlocal
2023-09-09 12:56:10.521740500 #6
2023-09-09 12:56:10.521742500 #7
2023-09-09 12:56:10.521744500 #8
2023-09-09 12:56:10.521746500 #9
2023-09-09 12:56:10.521748500 #10
2023-09-09 12:56:10.521750500 #11
2023-09-09 12:56:10.521752500 #12
2023-09-09 12:56:10.521754500 #13
2023-09-09 12:56:10.521755500 #14
2023-09-09 12:56:10.521757500 #15
2023-09-09 12:56:10.521759500 #0
2023-09-09 12:56:10.521761500 #1
2023-09-09 12:56:10.521788500 #2
2023-09-09 12:56:10.521790500 #3
2023-09-09 12:56:10.521792500 #4
2023-09-09 12:56:10.521794500 #5
2023-09-09 12:56:10.521796500 #6
2023-09-09 12:56:10.521798500 #7
2023-09-09 12:56:10.521800500 #8
2023-09-09 12:56:10.521801500 #9
2023-09-09 12:56:10.521803500 #10
2023-09-09 12:56:10.521805500 #11
2023-09-09 12:56:10.521807500 #12
2023-09-09 12:56:10.521809500 #13
2023-09-09 12:56:10.521811500 #14
2023-09-09 12:56:10.521813500 #15
2023-09-09 12:56:10.521814500 #0
2023-09-09 12:56:10.521816500 #1
2023-09-09 12:56:10.521818500 #2
2023-09-09 12:56:10.521843500 #3
2023-09-09 12:56:10.521846500 #4
2023-09-09 12:56:10.521847500 #5
2023-09-09 12:56:10.521849500 #6
2023-09-09 12:56:10.521851500 #7
2023-09-09 12:56:10.521853500 #8
2023-09-09 12:56:10.521855500 #9
2023-09-09 12:56:10.521857500 #10
2023-09-09 12:56:10.521858500 #11
2023-09-09 12:56:10.521860500 #12
2023-09-09 12:56:10.521862500 #13
2023-09-09 12:56:10.521864500 #14
2023-09-09 12:56:10.521866500 #15
2023-09-09 12:56:25.818725500 INFO:SerialBattery:
2023-09-09 12:56:25.819241500 INFO:SerialBattery:Starting dbus-serialbattery
2023-09-09 12:56:25.825587500 INFO:SerialBattery:dbus-serialbattery v1.0.20230905dev
2023-09-09 12:56:25.825592500 INFO:SerialBattery:-- Testing BMS: 1 of 3 rounds
2023-09-09 12:56:25.825595500 INFO:SerialBattery:Testing LltJbd
2023-09-09 12:56:27.209444500 INFO:SerialBattery:-- Testing BMS: 2 of 3 rounds
2023-09-09 12:56:27.209881500 INFO:SerialBattery:Testing LltJbd
2023-09-09 12:56:28.596300500 INFO:SerialBattery:-- Testing BMS: 3 of 3 rounds
2023-09-09 12:56:28.596843500 INFO:SerialBattery:Testing LltJbd
2023-09-09 12:56:29.995606500 ERROR:SerialBattery:ERROR >>> No battery connection at /dev/ttyACM0
2023-09-09 12:56:29.995711500 #0
2023-09-09 12:56:29.995714500 #1
2023-09-09 12:56:29.995716500 #2
2023-09-09 12:56:29.995719500 #3
2023-09-09 12:56:29.995721500 #4
2023-09-09 12:56:29.995722500 #5
2023-09-09 12:56:29.995724500 #6
2023-09-09 12:56:29.995726500 #7
2023-09-09 12:56:29.995728500 #8
2023-09-09 12:56:29.995730500 #9
2023-09-09 12:56:29.995731500 #10
2023-09-09 12:56:29.995733500 #11
2023-09-09 12:56:29.995735500 #12
2023-09-09 12:56:29.995737500 #13
2023-09-09 12:56:29.995739500 #14
2023-09-09 12:56:29.995741500 #15
2023-09-09 12:56:29.995743500 #0
2023-09-09 12:56:29.995745500 #1
2023-09-09 12:56:29.995772500 #2
2023-09-09 12:56:29.995774500 #3
2023-09-09 12:56:29.995776500 #4
2023-09-09 12:56:29.995778500 #5
2023-09-09 12:56:29.995780500 #6
2023-09-09 12:56:29.995781500 #7
2023-09-09 12:56:29.995783500 #8
2023-09-09 12:56:29.995785500 #9
2023-09-09 12:56:29.995787500 #10
2023-09-09 12:56:29.995789500 #11
2023-09-09 12:56:29.995791500 #12
2023-09-09 12:56:29.995792500 #13
2023-09-09 12:56:29.995794500 #14
2023-09-09 12:56:29.995796500 #15
2023-09-09 12:56:29.995798500 #0
2023-09-09 12:56:29.995800500 #1
2023-09-09 12:56:29.995802500 #2
2023-09-09 12:56:29.995827500 #3
2023-09-09 12:56:29.995830500 #4
2023-09-09 12:56:29.995831500 #5
2023-09-09 12:56:29.995833500 #6
2023-09-09 12:56:29.995835500 #7
2023-09-09 12:56:29.995837500 #8
2023-09-09 12:56:29.995839500 #9
2023-09-09 12:56:29.995840500 #10
2023-09-09 12:56:29.995842500 #11
2023-09-09 12:56:29.995844500 #12
2023-09-09 12:56:29.995846500 #13
2023-09-09 12:56:29.995848500 #14
2023-09-09 12:56:29.995850500 #15

@mr-manuel
Copy link
Collaborator

@idstein could you open a PR to troubleshoot this better?

@mr-manuel
Copy link
Collaborator

@Project51At could you please try with the latest nightly of the dev branch? I just merged another fix for LLT/JBD BMS.

@mr-manuel mr-manuel added the question Further information is requested label Sep 26, 2023
@Project51At
Copy link
Author

@mr-manuel
I updated to the recommended version and it is working. I will further monitor the behaviour

@mr-manuel
Copy link
Collaborator

Have you an update?

@Project51At
Copy link
Author

I did not notice any issues. So far, so good

Louisvdw pushed a commit that referenced this issue Nov 25, 2023
* Update reinstall-local.sh: Fixed charge current parameter

Update reinstall-local.sh: Corrected charge current parameter for  initial config.ini

* Exclude devices from driver startup
This prevents blocking the serial port

* implement callback function for update

* fix comments to reflect new logic

* update changelog

* set soc=100% when charge mode changes to float, apply exponential smoothing on current readout

* remove scan for devices

the scan for devices and check if the BMS to test is present doesn't add value
if the device is not within range (or the MAC is wrong), then the subsequent start_scraping call will either fail or fail to produce usable data

* JKBMS_BLE driver fixes

* added Bluetooth signal strenght, increased debug

* Optimized reinstallation procedure
- Changed: Optimized restart sequence for the bluetooth installation
- Changed: Run serial part first and then bluetooth part. This allows the serial driver to get operative faster
- Removed: $DRIVERNAME variable for clearer paths
- Removed: Bluetooth system driver restart, since the devices get disconnected by the service before starting the dbus-serialbatterydriver

* Improved Jkbms_Ble error handling

* optimized disable procedure

* small fixes

* save custom name and make it restart persistant
#100

* changed unique identifier from string to function
function can be overridden by BMS battery class

* fix typo

* 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

* 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

---------

Co-authored-by: Holger Schultheiß <hoschult@web.de>
Co-authored-by: Stefan Seidel <lkml@stefanseidel.info>
Co-authored-by: Bernd Stahlbock <6627385+transistorgit@users.noreply.github.com>
Co-authored-by: seidler2547 <github@stefanseidel.info>
Co-authored-by: ogurevich <50322596+ogurevich@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>
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
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants