ArminJo / JK-BMSToPylontechCAN

Converts the JK-BMS RS485 data to Pylontech CAN data
GNU General Public License v3.0
64 stars 10 forks source link

Troubleshooting and Warning W31 on Deye #5

Closed ArminJo closed 1 year ago

ArminJo commented 1 year ago
Originally posted by **cfi700** July 29, 2023 First of all, thanks for the great project. While rebuilding (with Arduino Nano Clone) I noticed the following problems: PIN SCL is not PIN A3 but PIN A5. PIN Rx is not PIN 1 as specified but PIN 2. If you use the cable from the RS485 adapter of the JK-BMS and follow the labeling on the board, you have to swap the lines for RX and TX on the nano. The BigNumbers are not always displayed correctly, mostly when the current changes from two digits (e.g. 31.5 A) to one digit (e.g. 7.9 A). The Inverter (SUN-10K-SG04LP03-EU) displays the warning "W31 Battery_comm_warn" after a short time. Nevertheless, correct data is displayed on the Deye.
ArminJo commented 1 year ago

From Author cfi700

Hello, I have found a solution for the warning W31. When transmitting the battery voltage, the value in the CAN frame is shifted by one decimal place. After the change: FrameData.Voltage100Millivolt = JKComputedData.BatteryVoltage10Millivolt;// / 10; the voltage value is transferred correctly and the warning disappears.

ArminJo commented 1 year ago

@cfi700 Thanks for doing the QS 👍 These and many other display bugs are fixed now.