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

Venus OS on Cerbo Gx showing JBD BMS as connected when disconnected #64

Closed
leviathanprojects opened this issue Oct 22, 2021 · 13 comments
Closed
Labels
bug Something isn't working

Comments

@leviathanprojects
Copy link

leviathanprojects commented Oct 22, 2021

When a JBD BMS connected via USB UART is disconnected physically (Turned off or UART plug pulled), it still shows as connected in Venus OS and battery values still persist.

Steps to reproduce the behavior:

  1. Connect JBD BMS via USB UART
  2. Unplug UART cable
  3. BMS still shows as connected in Venus

Expected behavior
Battery to show as disconnected and values to no longer be displayed (e.g current, SOC, cell voltage etc)

  • Device type: Cerbo GX

  • Firmware Version: v2.80~21-large-23

  • BMS/Battery type: JBD

  • Cells: 8

  • Interface: JBD tools USB - UART (connected to serial port that was previously used for bluetooth)

@Louisvdw
Copy link
Owner

This is related to the issue to show if a module is online/offline #17
I was planning to clean that up a bit

@leviathanprojects
Copy link
Author

Ah awesome. I wasnt sure if #17 was the same behaviour. Feel free to close.

Not a massive deal, but I'm wanting to use the SOC and temp readings to control a heater / solar dump / disable charging inputs via Cerbo relays. I was worried that if BMS disconnected but Cerbo still had old readings I could end up in a situation where undesirable things happened!

@smejfi
Copy link

smejfi commented Feb 24, 2022

Hello, I still have the same problem with the same bms and connection type, even in the current release, could you please take a look at it (donation promissed :-D)? The same behavior occurs when using Daly bms with RS485. Also Im sometimes experiencing faulty behavior with this setup (UART connection, 200A JBD BMS https://www.aliexpress.com/item/1005003166554472.html?spm=a2g0o.store_pc_groupList.8148356.7.28db56b8yRW54l) when Im using it in ESS system, Usually it works well, but sometimes the battery monitor just disappears for a while and Venus claims that ESS system wasnt found at all, then it appears again. Sometimes the battery monitor just looses connection and ESS is still present, but with no information about the battery. Sometimes the power reading from the battery gives zero for a fraction of second and then the real value appears again and it oscilates for a while this way. Im not able to exactly define how to reproduce this, usually it happens when some major power direction changes occur at the battery, for example when I set scheduled charging or when current close to the limit one is drawn from the battery...it also sometimes happens when the SOC is very close to 100% which sometimes causes that Venus doesnt get limit cell voltage on time but still continues charging and then BMS relaz is forced to shut the batterz of due to the single cell overvoltage. Do you have any idea what might be causing this comunication problems? Im willing to provide the log files from the driver if it helps...because I feel those are just minor issues and when those are solved, this driver you made is just wonderful! Thank you for all your work...

@Louisvdw
Copy link
Owner

@smejfi Please do attach the log files for the BMS. It should tell us what was going on when the problem happens.

@Louisvdw Louisvdw added the bug Something isn't working label Feb 24, 2022
@smejfi
Copy link

smejfi commented Feb 26, 2022

For now, Im attaching video of remote console where the faulty behavior is captured (http://www.uschovna.cz/zasilka/VOMYWDSHE8BNHYX6-AKE), I will attach the log file as soon as possible.

@smejfi
Copy link

smejfi commented Feb 27, 2022

dbus-serialbattery.ttyUSB1_current.txt
serial-starter_current.txt

Here are the log files...these are capturing the bug where the battery monitor disappears, but ESS screen stays (unlike in the video where the ess dissapears as well)...I restarted Venus since then so I will have to wait until the bug appears again

@Louisvdw
Copy link
Owner

Please test if this is still an issue in release v0.12

@smejfi
Copy link

smejfi commented Jun 16, 2022 via email

@seamaster101
Copy link

The issue still exists. I tried with JK-BMS and when serial cable is disconnected the battery parameters on Venus RPI remain the same. they do not disappear even after 10 min of no connection. i have some videos off the problem. let me know if you would like me to upload them

@Dr-Gigavolt
Copy link

Hi Louis, I observed the same issue with V0.14 and JK BMS. The driver should know when the BMS is not responsible. Worst case: BMS software fails, the system sees the last read values (battery empty) and charges and charges ...

@SteffenGraap
Copy link

Hello Louis,
I have the same problem. JBD-BMS with isolated RS232 adapter to RaspberryPi with venus OS 2.92. After disconnecting the serial connection (RS232 adapter remains connected via USB), the last read data is displayed. After 3 hours I stopped the test because there was no change.
After restarting the RaspberryPi, the BMS is not displayed until the connection is restored.

@entropia1ac
Copy link

I have the same problem. Daly -BMS with RS232 adapter to Cerbo GXwith venus OS 2.92. After disconnecting the serial connection (connected via USB), the last read data is displayed ( V0.14.1 ). After restarting Cerbo is OK,Daly -BMS is not displayed.

@mr-manuel
Copy link
Collaborator

This is fixed in the next version.

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

No branches or pull requests

8 participants