-
Notifications
You must be signed in to change notification settings - Fork 1
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
No Connection #1
Comments
Hello @schnettker . A disclaimer to start with - I put this together from several sources and with trial and error, I am not an expert in network communication and some of what I say below might not make much sense. I also did this a while ago and I forgot some of the details. The script also does need cleaning up to avoid confusion. The communication between script and inverter starts by the former opening a TCP socket on the local host ('') and then sending out a UDP broadcast message which the SAMIL inverter will respond to. The communication then gets going from there. The variable SOLAR_HOST is superfluous. I used wireshark to listen to the messages sent been my inverter (SAMIL, need to check exact version) and the software that comes with it. I don't know exactly what the first messages do and it might very well be that different versions of inverter require different responses. Hope this helps, happy to help further. |
thank you for your help! Can you please tell me which distrubition you are using? |
I am using raspbian. |
Hi,
your script looks very promising! But unfortunaly i can't get it to work.
In the logfile i found that:
2015-03-19 12:56:19,540 - DaemonLog - DEBUG - TCP: waiting for contact from inverter
2015-03-19 12:56:19,540 - DaemonLog - DEBUG - UDP:1300 sending welcome
2015-03-19 12:56:20,556 - DaemonLog - DEBUG - UDP:1300 closed
2015-03-19 12:56:39,565 - DaemonLog - DEBUG - no connection - retrying
I disabled my firewall and tcdump shows me, that the udp package was sended
IP 192.168.178.51.50048 > 255.255.255.255.1300: UDP, length 20
How can i solve my problem? What have i to fill in in monitor_solar.py as TCP_HOST? Why is SOLAR_HOST defined, but never used?
The text was updated successfully, but these errors were encountered: