ct-Open-Source / ct-Open-Source/tuya-convert

Stuck flashing Teckin SP20

Open
#650 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5.1k
Forks
523
PR merge metrics
No merged PRs in 30d

Description

**DEVICE:** Teckin SP20
**FIRMWARE VERSION:** Didn't think to check before I started flashing- can't connect to Smart Life app anymore to check.

I'm using a Linux Mint 19.3 live distribution on an HP laptop to run Tuya Convert. At first I was using the built-in laptop wifi adapter but could never see the vtrust-flash SSID and start_flash.sh never seemed to do anything.

You can see some representative shell output from one of these attempts in the attached **NoSSID_ShellOutput.txt** file.

After searching for ideas, I tried using an old Netgear WN111V2 USB wifi adapter I have laying around. Then I could see the vtrust-flash SSID and could connect to it with my Android phone.

The first time I ran start_flash.sh while I could see the vtrust-flash SSID I got the following shell output before :
```

SmartConfig complete.
Resending SmartConfig Packets
...../start_flash.sh: line 129: 16286 Terminated ./smartconfig/main.py
...................................................................^C....^C.^C.^C.^C.^C.^C.^C.^C.^C.^C.^C.^C.^C.................Device did not appear with the intermediate firmware
Check the *.log files in the scripts folder

```
You can see the full shell output in **FirstTry_ShellOutput.txt**

After this, the smart plug didn't behave normally anymore. When I plug it in, I only get a brief red/blue flash. Holding the button while plugging it into power didn't do anything. Pressing or holding the button after plugging it in didn't do anything. Pressing the button no longer results in the mechanical relay toggling. I figured I bricked it.

After some more searching and reading, it sounded like it was worth plugging it in and trying again.

So I tried again and now it seems like it connects to the smart plug and starts trying to fetch a firmware backup before a similar looking error. Then it gets stuck in what looks like a firmware backup progress display until it times out or I exit. Here's the shell output:

```
IoT-device is online with ip 10.42.42.42
Stopping smart config
Fetching firmware backup
./start_flash.sh: line 129: 19644 Terminated ./smartconfig/main.py
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 1024k 0 4380 0 0 51 0 5:42:40 0:01:25 5:41:15 0^C======================================================
Cleaning up...
Closing AP
Exiting...
```

You can see full shell output in **SecondTry_ShellOutput.txt**

I'm also attaching the logs after the last failures.

Any ideas?

[smarthack-mqtt.log](https://github.com/ct-Open-Source/tuya-convert/files/4704943/smarthack-mqtt.log)
[smarthack-psk.log](https://github.com/ct-Open-Source/tuya-convert/files/4704944/smarthack-psk.log)
[smarthack-udp.log](https://github.com/ct-Open-Source/tuya-convert/files/4704945/smarthack-udp.log)
[smarthack-web.log](https://github.com/ct-Open-Source/tuya-convert/files/4704946/smarthack-web.log)
[smarthack-wifi.log](https://github.com/ct-Open-Source/tuya-convert/files/4704947/smarthack-wifi.log)

[FirstTry_ShellOutput.txt](https://github.com/ct-Open-Source/tuya-convert/files/4704940/FirstTry_ShellOutput.txt)
[NoSSID_ShellOutput.txt](https://github.com/ct-Open-Source/tuya-convert/files/4704941/NoSSID_ShellOutput.txt)
[SecondTry_ShellOutput.txt](https://github.com/ct-Open-Source/tuya-convert/files/4704942/SecondTry_ShellOutput.txt)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.