Coder Social home page Coder Social logo

Comments (57)

mkaiser avatar mkaiser commented on June 12, 2024

hi,

if you are using Windows you can easily check, if the modbus connection generally works by QModMaster

I tested it with the values shown in the screenshot. First set the TCP Settings (Options --> Modbus TCP) then adapt all highlighted parameters
Bild_2022-01-06_114417

from sungrow-shx-inverter-modbus-home-assistant.

MatteoSalviTech avatar MatteoSalviTech commented on June 12, 2024

I get the “Illegal Data Read” error but I can access the WiNet dongle on web browser…

from sungrow-shx-inverter-modbus-home-assistant.

mkaiser avatar mkaiser commented on June 12, 2024

Can you give more information?

The Webinterface does not have anything to do with the modbus connection. How is your inverter exactly connected?

from sungrow-shx-inverter-modbus-home-assistant.

MatteoSalviTech avatar MatteoSalviTech commented on June 12, 2024

The inverter is connected to WiFi (of course with static IP assigned) via WiNet dongle. I checked on the web interface (logging-in as admin) and the modbus server is correctly enabled but I can't access it via QModMaster or the HA integration...

from sungrow-shx-inverter-modbus-home-assistant.

MatteoSalviTech avatar MatteoSalviTech commented on June 12, 2024

