OpenDTU icon indicating copy to clipboard operation
OpenDTU copied to clipboard

[Request] Adding communication via modbus

Open ArekKubacki opened this issue 2 years ago • 8 comments

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

ArekKubacki avatar Feb 02 '23 17:02 ArekKubacki

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

Adminius avatar Feb 03 '23 14:02 Adminius

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.

ArekKubacki avatar Feb 04 '23 09:02 ArekKubacki

Do you have any description for original DTU registers?

Adminius avatar Feb 14 '23 12:02 Adminius

I added pull request with modbus implementation :)

ArekKubacki avatar Feb 14 '23 12:02 ArekKubacki

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

traeu avatar Apr 26 '23 19:04 traeu

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

AloisKlingler avatar May 10 '23 05:05 AloisKlingler

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).

Sesshoumaru-sama avatar Mar 26 '24 14:03 Sesshoumaru-sama

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

osulivanDE avatar Apr 21 '24 07:04 osulivanDE