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

Ultrabrite branded Tuya smart plug

Open
#802 13 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
5.1k
Forks
523
PR merge metrics
No merged PRs in 30d

Description

Hi, I recently bought an Ultrabrite branded Tuya smart plug - which definitely has some ESP thing inside of it (see board shots). I can't seem to get tuya-convert to flash. I've tried both on my desktop and a Raspberry pi 3b+ so I don't think it's wifi related - it seems as if the plug doesn't recognise the smartconfig bytes being sent to it - since the next step in the code is to ping the device continuously until it replies.

Board pics: https://imgur.com/a/fpGSPLq
First set of logs: https://pastebin.com/BafY6ki8
Main module: 1.1.0
MCU module: 1.1.0

Here is an attempt I did to get clean logs to share.
1. The plug is connected and works via the Ultrabrite app.
2. I run ./start-flash.sh with sudo
3. Dnsmasq is terminated
4. Mosquitto is terminated
5. I connect my Huawei p30 to the vtrust-flash network
6. I hold the power button on my plug for 5 seconds, which causes the green LED to blink rapidly
7. I press enter on the warning
8. The plug goes solid green after the first set of SmartConfig bytes gets sent, but the tool continually retries - I suppose because the plug isn't connecting to the AP.
9. Device did not appear with the intermediate firmwareurl
10. I export the logs (see the first set of logs!)
11. I say no to the flashing another device
12. I start ./start-flash.sh with sudo again
13. systemd-resolve is terminated
14. I do NOT put the plug into config mode nor do I connect my phone to the AP
15. I press enter to continue
16. Once again, connection fails.
17. I export the logs - if you want these let me know!
18. I say no to the reflash question again.

Any idea what might be wrong? I really don't want to try to solder to this board - it's super awkward in there!

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.