-
-
Notifications
You must be signed in to change notification settings - Fork 167
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
JK BMS B2A20S20P Heat CAN/RS485 problem with connection #309
Comments
Please check the controls tab of the Android app.Do you see here a switch to choose between CAN and RS485? |
Where did you buy the BMS? |
Hankzor Esp8266 works after loading a file directly from the computer, it connects to wi-fi. |
Good question. In general your setup should work:
Could you enable the
I would like to know there is no response at all or noise. |
That's not good! How do you power the ESP? |
By usb type c connect 5V |
Do you mean a USB power plug? I would like to make sure you don't power the ESP using the battery + buck converter. |
Yes with usb plug, i know in other case i must power with 3,3V |
Ok, when i come back from work i try it 👍🏼 |
logs_jk-battery-01-info_logs_without_connect_bms.txt When Esp is connect with bms by wire i cant install . logs_jk-battery-01-info_run.txt I have to disconnect the cable to do anything and very often i have after re-conect to bms something it: |
Your wiring looks good but the labels of your BMS are confusing. My left port is labeled as "CAN". The right port is labeled as GPS/RS485. May be the hardware layout has changed?! |
Rather not, the CAN/RS485 port on the left is a secondary port. I think it's most likely, however, that the default port is broken, so probably nothing will be done here, and I don't have the money to buy another bms, so thanks anyway for showing interest.... from HANZKOR I also received this document - maybe it will be useful to you, for me it is dark magic |
I know the protocol description. It's the implemented protocol for the UART-TTL connection. |
Could you do some measurements? I would like a complete documentation of your issue here.
|
Take measurements resistance on the device on or off? |
On. |
the voltage when BMS was turn on the resistance when BMS was turn off |
It is also the GPS port for my bms. |
I order new BMS and we wil know all 😉 |
Hi, i have a JK-BD6A20S10P. This works fine with the Bluetooth module. I know wanted to connect it through RS485 also. I got stuck at the same Point. Connecting it to the "GPS" Port with the jst Connector but no Communication. Mine looks the same as the above picture shows, but i don't have the settings in the APP (CAN/RS485). When i connect everything my ESP still produces LOG files, so i guess it doesn't hang up like yours. I will try some more things, including Voltage and resistance Measurements, but any idea is welcomed! Waiting for your test's with your newly orderd BMS. kind Regards |
@maxsarges Please provide the software and hardware version of your BMS too. I guess the CAN/RS485 switch is available since firmware version 11. |
OK, I bought and instal JK-B1a20s15p, and i have now this error on the end
my ESP code:
|
Please enable the debug output of the |
|
It looks like your new BMS doesn't respond too. The received |
Good job! And happy birthday(?) ;-) |
Thank you, but birthday of starting device - yes? My english is very weak so sorry 😊 |
Your screenshot contains a birthday cake at the top. I guessed it's your birthday today. ;-) |
Ha, ha , ha ok, now I understand - no, thats only reminder - my friend has a birthday :) |
@syssi, why shouldn’t a buck converter and battery power be used? asking this honestly after I grilled two esp32 and a buck converter 🫣. |
@JakobTewes I cannot provide a good answer. I'm a software developer with limited skills in electrical circuits. I'm just aware of users who release magic smoke (destroyed the serial port of the BMS, ESP or buck converter). |
Most buck convertes forward full input voltage to output if they fail, so there is that danger already. So maybe you can avoid this dangers with a big capacitor after the buck converter + zener diodes which limit max voltage in addition. They need to be stronger than the converter, so they don't break if the converter fails. 😁 |
Hi all, Hello Torsten,I had talked with factory and our purchase manager again.They said for these two version,they are just different software, the function is the same.As for the two functions you mentioned, the software just reserves them, but they cannot be used. If you need to use it, we need to buy another version from the factory. So it seems to be the case, that there are no new HW components yet, only the SW is updated. |
I have the version with CAN switch to RS485 and I can confirm that it will activate the modebus protocol (as somehow I managed to damage the gps circuit) also I can read some holding registers using an usb adapter, but not all the values are present or I don't know how to read them (only 0-29 works), I'm waiting for a rs485 to ttl adapter to see if I can use it on esp |
@lucize Could you provide the pinout of the CAN/RS485 port and a request + response example? |
sorry, I'm not good with modebus, for the moment I have this: can/rs485 | gps the temp is negative for my faulty board edit: |
I've tried it yesterday many times with different settings, boards and UART's. But so far no success. Maybe the Board is faulty, but i don't think so. Maybe it has something to do with GND. Both signals refer to GND of the BMS. I have for sure connected TX / RX and GND to my ESP32. But maybe the ESP boards differ a little bit. So far this is the only guess i have, but until know i have no solution for that. Does anybody has another idea what i can do? Kind regards Max |
@maxsarges Could you create a new issue an describe your setup + provide some photos of the wiring? These details are important:
|
Here you go @syssi , mine not working at all too: BMS model - JK_B2A24S15P Tried also with MAX232 UART-TTL Code used: Log(modbus errors on the end) |
What does this mean? Did you attach the MAX232 to the RS232 port of your computer? I hope you haven't pushed -12/+12V into the UART-TTL port.
@vjlb Could you verify the other software monitor via the serial converter is still working? It's super interesting one software works and the other / this project isn't working. |
@vjlb Could you change your YAML to this feature branch + flash the ESP and provide another log? I would like to know some more details about the invalid header warnings:
|
Not to PC mate, connected like this: I use same connection on this software to monitor my inverter over MQTT:
That's the one i used before to monitor BMS over USB to Serial, but i prefer the ESP solution over the Raspberry PI: Will test the branch you suggested |
Is this my bad? INFO ESPHome 2023.5.5
|
I've pushed a probably missing include. Please try again! |
Please don't use a MAX232 with a JK-BMS! The high logic level could destroy the opto-couplers / UART-TTL port of the BMS. |
Noted! |
Looks like sometimes i now get some tiny data, but i lowered the cable lenght |
This is my code & connect to HA through ESP32 via Bluetooth `substitutions: Defaults to "JK02" (hardware version >= 6.0 and < 11.0)Please use "JK02_32S" if you own a new JK-BMS >= hardware version 11.0 (f.e. JK-B2A8S20P hw 11.XW, sw 11.26)Please use "JK04" if you have some old JK-BMS <= hardware version 3.0 (f.e. JK-B2A16S hw 3.0, sw. 3.3.0)protocol_version: JK02_32S esphome: esp32: external_components:
wifi: ota: logger: If you don't use Home Assistant please remove this
|
merci je galère depuis 3 jours et j'étais dans le même cas et en Bluetooth ca fonctionne |
Can you assist me i have the same issue |
Hi from romania. code for esp32 wemos that is working you can give to me? Thanks. |
Hello, I uploaded the following code for ESP8266 D1 mini and unfortunately nothing works - what am I doing wrong?
The text was updated successfully, but these errors were encountered: