lufton / esphome-inv-8851

Inverter 8851 protocol ESPHome integration
15 stars 3 forks source link

DTU flashing #19

Open lordlightman opened 4 months ago

lordlightman commented 4 months ago

Hello @lufton. I would like to thank you for your amazing work integrating the inverter into ESPHome.

I am most interested in flashing the ESPHome firmware on the DTU. I was surprised but also glad to find out that PowMr's WiFi dongle uses an ESP32 chip, since I was planning on buying one on the upcoming AliExpress sale and trying it out. It's great that it can be re-flashed and used to integrate my inverter into HA via ESPHome. But unfortunately, I do not have soldering skills. On the images that you provided I saw some pins on the PCB, would connecting the Dupont wires to them be enough to flash the new firmware? You also mentioned USB to TTL module, I'm guessing that's where I need to connect the wires from the PowMr PCB? Would any USB to TTL module work or I need to buy some specific one? Do you have any recommendations regarding that?

cristianoggi commented 2 months ago

I have made the changes to the packages/core-local.yaml file. I flashed using dtu-wbs1-v001-24v-example-local.yaml via USB-TTL but on ESPHome they are still unknown

cristianoggi commented 2 months ago

@lufton I have attached the logs of the flashed dtu. Thanks

https://github.com/user-attachments/files/16777478/logs_dtu-wbs1-v001-24v-example-local_logs.txt

lufton commented 2 months ago

@cristianoggi from the first glance it looks like your inverter is sending responses back: image Let me check further.

lufton commented 2 months ago

It looks like your packets are 4 bytes longer then expected ones... I will investigate and get back to you.

lufton commented 2 months ago

@cristianoggi, is your inverter 115v?

lufton commented 2 months ago

@cristianoggi, please continue conversation in separate thread #24

lufton commented 2 months ago

@lordlightman I have updated my component to be compatible with newer firmware versions (it looks like they have bigger packet size). You can try flashing dtu-wbs1-v001-24v-example.yaml without -local. Because local will use previous component implementation from you local folder. Or just update repo from upstream and then flash -local. Not sure that this is going to help though.

lordlightman commented 2 months ago

Hello @lufton. Thanks for the update, I'll give that a try. Although, it is unlikely that it will work for me, since I have an older version of this inverter. Judging by the serial number of @cristianoggi inverter, it was manufactured in May of 2024, whilst mine was made in April 2023. I purchased it on AliExpress 2023 Anniversary sale pretty much as soon as it became available.