Dies ist eine alte Version des Dokuments!


TASMOTA über Tuya OTA flashen

Vorgehensweise

Die MicroSD-Karte in einen Rasberry Pi 2/3 stecken, diesen per Ethernat-Kabel an das lokale Netzwerk anschließen und starten.
Danach die Netzwerk-Adresse ausfindig machen (z.B. Fritzbox) oder Bildschirm Ausgabe und per SSH verbinden. User: pi Password: raspberry
Nach dem Login erfolg folgende Ausgabe mit einer Kurzanleitung:

+-------------------------------------------------------------------+
| To flash TASMOTA OTA (over the air) do the following steps:       |
|                                                                   |
| sudo -i                                                           |
| cd  /opt/tuya-convert                                             |
| ./start_flash.sh                                                  |
|                                                                   |
| - press multiple time "y" until the AP-Mode starts in a screen    |
| - connect your smartphone to "vtrust-flash" wifi network          |
| - insert the plug into a power-socket and press 5 sec the button  |
| - when the LED blinks fast, press ENTER on the keyboard           |
| - wait until the interim firmware has been installed              |
| - choose no. "2" for TASMOTA firmware to flash                    |
| - HAVE FUN WITH TASMOTA                                           |
+-------------------------------------------------------------------+
May the force be with you!

Hier der Ablauf nochmal dargestellt:

cd  /opt/tuya-convert
./start_flash.sh   

Ausgaben:

tuya-convert v2.4.4
Checking for network interface wlan0... Found.
Checking UDP port 53... Available.
Checking UDP port 67... Available.
Checking TCP port 80... Available.
Checking TCP port 443... Available.
Checking UDP port 6666... Available.
Checking UDP port 6667... Available.
Checking TCP port 1883... Occupied by mosquitto with PID 434.
Port 1883 is needed to run MQTT
Do you wish to terminate mosquitto? [y/N] y

Attempting to stop mosquitto.service
Checking TCP port 8886... Available.
======================================================
  Starting AP in a screen.
  Starting web server in a screen
  Starting Mosquitto in a screen
  Starting PSK frontend in a screen
  Starting Tuya Discovery in a screen

======================================================

IMPORTANT
1. Connect any other device (a smartphone or something) to the WIFI vtrust-flash
   This step is IMPORTANT otherwise the smartconfig may 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
   Make sure nothing else is plugged into your IoT device while attempting to flash.
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 1s. ................................................................................................
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  58484      0  0:00:17  0:00:17 --:--:-- 28629
curl: Saved to filename 'firmware-34e581.bin'
======================================================
Getting Info from IoT-device
VTRUST-FLASH 1.5
(c) VTRUST GMBH https://www.vtrust.de/35c3/
READ FLASH: http://10.42.42.42/backup
ChipID: 34e581
MAC: 24:62:AB:34:E5:81
BootVersion: 7
BootMode: normal
FlashMode: 1M DOUT @ 40MHz
FlashChipId: 144051
FlashChipRealSize: 1024K
Active Userspace: user2 0x81000
======================================================
Ready to flash third party firmware!

For your convenience, the following firmware images are already included in this repository:
  Tasmota v8.1.0.2 (wifiman)
  ESPurna 1.13.5 (base)

You can also provide your own image by placing it in the /files directory
Please ensure the firmware fits the device and includes the bootloader
MAXIMUM SIZE IS 512KB

Available options:
  0) return to stock
  1) flash espurna.bin
  2) flash tasmota.bin
  q) quit; do nothing
Please select 0-2: 2
Are you sure you want to flash tasmota.bin? This is the point of no return [y/N] y
Attempting to flash tasmota.bin, this may take a few seconds...
Flashed http://10.42.42.1/files/tasmota.bin successfully in 14063ms, rebooting...
Look for a tasmota-xxxx SSID to which you can connect and configure
Be sure to configure your device for proper function!

HAVE FUN!
======================================================
Do you want to flash another device? [y/N] n
======================================================
Cleaning up...
Closing AP
Exiting...

Navigation
Eigene Werkzeuge