-
-
Notifications
You must be signed in to change notification settings - Fork 36
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-SP04S020A-L4S-80A-B-U Invalid Header #14
Comments
Could you enable the debug output of the
and provide a log including multiple "Invalid header" warnings? |
Got this on the logs ( I cleaned up logs that might not be useful):
|
Could you try to increase the |
Invalid Headers occur less but still the Balancing, Charging and Discharging switches are still not working. Not sure if this is because of the password is it applicable for BMS that has this Date of manufacture: 2021.12.18 ? |
Are we talking about the binary sensors or switches? |
I increased timeout to 500ms. Looks fine now for the invalid header issue. Thanks for the tip man! its the switches. I can see the commands being sent on the logs but its not taking effect. Also is it possible to change other settings for the BMS in home assistant? |
Switches aren't supported yet / they are untested: https://github.com/syssi/esphome-jbd-bms/blob/main/components/jbd_bms/switch/jbd_switch.cpp#L12 |
No other controls are implemented yet. |
Ok thanks for this if I got a chance to explore this maybe I'll just raise a PR but still need to learn the registers and how it communicates to the BMS. Thank you for the great work! |
You could use this implementation / skeleton for some guidance to implement additional entities (number, button, etc.): https://github.com/syssi/esphome-jk-bms/tree/main/components/jk_bms_ble I recommend to extract the commands/registers from a btsnoop capture to be sure to not pass garbage to the BMS. |
Hi Invalid Headers occured again today and became more frequent, is there something i should do like resetting the bms or something?
|
Another user did report in the past the serial interface of the BMS is unstable in case of charging the battery. |
oh ok so this is a known issue. Perhaps in the BMS itself? |
Yes. If you have a logic analyzer you could try to record the traffic while charging & discharging. I assume you will see gaps/some silence between the bytes of a frame depending on the "load". |
Let's close this issue because its a hardware issue probably and cannot be solved here. |
Hi I have successfully integrated this on my JBD 4s 80A BMS however I am getting invalid header errors. Any idea how to fix this? Also it seems that the binary sensors (Balancing, Discharging and Charging) is not working?? Please see the sample logs I am having:
The text was updated successfully, but these errors were encountered: