Skip to content
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

Invalid JSON in hex stream #6

Open
cowpen opened this issue Feb 22, 2020 · 5 comments
Open

Invalid JSON in hex stream #6

cowpen opened this issue Feb 22, 2020 · 5 comments

Comments

@cowpen
Copy link

cowpen commented Feb 22, 2020

I have an MPP Solar LV 5048. It's a split phase unit containing two inverters and two charge controllers. It shares the same comms protocol as the supported models listed here, although it supports more query & result codes (i,e, QPIGS2 for the second phase, etc.). I'm using node-red to call skymax-demo and injecting stdout to influxdb. The flow is successful, but the output returned contains an 0x0 in the buffer stream which the function to parse to a JSON object chokes on. The location of the 0x0 in the output string is at the value location for "AC_charge_on:,"

image

I've looked through the skymax code but I don't really have a clue for what I'm looking for. Could it be related to the "-" in line 202 of main.cpp?

Thanks for your help!

@manio
Copy link
Owner

manio commented Feb 24, 2020

The problem is in the line:
"AC_charge_on":,
It is wrong formatted JSON.

@cowpen
Copy link
Author

cowpen commented Feb 24, 2020

Ahh... thank you. Looking more carefully, I see now that the QPIGS protocol for my inverter is a bit different for the parameter response at position "x". That must be where the bad JSON is coming from.
LV5048 5KW protocol-20190222 for customer-1.pdf

@dansass
Copy link

dansass commented Apr 15, 2020

hey cowpen! I am at this stage to try to talk to my inverter with node red. Would u do me a favor and post your flow file that works? Would be greatly appreciated. to do that, click the hamburger menu than "export". Thanks

@cowpen
Copy link
Author

cowpen commented Apr 15, 2020

Here's what I had when I gave up on this particular solution since it didn't support the queries and responses required for my inverter. Hope it's helpful in some way.
flows(1).zip

@Edgepath
Copy link

Edgepath commented Jun 27, 2023

Hello,

trying to get this working with MasterPower (also Voltronic) MasterPower PMS 5K-48TOP Off-Grid

HINT: does this also work with USB-to-USB-Cable (Voltronic internal USB to Serial Cypress adapter) or only with COM-RJ45 connection? :D

what is the content of /home/pi/inverter.sh ? :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants