MichaluxPL / Sofar_LSW3

Get MODBUS data from Sofar (K-TLX) inverter through LSW-3 or LSE module
GNU General Public License v3.0
94 stars 45 forks source link

azzurro HYBRID inverter can`t recieve value #49

Closed r-schoepf closed 9 months ago

r-schoepf commented 1 year ago

we tried to run the script. Once with a Dietpi and once directly on the Synology, both without success.

We use an Azzurro hybrid inverter with the LSW-3 module.

Is there a possibility that we may ask for your help?

rimelis commented 1 year ago

You can run your script in any device of your local network. It's another yet inverter with different address ranges and functional codes. If you have a coding skills in Python you have to find the correct description of modbus protocol suitable for your inverter (maybe this one: https://forum.iobroker.net/assets/uploads/files/1638097185191-modbus-communication-protocol-storage-and-hybrid-inverter.pdf) and try to play with various ranges watching what is coming from. I have found that the fork of this project https://github.com/pawsuch/Sofar_G3_LSW3 is more minimalistic and works better as a starting point.

r-schoepf commented 1 year ago

tried it... error:

Traceback (most recent call last): File "/volume1/PYTHON/Sofar_LSW3/InverterHWData.py", line 47, in crc=binascii.unhexlify(str(padhex(hex(libscrc.modbus(businessfield)))[4:6])+str(padhex(hex(libscrc.modbus(businessfield)))[2:4])) # CRC16modbus AttributeError: module 'libscrc' has no attribute 'modbus'

r-schoepf commented 1 year ago

an for the Sofar_LSW3 we recieve the following error:

File "/root/Temp$/Sofar_LSW3-main/InverterData.py", line 164, in data = clientSocket.recv(1024);

MichaluxPL commented 1 year ago

tried it... error:

Traceback (most recent call last): File "/volume1/PYTHON/Sofar_LSW3/InverterHWData.py", line 47, in crc=binascii.unhexlify(str(padhex(hex(libscrc.modbus(businessfield)))[4:6])+str(padhex(hex(libscrc.modbus(businessfield)))[2:4])) # CRC16modbus AttributeError: module 'libscrc' has no attribute 'modbus'

Looks like lack of some python libriaries installed or a different version, that lacks some subroutines.

rimelis commented 1 year ago

If you have a plans to run this on Synology I suggest to create Docker container for this script and install everything you need inside it. Synology creates a lot of headache as it's really stripped OS.