Jim's Depository

this code is not yet written

I have a Sungold SPH5048P All-in-one inverter. It has an RS-485 port and a USB port where you can get information, though it isn't documented how you might do that.

I wrote a program I call sungold which interfaces to the USB port on the Sungold, extracts the information, and reports it in a giant JSON file of mostly correctly interpreted data.

I tried to turn the inverter section on and off, and failed miserably. But I have succeeded in setting and clearing power saver mode, which is good enough for me. How power saving mode works is poorly documented, but without grid/generator power and no load my inverter eventually shuts off and when load appears it eventually comes back on.

The device presents as a serial port where you do Modbus commands to pull blocks of register values. Most values can not be written, but some can. It's hit or miss.

You can run in daemon mode where it will hang around and periodically write a new .json file, or you can run it as a one-shot command and get a json output.

This may work with many different brands of inverters: Many companies use the SRNE internals which is what this targets. Good luck there.

This program just makes the JSON, I grind it up and put it into a web page to monitor things. That ends up looking like this:

alt text

Attachments

sungold.jpg 61058 bytes