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

JKBD6A20S10P Software version 11.42, hardware V11.XW UART-TTL not working #477

Closed
paulsteigel opened this issue Mar 14, 2024 · 6 comments
Closed

Comments

@paulsteigel
Copy link

paulsteigel commented Mar 14, 2024

Hi All
I tested the esp32-example.yaml file with esp32S2 mini Lolin, esp32wroom devkit and JKBD6A20S10P with software version latter than 11.36 (I tested on 2 different JKs, one with Software version 11.36 and 11.42) Esp32 can not read data from the BMS, it return nan for all sensor.
It might be problem new data protocol! The log captured as below!

VV][jk_modbus:024]: Buffer cleared due to timeout: 
[17:09:08][VV][scheduler:226]: Running interval 'update' with interval=100 last_execution=14939 (now=15043)
log from UART as following:
[09:15:44][VV][jk_modbus:024]: Buffer cleared due to timeout: 
[09:15:44][VV][jk_modbus:024]: Buffer cleared due to timeout: 
[09:15:44][D][uart_debug:114]: >>> 4E:57:00:13:00:00:00:00:06:02:00:00:00:00:00:00:68:00:00:01:28
[09:15:44][VV][jk_modbus:024]: Buffer cleared due to timeout: 
[09:15:45][VV][jk_modbus:024]: Buffer cleared due to timeout: 

Can any one be so kind to advise me with thanks
Best

@paulsteigel paulsteigel changed the title Can not read data via UART TTL with JKBD6A20S10P Software version 11.42, hardware V11.XW JKBD6A20S10P Software version 11.42, hardware V11.XW not working Mar 15, 2024
@paulsteigel paulsteigel changed the title JKBD6A20S10P Software version 11.42, hardware V11.XW not working JKBD6A20S10P Software version 11.42, hardware V11.XW UART-TTL not working Mar 15, 2024
@marcjeno1
Copy link

marcjeno1 commented Apr 20, 2024

Hello,

I have the exact same problem. My harware info page says: Hardware Ver: V11.XA and Software Ver: V11.41.

The logging reports only [D][uart_debug:114]: >>> 4E:57:00:13:00:00:00:00:06:02:00:00:00:00:00:00:68:00:00:01:28 over and over.

Now I tried connecting directly to my pc via USB to TTL and noticed 2 settings that I needed to change on my BMS. Otherwise it wouldnt get any data from the BMS via USB. I also needed to change the device addr in the settings set to 1.

WhatsApp Image 2024-04-20 at 23 50 04
WhatsApp Image 2024-04-20 at 23 50 05

Now with this setting changed to modbus V1.0 I can get data from bms with USB to ttl and see live data on the JK bms monitor software. When I googled this protocol this document showed up: http://www.jk-bms.com/Upload/2023-11-28/1450064500.pdf

Maybe that is helpful?

@paulsteigel
Copy link
Author

paulsteigel commented Apr 21, 2024

Hi @marcjeno1
Many thanks for sharing, the problem above only happened with 11.XW version 11.36 and 11.42 (as far as I knew with my existing devices). The 11.XA are well connected, no problem at all. With some check I discovered that 11.42 (XW) can still be readable with esp8266 promini D1 using hardware serial port (GPIO1, GPIO3) so I doubt using GPIO9/10 on my Esp32S2 lolin should be problem. I will try testing when I have the new BMS of those version at hand.
Best

@marcjeno1
Copy link

I am trying to connect it to a esp8266 with no luck. Tried 2 different boards and just doesnt seem to get any data from the BMS. The only thing that works is the usb to ttl to my pc with the JK BMS 485 modbus v1. Bluetooth on my mobile works also fine.

Any tips on how to maybe read out the bms with esphome jk bms?

@paulsteigel
Copy link
Author

paulsteigel commented Apr 22, 2024

Hi @marjeno1,
The esp8266 promini d1 (12F in fact) connects to BMS via pin 1 and 3 with a pull up on pin 1 to avoid failed booting. The query command is still the same as what we knew.
Please try using Arduino ide first for parsing the command via uart to check on how it work then! Be minded with baud rate and parity setting for 8266
The command is still:
0x4E 0x57 0x0 0x13 0x0 0x0 0x0 0x0 0x6 0x3 0x0 0x0 0x0 0x0 0x0 0x0 0x68 0x0 0x0 0x1 0x29

@braincore
Copy link

Does anyone know if V10 had the "UART1 Protocol No." and "Device Addr" options?

@Sleeper85
Copy link

@marcjeno1

We would say photos of the new JK-BMS inverter PB series. It is not possible to select the UART or CAN portocole on older JK-BMS.

What is your BMS model?

@syssi syssi closed this as completed Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants