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

X3-MIC/PRO returns "Connection refused" after 2000+ms (via LAN) #109

Open
ramondeklein opened this issue Jan 30, 2023 · 2 comments
Open

Comments

@ramondeklein
Copy link

I have the Solax X3-MIC/PRO (5kW) inverter and it uses the LAN adapter (Pocket LAN 2.0). The cloud connection is fine and I am able to ping the converter on 192.168.1.60. It also connects properly to the cloud and I am able to access it via Solax Cloud.

$ curl -v -d "optType=ReadRealTimeData&pwd=SP2JXXXX4F" -X POST http://192.168.1.60
curl: (7) Failed to connect to 192.168.1.60 port 80 after 2028 ms: Connection refused

I read that the WIFI dongle doesn't expose the API on the local network. I did use a WIFI dongle for two weeks before I got my LAN dongle. Maybe I need to re-enable something?

@nazar-pc
Copy link

nazar-pc commented Feb 2, 2023

Wi-Fi does expose API on local network and works just fine, but maybe not in 100% of cases (hard to tell, manufacturer doesn't disclose that kind of information).

Mobile application doesn't support Pocket LAN as far as I can tell from reaching Android application's source code, so it may physically be unable to return you that data and with firmware being closed source we may not be able to do anything about it.

@letsjustfixit
Copy link

letsjustfixit commented Apr 16, 2023

@ramondeklein
Try it this way (replace YOURIP with your inverter's ip: YOURPASSWORD with your admin password by default: admin)

curl -X POST http://YOURIP  -H 'X-Forwarded-For: "5.8.8.8"' --data 'optType=ReadRealTimeData&pwd=YOURPASSWORD'
curl -X POST http://YOURIP  -H 'X-Forwarded-For: "5.8.8.8"' --data 'optType=ReadSetData&pwd=YOURPASSWORD'

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

3 participants