tbnobody / OpenDTU

Software for ESP32 to talk to Hoymiles/TSUN/Solenso Inverters
GNU General Public License v2.0
1.7k stars 471 forks source link

[Request] Adding communication via modbus #553

Open ArekKubacki opened 1 year ago

ArekKubacki commented 1 year ago

Is your feature request related to a problem? Please describe.

No

Describe the solution you'd like

Is it possible to add Modbus TCP communication to the project?

Describe alternatives you've considered

No response

Additional context

No response

Adminius commented 1 year ago

what would you see on modbus? As a client(read) or server(send)?

ArekKubacki commented 1 year ago

Hello, In the old nomenclature it was a slave.
In the new one, it coincides with the server. It would be nice if the addresses of the variables coincided with those of the original DTU, but it is not a must have.

Adminius commented 1 year ago

Do you have any description for original DTU registers?

ArekKubacki commented 1 year ago

I added pull request with modbus implementation :)

traeu commented 1 year ago

Just started to learn about Hoymiles HM-600 and this project. It would be really cool if OpenDTU could communicate over modbus TCP using sunspec protocol. the original DTU-pro seems to support sunspec, but only over RS485*, I really can't understand why. I wasn't able to find any microinverter that speaks sunspec over TCP. A solution using OpenDTU would be great.

*"There are two types of modbus protocol on the DTU-Pro, in which one is Hoymiles Modbus protocol and another is Sunspec Modbus protocol. Hoymiles Modbus protocol is developed by Hoymiles and implemented on two different types of interface, which is Modbus RTU on RS485 port and Modbus TCP on Ethernet port. You can find the detailed information in chapter 4 and chapter 5. Sunspec Modbus protocol is developed by Sunspec Alliance and Hoymiles also adopted this protocol on the RS485 port." https://www.shinetech-power.de/wp-content/uploads/2021/07/Technical-Note-Modbus-implementation-using-3Gen-DTU-Pro-V1.2.pdf

AloisKlingler commented 1 year ago

Hello,

I think I can attach me to the question: are there plans to simulate an modbus-tcp energymeter on the device which can be simply added to e.g. a fronius inverter as additional "inverter-energymeter" ?

Thanks!

image

Sesshoumaru-sama commented 3 months ago

Sounds interessting, would be nice if OpenDTU would implement SunSpec ... thats the last bit the HoymilesDTU does and if useful for integration in other vendors energy system (like Varta).

osulivanDE commented 2 months ago

Sunspec Modbus would be perfect to be able to integrate Victron ESS directly via Victron GX device without scripting.