I also changed the Unit ID in QModMaster to "1" since this is the slave address of the inverter (also putting "100" it doesn't work properly).

from sungrow-shx-inverter-modbus-home-assistant.

mkaiser avatar mkaiser commented on June 12, 2024

hmm I cannot find detailled information about the WiNet dongle.

On my SH10 RT inverter I have LAN directly attached and use this for modbus.

In addition I had a Wifi Dongle attached to a separate port (I don't know the exact model number).

In the inverter settings I set the modbus slave adress to 100. standard is 1.

Do you have a LAN cord attached or just Wifi? Maybe it works only with LAN...

from sungrow-shx-inverter-modbus-home-assistant.

MatteoSalviTech avatar MatteoSalviTech commented on June 12, 2024

So you have directly connected the inverter via RJ45 port without any additional device (such as the WiNet dongle)?

from sungrow-shx-inverter-modbus-home-assistant.

mkaiser avatar mkaiser commented on June 12, 2024

my SH10 model has two different ports: One to directly attach Ethernet, one for a Wifi dongle

I use the Ethernet cable for Modbus and disconnected the Wifi (there is no need to send my information anywhere else than my home).

Can you check if it works with a Ethernet cable attached?

from sungrow-shx-inverter-modbus-home-assistant.

johschmitz avatar johschmitz commented on June 12, 2024

I also saw this multiple times in other discussions that the Modbus connection only works through the LAN port. Additionally I saw some mentions of encryption. So wondering which Inverter firmware version you guys are running?

from sungrow-shx-inverter-modbus-home-assistant.

johschmitz avatar johschmitz commented on June 12, 2024

I wonder if removing the Wi-Fi dongle while using the LAN port makes a difference. I was also having trouble so maybe I should try that combination as well.

from sungrow-shx-inverter-modbus-home-assistant.

MatteoSalviTech avatar MatteoSalviTech commented on June 12, 2024

My inverter runs SUNSTONE-H_01011.02.19 firmware. I'll try without WiNet dongle and let you know.

from sungrow-shx-inverter-modbus-home-assistant.

mkaiser avatar mkaiser commented on June 12, 2024

SH10.RT
MSDP: SAPPHIRE-H_03011.01.14
LCD: SAPPHIRE-H_01011.01.17

from sungrow-shx-inverter-modbus-home-assistant.

MatteoSalviTech avatar MatteoSalviTech commented on June 12, 2024

I wonder if removing the Wi-Fi dongle while using the LAN port makes a difference. I was also having trouble so maybe I should try that combination as well.

I'm not completely sure I can connect the inverter directly to Ethernet without WiNet dongle...

from sungrow-shx-inverter-modbus-home-assistant.

johschmitz avatar johschmitz commented on June 12, 2024

Okay we removed the Wi-Fi dongle and the isolarcloud connection seems to be still working. So I guess the dongle is only needed for firmware updates. Ours is not WiNet but "WiFi V313".

from sungrow-shx-inverter-modbus-home-assistant.

MatteoSalviTech avatar MatteoSalviTech commented on June 12, 2024

Have you connected the Ethernet cable directly into the dongle port?

from sungrow-shx-inverter-modbus-home-assistant.

johschmitz avatar johschmitz commented on June 12, 2024

I think what I just wrote is wrong, there seems to be a large delay until the isolarcloud notices a problem. Now the device seems to be offline, which I would have expected in the first place. But maybe the home assistant modbus connection will work properly now.
The cable is connected to the "LAN" Ethernet port not the one for the WiFi dongle. I never tried connecting the cable there.

Edit: I can still see a connection through the isolarcloud.com web app. So I am a bit confused right now.

from sungrow-shx-inverter-modbus-home-assistant.

MatteoSalviTech avatar MatteoSalviTech commented on June 12, 2024

I think there is no Ethernet port in SH6.0RS model. On the manual it says that the Ethernet cable should be connected to the WiNet dongle port. The other RJ45 ports are intended for BUS and COM communication…

from sungrow-shx-inverter-modbus-home-assistant.

johschmitz avatar johschmitz commented on June 12, 2024

Okay it seems the isolarcloud Android app just had an issue. Working again after restarting the app. So it does indeed work without the Wi-Fi dongle on the SH10RT and just Ethernet plugged to the "LAN" port.

from sungrow-shx-inverter-modbus-home-assistant.

johschmitz avatar johschmitz commented on June 12, 2024

Btw: It shows the LAN network module which I guess is build into the SH10 as an "iE-Net".

from sungrow-shx-inverter-modbus-home-assistant.

johschmitz avatar johschmitz commented on June 12, 2024

Okay so if your inverter has only one Ethernet port then I guess you have to go with that one 😊

from sungrow-shx-inverter-modbus-home-assistant.

johschmitz avatar johschmitz commented on June 12, 2024

I got it to work now on our SH10, I found that I had the wrong slave ID set (100 instead of 1), fixed that and now it is working. Created a pull request with my simplified configuration and setup instructions.

from sungrow-shx-inverter-modbus-home-assistant.

MatteoSalviTech avatar MatteoSalviTech commented on June 12, 2024

I got it to work now on our SH10, I found that I had the wrong slave ID set (100 instead of 1), fixed that and now it is working. Created a pull request with my simplified configuration and setup instructions.

Did you get it working with or without the WiFi dongle?

from sungrow-shx-inverter-modbus-home-assistant.

johschmitz avatar johschmitz commented on June 12, 2024

Without WiFi dongle. Late we can try if it also works when we replug the Wifi dongle or if that disturbs the home assistant modbus. But you should definitely try WITHOUT the Wifi dongle. Also see the home assistant log and check for any error messages regarding the modbus connection.
You can find my simplified yaml here: https://github.com/johschmitz/Sungrow-SHx-Inverter-Modbus-Home-Assistant/blob/main/modbus_sungrow.yaml
Then you don't need the secrets.yaml anymore.

from sungrow-shx-inverter-modbus-home-assistant.

MatteoSalviTech avatar MatteoSalviTech commented on June 12, 2024

The fact is that on thge SH6.0RS model there aren't any other LAN/Ethernet ports so I must connect the Ethernet cable to the WiNet dongle LAN port...

from sungrow-shx-inverter-modbus-home-assistant.

MatteoSalviTech avatar MatteoSalviTech commented on June 12, 2024

Nothing to do: connecting the inverter via the WiNet dongle Ethernet port still doesn't give me modbus access.

from sungrow-shx-inverter-modbus-home-assistant.

johschmitz avatar johschmitz commented on June 12, 2024

Why can't you unplug the dongle and plug the Ethernet cable directly into your inverter?

from sungrow-shx-inverter-modbus-home-assistant.

MatteoSalviTech avatar MatteoSalviTech commented on June 12, 2024

Tried it: the port is designed to work with the dongle. If I unplug it, I can’t receive any data (the Ethernet switch can’t see the inverter at all).

from sungrow-shx-inverter-modbus-home-assistant.

johschmitz avatar johschmitz commented on June 12, 2024

There's also different types of dongles from Sungrow. Maybe you have to get another one with Ethernet only to be able to use the Modbus connection?

Also try to disable the Wi-Fi connection with your home network in the web interface of the dongle:

Screenshot_20220108-190953201 (1)

from sungrow-shx-inverter-modbus-home-assistant.

MatteoSalviTech avatar MatteoSalviTech commented on June 12, 2024

The strange thing is that modbus server is enabled:
immagine

from sungrow-shx-inverter-modbus-home-assistant.

mkaiser avatar mkaiser commented on June 12, 2024

Saw this in a german forum: https://forum.iobroker.net/topic/38441/sungrow-wr-sgh10rt-erfolgreich-mit-modbus-eingebunden/115?_=1641918692873&lang=de

It looks like it is a know problem and Sungrow is currently working on enabling the modbus for the WiNet-S adaptors for the SGx-series (SHx is working)

from sungrow-shx-inverter-modbus-home-assistant.

MatteoSalviTech avatar MatteoSalviTech commented on June 12, 2024

Maybe I need to update the firmware. I'll check and let you know!

from sungrow-shx-inverter-modbus-home-assistant.

MatteoSalviTech avatar MatteoSalviTech commented on June 12, 2024

Hello. After several tests I saw that with @mkaiser QModMaster configuration I can read Holding Registers data but not the input one (I always get "Illegal data" error). Any suggestions?

from sungrow-shx-inverter-modbus-home-assistant.

MatteoSalviTech avatar MatteoSalviTech commented on June 12, 2024

Basically, this is the data I read on address 5002 by reading the input registers (with error):
immagine

And this is the data I can read on address 5002 by reading the holding registers (no error):
immagine

Can't figure out what's wrong...

from sungrow-shx-inverter-modbus-home-assistant.

mkaiser avatar mkaiser commented on June 12, 2024

Any updates on this?

I saw in a german forum, that Sungrow is actively working on fixing the WiNet-S stuff. But no good news, yet

from sungrow-shx-inverter-modbus-home-assistant.

MatteoSalviTech avatar MatteoSalviTech commented on June 12, 2024

Still not working on my inverter.

from sungrow-shx-inverter-modbus-home-assistant.

eragooon avatar eragooon commented on June 12, 2024

I'm having the same problems with the SH8.0RT, I just updated all of the firmware, but nothing worked.
The firmware seemed to be from Dec. 14th 2021. And the QModMaster also allowed holding register read, but no input register read.
Does anyone have the link to the sungrow team saying that they will fix this?

from sungrow-shx-inverter-modbus-home-assistant.

mkaiser avatar mkaiser commented on June 12, 2024

I have my intel from here (german)
https://www.photovoltaikforum.com/thread/158136-sungrow-sammelthread-produktmanagement/?postID=2557804#post2557804

Die LAN-Buchse des Sungrow Hybrid ist bevorzugt für Modbus TCP zu verwenden, iSolarCloud Monitoring hat daran nur 5 Minuten Aktualisierungsrate.

Der WiNet-S Ethernetanschluss ist bevorzugt für iSolarCloud Monitoring zu verwenden, die Aktualisierungsrate liegt bei 10s wenn aktiviert und gute Internetverbindung vorausgesetzt. Modbus-TCP ist damit leider derzeit nur eingeschränkt bis gar nicht möglich bis die Firmware upgedated ist, dies steht kurz vor dem Abschluss.

Short translated version:

Use the LAN port of the Sungrow Hybrid to use ModBus TCP. Using this port the iSolarcloud will have a refresh rate of 5 minutes.

The WiNet-S Port should be used for iSolarCloud Monitoring with a refresh rate of 10seconds.  Modbus TCP is very limited to unusable on this port. A firmware upgrade for this is quiet near to a release. 

What port did you use? Can you send us a picture?

from sungrow-shx-inverter-modbus-home-assistant.

MatteoSalviTech avatar MatteoSalviTech commented on June 12, 2024

Personally, I only have the ethernet port of the WiNet dongle.

from sungrow-shx-inverter-modbus-home-assistant.

eragooon avatar eragooon commented on June 12, 2024

I do have both, but the I do not have a LAN cable anywhere near the device.
So I'm hoping they will fix the Modbus-TCP for the WiNet-S dongle soon.

from sungrow-shx-inverter-modbus-home-assistant.

mkaiser avatar mkaiser commented on June 12, 2024

hi,

Just read a recent post from a german forum from a (official) Sungrow product management team:

Beim Sungrow SGxxRT (normaler WR) sollte seit dem Firmwareupdate Anfang diesen Monats Modbus TCP über den WiNet-S möglich sein.

rough translation:
The newest firmware, released early this month, should add support MODBUS TCP via WiNet-S for the Sungrow SGxxRT (including non-hybrid inverter)

https://www.photovoltaikforum.com/thread/166134-daten-lesen-vom-sungrow-wechselrichtern-modbus/?postID=2622220#post2622220

@Eragoon and @MatteoSalviTech
Can you check this?

from sungrow-shx-inverter-modbus-home-assistant.

MatteoSalviTech avatar MatteoSalviTech commented on June 12, 2024

I continue to get the "Illegal Data Read" on QModMaster. Maybe because I own a SHx series inverter. My actual firmware version is: SUNSTONE-H_01011.02.19.

from sungrow-shx-inverter-modbus-home-assistant.

mkaiser avatar mkaiser commented on June 12, 2024

Modbus TCP via WinetS works for a collegue of mine with a SH8RT now.

  • plug LAN cable into Inverter (not WinetS)
  • Look in router for PC*** device and assign a static IP in the range of .20 to 240. (the lower range seems to not work...)

Note
PC** is the inverter
Espressif*** is the WinetS Dongle

maybe this helps?

from sungrow-shx-inverter-modbus-home-assistant.

mkaiser avatar mkaiser commented on June 12, 2024

picture of SGH8.RT with working modbus from my collegue. LAN is connected directly to the inverter, not via WiNetS

image

from sungrow-shx-inverter-modbus-home-assistant.

johschmitz avatar johschmitz commented on June 12, 2024

Anyone knows if it is possible to connect two Ethernet cables simultaneously to use the cloud and local Modbus TCP together?

from sungrow-shx-inverter-modbus-home-assistant.

MatteoSalviTech avatar MatteoSalviTech commented on June 12, 2024

The problem is that on my SH6.0RS there isn’t any additional Ethernet port…

from sungrow-shx-inverter-modbus-home-assistant.

bjeanes avatar bjeanes commented on June 12, 2024

The problem is that on my SH6.0RS there isn’t any additional Ethernet port…

Same with my SH5.0RS

I get the “Illegal Data Read” error but I can access the WiNet dongle on web browser…

Make sure you update the WiNet-S firmware. Mine came with with WINET-SV200.001.00.P008 and I was able to upgrade to WINET-SV200.001.00.P012. This enabled Modbus access -- however, many registers are inaccessible, such as 13001 (running state). Other registers, such as 5036 (grid frequency) are off by a factor of 10 (showing me 500.9 Hz right now)!

Hopefully it improves, but I've had better getting info using SunGather with the http connection type (which essentially gets values via the web interface).

from sungrow-shx-inverter-modbus-home-assistant.

Bullischorsch avatar Bullischorsch commented on June 12, 2024

Anyone knows if it is possible to connect two Ethernet cables simultaneously to use the cloud and local Modbus TCP together?

Yes, for me this works on my SH10RT. LAN-Port for Modus, Ethernet-Port on Wifi-Dongle for WiNet-Communication (iSolarCloud).

from sungrow-shx-inverter-modbus-home-assistant.

mkaiser avatar mkaiser commented on June 12, 2024

@MatteoSalviTech see #18 - can you check for newer versions?

@bjeanes is there an update to your current firmware from 12.7. Does the newest version maybe fix the running state register? Or were you already on the current version?

from sungrow-shx-inverter-modbus-home-assistant.

bjeanes avatar bjeanes commented on June 12, 2024

Interesting. I don't see a 12.7. I see WINET_B012.V000.P001 in iSolarCloud app but that's the same as I've had for a couple of months. They probably just mean the latest firmware (vs the one it ships with) includes Modbus support. It does, it's just buggy...

from sungrow-shx-inverter-modbus-home-assistant.

schoofseggl avatar schoofseggl commented on June 12, 2024

Yes, for me this works on my SH10RT. LAN-Port for Modus, Ethernet-Port on Wifi-Dongle for WiNet-Communication (iSolarCloud).

The same applies to SH8RT. The dongle provides two interfaces: LAN and WIFI both operate with different MAC addresses and get different IP addresses. In parallel I have connected ETH0 (the internal one) to LAN and I operate the WiNET-S through WIFI (because I have only one LAN cable available currently)

from sungrow-shx-inverter-modbus-home-assistant.

Maxify23 avatar Maxify23 commented on June 12, 2024

Please Update the Firmware.

Most Modbus Registers now work with WII Net Dongel, but not all....

I send a bug report to sungrow for fixing

from sungrow-shx-inverter-modbus-home-assistant.

schoofseggl avatar schoofseggl commented on June 12, 2024

Update the firmware of the WII Net Dongle or the inverter? I found no instructions or firmware images for the dongle...

from sungrow-shx-inverter-modbus-home-assistant.

johschmitz avatar johschmitz commented on June 12, 2024

You need to use the iSolarCloud app for the firmware updates.

from sungrow-shx-inverter-modbus-home-assistant.

MatteoSalviTech avatar MatteoSalviTech commented on June 12, 2024

Just updated WiNetS to WINET_B012.V000.P001 but nothing changed...

from sungrow-shx-inverter-modbus-home-assistant.

bjeanes avatar bjeanes commented on June 12, 2024

Restart Home Assistant too. home-assistant/core#68161

from sungrow-shx-inverter-modbus-home-assistant.

MatteoSalviTech avatar MatteoSalviTech commented on June 12, 2024

Restarted it of course but I continue to get so many unavailable sensors...

from sungrow-shx-inverter-modbus-home-assistant.

mkaiser avatar mkaiser commented on June 12, 2024

There were no updates any more.

The LAN port of the WiNet is not supported. Will update the documentation accordingly

I guess it is okay to close the issue now.

from sungrow-shx-inverter-modbus-home-assistant.

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.