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

No Connection #1

Open
schnettker opened this issue Mar 19, 2015 · 3 comments
Open

No Connection #1

schnettker opened this issue Mar 19, 2015 · 3 comments

Comments

@schnettker
Copy link

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?

@AndreasHeger
Copy link
Owner

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.

@schnettker
Copy link
Author

thank you for your help! Can you please tell me which distrubition you are using?

@AndreasHeger
Copy link
Owner

I am using raspbian.

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

2 participants