-
-
Notifications
You must be signed in to change notification settings - Fork 16
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 RS485 doesn't work #23
Comments
Hi Daniel, |
sure thing this my config: bms.1.type=JK_RS485 ################################################################### Inverter settings################################################################### The inverter type can be NONE, DEYE_CAN, GROWATT_CAN, SMA_SI_CAN, SOLARK_CANinverter.type=SOLARK_CAN The port name/device to use to communicate to the inverterinverter.portLocator=can0 Interval to send data to the inverter (in seconds)inverter.sendInterval=1 I use SEENGREAT RS485-Dual-CAN-I and also tested two RS485-USB Dongles with same results.... |
Hi Daniel, |
Hi Thank you! |
can you please give me the permissions to push a branch and request a PR???? |
Hi Daniel, Could you please Clean install with the Configurator and lets see if we get any responses. |
Hey Torsten, CRC calculation of spec is wrong.... See according branch. Next step would be to convert the values from response to Battery_Object according to the spec. |
Hi Daniel, I did however change some of your code to read the frames. Maybe you like to have a look and see if I didn't miss anything critical. Can you get any readings from the JK now? |
@danieltorkian could you try a Clean install from the Configurator application and test the JK binding? |
I will close this issue, since the JK RS485 binding is working now |
2024-03-14 18:46:34.633 | INFO | Thread-2 | verter.BmsToInverter:164 | Reading BMS #1 JK_RS485 on /dev/ttyAMA0...
2024-03-14 18:46:34.645 | INFO | Thread-2 | stoinverter.core.BMS:120 | ---------------------------------> Thread 44
2024-03-14 18:46:34.647 | ERROR | Thread-2 | stoinverter.core.BMS:139 | Error requesting data!
java.lang.UnsupportedOperationException: null
at java.nio.ByteBuffer.array(ByteBuffer.java:1471) ~[?:?]
at com.airepublic.bmstoinverter.protocol.rs485.JSerialCommPort.sendFrame(JSerialCommPort.java:115) ~[protocol-rs485-0.0.1-SNAPSHOT.jar:?]
at com.airepublic.bmstoinverter.bms.jk.rs485.JKBmsRS485Processor.collectData(JKBmsRS485Processor.java:27) ~[bms-jk-rs485-0.0.1-SNAPSHOT.jar:?]
at com.airepublic.bmstoinverter.core.BMS.process(BMS.java:127) ~[core-api-0.0.1-SNAPSHOT.jar:?]
at com.airepublic.bmstoinverter.BmsToInverter.lambda$start$2(BmsToInverter.java:165) ~[bms-to-inverter-main-0.0.1-SNAPSHOT.jar:?]
at java.lang.Thread.run(Thread.java:840) [?:?]
The text was updated successfully, but these errors were encountered: