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

Connection timeout #9

Closed
dpmanter opened this issue Feb 19, 2019 · 5 comments
Closed

Connection timeout #9

dpmanter opened this issue Feb 19, 2019 · 5 comments

Comments

@dpmanter
Copy link

I have an solaredge inverter SE11400. I got it to communicate over modbus TCP using this script. I was even able to write values to a database for a day. However, during my fiddling with the settings it lost connection to the SolarEdge portal. Solaredge did some magic on their end and it now connects to the solar portal. However, now I can't get a connection over modbus TCP using this script. When I execute the script it says connected on the inverter LCD but it returns a timeout error (show below)

sunspec-status.pl -v target
Connection timed out
at /usr/local/share/perl/5.26.1/Device/Modbus/Client.pm line 82.

Any help would be appreciated.

Thanks,
Dave

@dpmanter
Copy link
Author

More data..... if I use a modbus client application I can connect to the inverter using slave id = 2 and read the registers.

Does anyone know how to do this in the script? How do I call out slave id = 0?

@lloydwatkin
Copy link
Contributor

With the status comment I believe you pass meter number?

https://github.com/tjko/sunspec-monitor#syntax

@dpmanter
Copy link
Author

Thanks Lloyd but using the option -m 1 or -m 2 doesn't work.

Looking at the Modbus frame

Slave ID | Function | Start PDU Register | Length | CRC
1 byte | 1 byte | 2 bytes | 2 bytes | 2 bytes

I need to set slave id to 0x02.

@dpmanter
Copy link
Author

dpmanter commented Feb 22, 2019

In the sunspec-status script if I change unit=>2 instead of unit=>1 it works. I had to change it in 4 places in the script.

I get a response from the inverter as follows:

Davids-MBP:sunspec-monitor-master manterd$ ./sunspec-status -v target
INVERTER:
Model: SolarEdge SE11400
Firmware version: 3.2251
Serial Number: 7D118B58

        Status: ON (MPPT)

Power Output (AC): 962 W
Power Input (DC): 977 W
Efficiency: 98.51 %
Total Production: 486.640 kWh
Voltage (AC): 245.30 V (60.02 Hz)
Current (AC): 3.96 A
Voltage (DC): 369.30 V
Current (DC): 2.64 A
Temperature: 15.14 C (heatsink)

METER (#1):
Model: WattNode RWND-3D-240-MB
Option: Production
Firmware version: 25
Serial Number: 4105526

Exported Energy: 485.372 kWh
Imported Energy: 0.111 kWh
Real Power: 956 W
Apparent Power: 958 VA
Power Factor: 0.996
Voltage (AC): 245.49 V (60.02 Hz)
Current (AC): 3.90 A

@lloydwatkin
Copy link
Contributor

@dpmanter you might want to ask solaredge to look at your inverter configuration then. We had a lengthy discussion to get data from the inverter and it was all fixed by an OTA update, see #4 (comment)

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