Giter Site home page Giter Site logo

Comments (10)

ai-republic avatar ai-republic commented on July 28, 2024 1

Hi Daniel,
ok, thanks for that. I've not been able to test the RS485 binding for the JK so its good if your willing to help me test it and get it up and running.
I will update the code to fix that exception and then we can go from that. Could you also please set the log level to debug please to get more information?

from bms-to-inverter.

danieltorkian avatar danieltorkian commented on July 28, 2024

sure thing

logs.txt

this my config:
bms.pollInterval=1

bms.1.type=JK_RS485
bms.1.id=1
bms.1.portLocator=/dev/ttyAMA0
bms.1.delayAfterNoBytes=2000

###################################################################

Inverter settings

###################################################################

The inverter type can be NONE, DEYE_CAN, GROWATT_CAN, SMA_SI_CAN, SOLARK_CAN

inverter.type=SOLARK_CAN

The port name/device to use to communicate to the inverter

inverter.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....

from bms-to-inverter.

ai-republic avatar ai-republic commented on July 28, 2024

Hi Daniel,
I fixed the exception above.
Could you set the log level to debug and do a Clean install from the Configurator app please and test again?
I also adjusted the Configurator app to produce a log file configuration that doesn't log all the useless information at startup, so you might want to get the new Configurator too.

from bms-to-inverter.

danieltorkian avatar danieltorkian commented on July 28, 2024

Hi Thank you!
I tried again but still getting an error. See logs.
BMS-to-Inverter.log

from bms-to-inverter.

danieltorkian avatar danieltorkian commented on July 28, 2024

can you please give me the permissions to push a branch and request a PR????

from bms-to-inverter.

ai-republic avatar ai-republic commented on July 28, 2024

Hi Daniel,
I've added iterating through all commands and error handling in case no data was received.
The program will delay (Delay after no bytes received setting) a short time and try to read again. If no bytes are received for over 10x then it will try the next command.

Could you please Clean install with the Configurator and lets see if we get any responses.

from bms-to-inverter.

danieltorkian avatar danieltorkian commented on July 28, 2024

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.

from bms-to-inverter.

ai-republic avatar ai-republic commented on July 28, 2024

Hi Daniel,
thanks for your contribution.
I merged your code with some minor changes. I skipped the lombok framework (I know its nice) but I'd like to keep the footprint as small as possible.
I was thinking about requesting all values at once, but kept it consistent with the other bindings.
But it will be more performant this way so I kept it :)

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?

from bms-to-inverter.

ai-republic avatar ai-republic commented on July 28, 2024

@danieltorkian could you try a Clean install from the Configurator application and test the JK binding?

from bms-to-inverter.

ai-republic avatar ai-republic commented on July 28, 2024

I will close this issue, since the JK RS485 binding is working now

from bms-to-inverter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.