tuya-convert icon indicating copy to clipboard operation
tuya-convert copied to clipboard

Cannot flash Topgreener TGWF115APM

Open ipher opened this issue 2 years ago • 8 comments

Topgreener TGWF115APM, device is printed with "1810Ver1.0.1" on it. Using a Raspberry Pi 3B V1.2 to flash

There seems to be a fault in smarthack-psk.log

edit: cracked it open and here's the markings on the chip. PN - TYWE2S Code: TWF15PM

Console.txt smarthack-mqtt.log smarthack-psk.log smarthack-udp.log smarthack-web.log smarthack-wifi.log

ipher avatar Jul 31 '22 19:07 ipher

I am experiencing the exact same issue attempting to flash TopGreener Smart Plug: TGWF115APM. I also have the same version 1810 Ver 1.0.1 printed on the device. I am using a Rasberry Pi 4 running the tuya converter using docker. But seeing the same issue with smartconfig procedure looping with no success.

Lazymin3r avatar Aug 09 '22 13:08 Lazymin3r

Same here though I have a 1906Ver1.0.1 but the wifi chip has the same markings. That device was running using the official app for few months so maybe it got a firmware update that prevent re-flashing...

console.txt smarthack-mqtt.log smarthack-psk.log smarthack-udp.log smarthack-web.log smarthack-wifi.log

ebrien avatar Aug 23 '22 22:08 ebrien

I tried an unused one that I bought a year or so ago, that had never been connected to the app, and it didn't work either. Since it was never connected to wifi or the app I don't think it was a recent update that prevents this

ipher avatar Aug 27 '22 17:08 ipher

Hi, I´m not sure this is the same issue I had - but in my case I really tried everything I could think of with no success.

In the end this modified procedure allowed me to flash my devices: https://github.com/ct-Open-Source/tuya-convert/pull/966#issuecomment-1213645782

Regards - MacSass

MacSass avatar Aug 27 '22 18:08 MacSass

I'm able to connect to the vtrust-flash SSID from the 2nd computer (Android tablet) and I can see that my TopGreener device also connects to it. If I follow the procedure and put the device in Pairing Mode after the SSID is available, Tuya-Convert complete the "SmartConfig" and then time out.

tuya-convert v2.4.5
Checking for network interface wlan0... Found.
Checking UDP port 53... Available.

### Removed the lines for simpliciy ###

3. Press ENTER to continue


======================================================
Starting smart config pairing procedure
Waiting for the device to install the intermediate firmware
Put device in EZ config mode (blinking fast)
Sending SSID                  vtrust-flash
Sending wifiPassword          
Sending token                 00000000
Sending secret                0101
................
SmartConfig complete.
Auto retry in 3s. ..................................................................................................................
Timed out while waiting for the device to (re)connect

When I put the device in pairing mode before starting tuya-convert here is what it happens:

tuya-convert v2.4.5
Checking for network interface wlan0... Found.
Checking UDP port 53... Available.

### Removed the lines for simpliciy ###

3. Press ENTER to continue


======================================================
Starting smart config pairing procedure
Waiting for the device to install the intermediate firmware
Put device in EZ config mode (blinking fast)
Sending SSID                  vtrust-flash
Sending wifiPassword          
Sending token                 00000000
Sending secret                0101
...............
SmartConfig complete.
Resending SmartConfig Packets
.................
SmartConfig complete.
Resending SmartConfig Packets
..................
SmartConfig complete.
Resending SmartConfig Packets
..................
SmartConfig complete.
Resending SmartConfig Packets
................
SmartConfig complete.
Resending SmartConfig Packets
.................
SmartConfig complete.
Resending SmartConfig Packets
.................
SmartConfig complete.
Resending SmartConfig Packets
................
SmartConfig complete.
Resending SmartConfig Packets
....................................
Timed out while waiting for the device to (re)connect

ebrien avatar Aug 29 '22 18:08 ebrien

I had exactly the same issue for 3 of my 5 devices ... With the apconfig.py script listed on the comment linked above and a manual connect to the device in AP mode it worked perfectly. Somehow forcing the device to reconnect to the AP seems flawed and unreliable. Using the procedure listed above make the process way more robust, obviously.

MacSass avatar Aug 29 '22 19:08 MacSass

where can i get appconfig.py? I don't see it in tuya-convert folders

floxboy avatar Sep 05 '22 09:09 floxboy

Hi, appconfig.py is not yet part of the official tuya-convert. If you check the comment mentioned above: https://github.com/ct-Open-Source/tuya-convert/pull/966#issuecomment-1213645782 you can find it in the commits: https://github.com/ct-Open-Source/tuya-convert/pull/966/commits/9d1d35bb6c195fb82ce96c287696bb85a00467d6

Good luck, it worked perfectly for my devices that I had not been able to flash for weeks trying everything I could think of!

MacSass avatar Sep 05 '22 16:09 MacSass