Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pi@raspberrypi:~/tuya-convert $ date
- Thu 3 Oct 18:47:09 AEST 2019
- pi@raspberrypi:~/tuya-convert $ lsb_release -a
- No LSB modules are available.
- Distributor ID: Raspbian
- Description: Raspbian GNU/Linux 10 (buster)
- Release: 10
- Codename: buster
- pi@raspberrypi:~/tuya-convert $ ./start_flash.sh
- ~/tuya-convert/scripts ~/tuya-convert
- ======================================================
- TUYA-CONVERT
- https://github.com/ct-Open-Source/tuya-convert
- TUYA-CONVERT was developed by Michael Steigerwald from the IT security company VTRUST (https://www.vtrust.de/) in collaboration with the techjournalists Merlin Schumacher, Pina Merkert, Andrijan Moecker and Jan Mahn at c't Magazine. (https://www.ct.de/)
- ======================================================
- PLEASE READ THIS CAREFULLY!
- ======================================================
- TUYA-CONVERT creates a fake update server environment for ESP8266/85 based tuya devices. It enables you to backup your devices firmware and upload an alternative one (e.g. ESPEasy, Tasmota, Espurna) without the need to open the device and solder a serial connection (OTA, Over-the-air).
- Please make sure that you understand the consequences of flashing an alternative firmware, since you might lose functionality!
- Flashing an alternative firmware can cause unexpected device behavior and/or render the device unusable. Be aware that you do use this software at YOUR OWN RISK! Please acknowledge that VTRUST and c't Magazine (or Heise Medien GmbH & Co. KG) CAN NOT be held accountable for ANY DAMAGE or LOSS OF FUNCTIONALITY by typing yes + Enter
- yes
- ======================================================
- Starting AP in a screen
- Stopping any apache web server
- Starting web server in a screen
- Starting Mosquitto in a screen
- Starting PSK frontend in a screen
- ======================================================
- IMPORTANT
- 1. Connect any other device (a smartphone or something) to the WIFI vtrust-flash
- The wpa-password is flashmeifyoucan
- This step is IMPORTANT otherwise the smartconfig will not work!
- 2. Put your IoT device in autoconfig/smartconfig/pairing mode (LED will blink fast). This is usually done by pressing and holding the primary button of the device
- 3. Press ENTER to continue
- ======================================================
- Starting pairing procedure in screen
- RTNETLINK answers: File exists
- ~/tuya-convert
- Waiting for the upgraded device to appear
- If this does not work have a look at the '*.log'-files in the 'scripts' subfolder!
- ....................................................................
- IoT-device is online with ip 10.42.42.42
- Fetching firmware backup
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 1024k 100 1024k 0 0 30311 0 0:00:34 0:00:34 --:--:-- 28909
- curl: Saved to filename 'firmware-a6b657.bin'
- ======================================================
- Getting Info from IoT-device
- VTRUST-FLASH 1.1
- (c) VTRUST GMBH https://www.vtrust.de/35c3/
- READ FLASH: http://10.42.42.42/backup
- ChipID: a6b657
- MAC: C4:4F:33:A6:B6:57
- BootVersion: 7
- BootMode: normal
- FlashMode: 1M DOUT @ 40MHz
- FlashChipId: 144051
- FlashChipRealSize: 1024K
- Active Userspace: user2 0x81000
- ======================================================
- Please make sure to note the correct SPI flash mode!
- Installing an alternative firmware with the wrong flash mode will leave the ESP unable to boot!
- Next steps:
- 1. To go back to the orginal software
- # curl http://10.42.42.42/undo
- 2. Be sure the conversion software runs in user2
- # curl http://10.42.42.42/flash2
- 3. Flash a third party firmware to the device
- BE SURE THE FIRMWARE FITS THE DEVICE AND USES THE CORRECT FLASH MODE!
- MAXIMUM SIZE IS 512KB
- put or link it to ./files/thirdparty.bin
- A basic build of Sonoff-Tasmota v6.5.0 is already included in this repository.
- # curl http://10.42.42.42/flash3
- Alternatively let the device download and flash a file via HTTP:
- # curl http://10.42.42.42/flash3?url=http://10.42.42.1/files/thirdparty.bin
- HAVE FUN!
- pi@raspberrypi:~/tuya-convert $ curl http://10.42.42.42/flash3
- Device should flash http://10.42.42.1/files/thirdparty.bin and restart
Add Comment
Please, Sign In to add comment