Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot flash Topgreener TGWF115APM #1057

Open
ipher opened this issue Jul 31, 2022 · 8 comments
Open

Cannot flash Topgreener TGWF115APM #1057

ipher opened this issue Jul 31, 2022 · 8 comments

Comments

@ipher
Copy link

ipher commented Jul 31, 2022

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

@Lazymin3r
Copy link

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.

@ebrien
Copy link

ebrien commented Aug 23, 2022

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

@ipher
Copy link
Author

ipher commented Aug 27, 2022

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

@MacSass
Copy link

MacSass commented Aug 27, 2022

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:
#966 (comment)

Regards - MacSass

@ebrien
Copy link

ebrien commented Aug 29, 2022

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

@MacSass
Copy link

MacSass commented Aug 29, 2022

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.

@floxboy
Copy link

floxboy commented Sep 5, 2022

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

@MacSass
Copy link

MacSass commented Sep 5, 2022

Hi,
appconfig.py is not yet part of the official tuya-convert.
If you check the comment mentioned above: #966 (comment) you can find it in the commits:
9d1d35b

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants