-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Error interacting via websockets #5
Comments
Getting the same since I updated firmware in Winet-S module yesterday. |
Sorry guys. I know of this issue. |
Great, thanks for the excellent work! |
main...caliph9k:SungrowModbusWebClient:main Is this the solution? |
@bohdan-s I have confirmed the issue is authentication, and the fork linked above resolves it. I suppose SunGather users would have to fill in credentials somewhere other than the .py file, though. Especially with HA installations. |
Yep, can also confirm, that it's the login issue and solved by the fix |
It also seems that the |
I can confirm that this fixes the issue. I've tested with SH10.0RT-V112 + Winet-S and SH15T + Winet-S2 |
Thanks for this - can someone explain what the comparison is between MODBUS and websocket? MODBUS is polling - does anyone know how often new values are available? ie. are they changing on a constant cadence, and then it's up to you how often you poll? Websocket - does anyone have a feel for how often new values are pushed to you in general? Can you control this at all? Do you get all values, or all requested values, pushed over a single connection? It feels like Websocket could be way better for high-granularity data, but depends on implementation 🤷🏻 |
From my testing websocket and modbus update the same time. |
Thanks @bohdan-s - what about other aspects: universal subscription (give me every register) is this easier on Websocket? Does the websocket operate on a perpetual push stream (updated when value changes) - unlike Modbus which is request-response? Wasn't it hard to determine they update at the same time because of the push / request-response mismatch? I'll try and do some testing to get a feel for how often the underlying data does update.. |
So modbus method reads each register via modbus protocol. |
I see - I was hoping that the websocket protocol would at least push new values to you, meaning you did not to continue to re-request everything on a regular cadence. Is the websocket protocol still request-response (effectively) just inside a bi-directional protocol? |
“My” implementation is using modbus stack. So it’s all polling. |
I wrote my own adapter using C# and the websocket only.
|
@bohdan-s Any progress on this issue or a guesstimate when you can work on it? |
I did a fix on my side for my SH8.0RT-V112 replacing SungrowModbusWebClient/SungrowModbusWebClient.py with the same file from https://github.com/caliph9k/SungrowModbusWebClient |
On my inverter I am getting the following errors, when debugging SungrowMdbusWebClient in
http
mode. I have reduced it down to awebsocat
repro: (first JSON line is input to inverter, second line is output)I can't find any info on this error message - is this 401 error a HTTP status error standard, or something entirely different? Has anyone seen this before?
The text was updated successfully, but these errors were encountered: