ct-Open-Source / tuya-convert

A collection of scripts to flash Tuya IoT devices to alternative firmwares
MIT License
4.61k stars 497 forks source link

Can't Flash Aoycocr X5P Plug #871

Open spikex opened 3 years ago

spikex commented 3 years ago

Purchased from Amazon 12/2020. Previously known to work per the Wiki.

The plug requests the token but never requests the firmware. This looks like the 02 issue, the LED stops blinking quickly, but the ID starts with 01 and there's no PSK error. I've tried the master and development branches.

The hardware could have changed, there's no nondestructive way to open the plugs, but the MAC address is right for an ESP8266 and the user agent reports SP8266SDK.

Any thoughts on what to try?

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

edwardhughes commented 3 years ago

I can confirm this issue exactly as described by OP. I received a four pack of these switches from Amazon today (12/20). I am using the same hardware that was used in December 2019 to flash these same plugs, also from Amazon.

colinodell commented 3 years ago

I was unable to flash the same device purchased from Amazon this month. Log files from a fresh attempt via docker-compose: https://gist.github.com/colinodell/1578307a6fb67390bd230f7e3384cc5b

I'm able to get the device LED flashing blue as needed, but within a few seconds of attempting to flash the light turns off.

colinodell commented 3 years ago

Although I was not able to get it working via docker-compose on my laptop, I was able to flash it successfully using a Raspberry Pi 4. It's entirely possible the issue was something with my laptop's configuration.

kueblc commented 3 years ago

@colinodell this was your issue: https://gist.github.com/colinodell/1578307a6fb67390bd230f7e3384cc5b#file-smarthack-web-log

Could not start server on port 80
Close the process on this port and try again