-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
Add Modbus support of the new range of JK BMS called JK-PB #409
Conversation
be6c353
to
874b01c
Compare
See #464 |
Is there a wiring diagram I could use to test with? |
|
Thanks for the hard work adding this support! :) I have the JK-PB2A16S20P Is this the config I should use if I only have one JK-PB BMS? I see #464 for multiple I don't see a |
Well, I have not tested that kind of UART to RS485 converters. Anyway,
The "talk_pin" is used to ask for "board info" (frame type 3rd) to slaves acting as pseudo master. It has been impossible for me get that information from master (because it has 0x00 address and you cannot ask to that address in RS485 network from "another" master) If you set the BMS with another address and you connect TX pin as well, in theory, the ESP should act as MASTER because in listening mode (the first mode that uses) it does not detect any master in the network. This way, ESP gets all the info (frame types: 1, 2 and 3) from that slave. Of course, I do not know what happens in the communication upstream (using CAN bus towards inverter...) You can test it Good Luck!!! |
I just test it esp-jk-bms.yaml (for BxAXXSXXP bms) and is working on JKPB serries, connected on RS485port for inverter and select UART1 for 4G-GPS protocol (000) @andersonray i use that board. |
@meccip Thanks for that info! I will definitely try that out. I did get the new battery bus listener config to work, but it does miss a few minor values. My inverter uses CAN, so the 485 inverter port is a good option. |
i have 2 JKPB, master and slave. On master(all dipswitch to 0) is working jk-bms.yaml (UART1protocol GPS 000) and jk-modbus (UART1protocol jkmodbus 001), but on slave is working only jk-bms.yaml (UART1protocol GPS 000). If i use jkmodbus protocol is having conflicts with RS485-1 network and bms loose connection as slave. On CAN i use comm with Deye inverter. |
See #390