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

Implement Hoymiles Gen2 protocol #509

Open wgbartels opened 1 year ago

wgbartels commented 1 year ago

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

No response

Describe the solution you'd like

Please enable openDTU for MI-600

Describe alternatives you've considered

No response

Additional context

No response

wgbartels commented 1 year ago

Unfortunately I am only a user, not an expert. How can I implement the gen2 protocol and where can I get it? Can you help me?

tbnobody commented 1 year ago

Unfortunatly no, because I dont know it either at the moment. There is a implementation for the Gen2 protocol but currently I don't have the time to read and understand that code. It's on the todo list... but don't know when.

stefan123t commented 1 year ago

Implementation based on an old AhoyDTU Fork by Ziyat T is here https://github.com/Ziyatoe/DTUsimMI-Hoymiles

Gen2 Status and Data Commands are 0x08..0x11 for MI-300/600 and 0x36..0x39 for MI-1000..1200

Implementation of commands is found under RFisTime2Send() method in the main NRF24_DTUMIesp.ino code.

https://github.com/Ziyatoe/DTUsimMI-Hoymiles/blob/cfe18666e6e5da8f7b968ab61998b55cb241fc3a/NRF24_DTUMIesp.ino#L609

stefan123t commented 7 months ago

Maybe not a solution on OpenDTU side, but rejoe2 implemented the MI-300..1200 support in the Ahoy DTU master code. E.g. here https://github.com/lumapu/ahoy/issues/1111 some additional model details.