Coder Social home page Coder Social logo

Comments (8)

tobiasfaust avatar tobiasfaust commented on August 17, 2024 1

Hi,
i just committed an update. There was a memory leak in weboutput of "itemconfig" (-> null after Inverterstatus)
Another mistake by you was the definition of "id", you forgot a space ;)

So, just clone the repo and test again

from solaxmodbusgateway.

tobiasfaust avatar tobiasfaust commented on August 17, 2024

Hi,
Something on your Json Definition is not well defined.

`Error: unable to read configdata for inverter ���?�: NoMemory

Failed to parse JSON Register Data: EmptyInput
Failed to parse JSON Register Data: NoMemory `

can you Post your json Definition of Register.h please?

from solaxmodbusgateway.

Dobie007 avatar Dobie007 commented on August 17, 2024

I posted the register.h as text file above..
Github tells me "We dont support that file type" if i drag and drop it here...

May that be caused by the name string I chose?: "Sofar-KTL Solarmax-SGA"

from solaxmodbusgateway.

tobiasfaust avatar tobiasfaust commented on August 17, 2024

at first, your definition of "RequestIdData" is wrong. please use:

"RequestIdData": ["#ClientID", "0x04", "0x20", "0x00", "0x00", "0x0B"],

and try again

from solaxmodbusgateway.

Dobie007 avatar Dobie007 commented on August 17, 2024

Hi, thanks for your response.. (its not urgent, you can take your time :-))
I changed it, but it seems to make no difference. This time:

Inverter found: Sofar-KTL Solarmax-SGA
Read config data for inverter ���?␟
{
That is directly after reset before communication - so which config data does that refer to..?
I assume its from the ESP flash...

Further down in the log the IdData request comes ( I set the live data to one every 10s, and the IdData to one every 60s)
but I get "no response from client"

This is after I changed the Register file as you advised to:

"Sofar-KTL Solarmax-SGA": {
	"config": {
		"RequestLiveData": [
			["#ClientID", "0x03", "0x00", "0x00", "0x00", "0x30"]
		],
		"RequestIdData": ["#ClientID", "0x04", "0x20", "0x00", "0x00", "0x0B"],
		"ClientIdPos": 0,
		"LiveDataFunctionCodePos": 1,

register_h.txt
Log3.txt

Could the 9600 Baud be a problem - not sure if I can change that.

After about an hour I finally get an answer but it seems as if the Serial is still not parsed:
screen

from solaxmodbusgateway.

Dobie007 avatar Dobie007 commented on August 17, 2024

Good One!: I can select the items now and they are being passed to MQTT. In other words I can actively use it now.

Only little drawback: The serial number is not decoded in the first attempts to read the "id": The log shows:

Request queue data to inverter: 0x01 0x04 0x20 0x00 0x00 0x0B 0xBA 0x0D
Read Data from Queue:
no response from client

After a few minutes it gets the id and I have my Serial Number display as well.

Attached is the register.h file (for further reference):
register_h.txt

Thanks, I can dismiss the Chinese logger now. :-)

from solaxmodbusgateway.

Dobie007 avatar Dobie007 commented on August 17, 2024

Big THANKS! to Tobias - Everything solved in no time!

from solaxmodbusgateway.

tobiasfaust avatar tobiasfaust commented on August 17, 2024

finally added by 9ef955d

from solaxmodbusgateway.

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.