TheEebb / tasmota-tuyamcu-fix

Tasmota Tuya MCU Fix Fork For Testing Only
GNU General Public License v3.0
12 stars 3 forks source link

Trying to understand what you changed #2

Open MattW2 opened 3 years ago

MattW2 commented 3 years ago

Hi @TheEebb

Thanks for all the hard work you put into this. I've been running this on 2 of my Feit Dimmers for a few days without a failure to respond after many many failures running ESPHome.

Since your commit was the entire source code of Tasmota I'm having a really hard time understanding what is it you changed that fixed the communication lockup. Any chance you can help point me to the section that was modified to better understand what was done to fix this?

There is a separate effort to fix this as part of ESPHome tuya: Use queue for sending command messages and it would be great to see if the two solutions are similar.

TheEebb commented 3 years ago

The fix for the Feit dimmer is as follows:

That's basically it. I haven't had time to merge my work with mainline since I added too much to it. My implementation is extensible for other Tuya devices-- potential future proofing. But I doesn't look like that will happen since Tuya is branching out to SoCs that are currently not supported by Tasmota.

EDIT: I want to clarify start of communication means when the device is reset/initialized and begins first communication with the MCU. Basically any time a known state between Tuya and MCU has not been established.

beren12 commented 3 years ago

I'm trying to make a diff from the original tasmota source to see what exactly changed, do you have this tarball around still? 9.3.1 has some tuya fixes but it's still not perfect so I want to see if they will look at your work, but they want a pull request.

beren12 commented 3 years ago

To answer my own question… looks like https://github.com/arendst/Tasmota/commit/18639730f0c0641c2edbeaec4a24f5ceb2dc204a was the checkout.