Giter VIP home page Giter VIP logo

Comments (11)

brunolinsalves avatar brunolinsalves commented on June 12, 2024

I tried to execute with this config.py and got the [ERROR] 'ModbusIOException' object has no attribute 'registers'. The IP of the inverter is correct.

inverter_ip = "192.168.XXX.XXX"
inverter_port = 502
# Slave Defaults
# Sungrow: 0x01
# SMA: 3
slave = 0x01
model = "sungrow-sh5k"
timeout = 3
scan_interval = 10

from solariot.

meltaxa avatar meltaxa commented on June 12, 2024

Check your slave address is correct too. If you do not know it, try cycling through different addresses from 0x01 to 0x04.

from solariot.

mpp-piotrp avatar mpp-piotrp commented on June 12, 2024

I have the same problem with sungrow-sh5k after a remote firmware upgrade. Have they changed the Modbus map? Slave address?

from solariot.

chrisvivo avatar chrisvivo commented on June 12, 2024

I have the same issue for a month or so after a firmware update.. have tried different slave address etc, no luck. I think it was to do with a fix for https://solarcybersecurity.com/

Otherwise, it's been running great and thank you!

from solariot.

meltaxa avatar meltaxa commented on June 12, 2024

Unfortunately (or perhaps fortunately), I have an older wifi module that wasn't in the firmware update scope provided by Sungrow.

Can you confirm the default TCP port (502) is still open?

from solariot.

chrisvivo avatar chrisvivo commented on June 12, 2024

Thanks for looking, yep, 502 is open:

Open TCP Port: 80 http
Open TCP Port: 502 asa-appl-proto

from solariot.

mopedy avatar mopedy commented on June 12, 2024

Hi meltaxa,

thanks for your great work, was working perfectly until recently. I guess i have same problem as chrisvivo.
Did you get it to work again?

from solariot.

chrisvivo avatar chrisvivo commented on June 12, 2024

Unfortunately not, I tried a multitude of things within my limited ability.

from solariot.

mopedy avatar mopedy commented on June 12, 2024

I managed to get it working again, by using a old wlan module like you described above. Interestingly i was using it over Ethernet and not Wifi before, by setting up the wifi Module on the inverter again, it somehow opened the ethernet cable port as well. Which allows me to use my old setup without the wifi module again.

from solariot.

rpvelloso avatar rpvelloso commented on June 12, 2024

I have a SG4K with an wi-fi interface. Tried using it with your SH5K config, got this:
Load config sungrow-sg4k
Load ModbusTcpClient
Connect
[ERROR] 'ModbusIOException' object has no attribute 'registers'
[ERROR] 'ModbusIOException' object has no attribute 'registers'
[ERROR] 'ModbusIOException' object has no attribute 'registers'
{}

Any idea? Where can I find register mapping for my inverter? How did you find yours?

Thanks.

from solariot.

meltaxa avatar meltaxa commented on June 12, 2024

Refer to #12 which will track any updates on using the SungrowModbusTcpClient library which addresses the encryption issue on later firmware versions.

from solariot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.