Shelly: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
Zeile 12: Zeile 12:
 
==Write Tasmota Firmware==
 
==Write Tasmota Firmware==
 
*esptool.py --port /dev/cu.usbserial-1420 write_flash -fs 8m 0x00000  ./sonoff.bin
 
*esptool.py --port /dev/cu.usbserial-1420 write_flash -fs 8m 0x00000  ./sonoff.bin
 +
 +
<pre>
 +
2007  source py3/bin/activate
 +
2008  source esptoolenv/bin/activate
 +
2009  cd shelly/
 +
2010  esptool.py --port /dev/ttyUSB0 read_flash 0x00000 0x100000 shelly1_backup_01.bin
 +
2011  esptool.py --port /dev/ttyUSB1 read_flash 0x00000 0x100000 shelly1_backup_01.bin
 +
2012  sudo dmesg
 +
2013  esptool.py --port /dev/ttyUSB0 read_flash 0x00000 0x100000 shelly1_backup_01.bin
 +
2014  ls
 +
2015  cd ..
 +
2016  ls
 +
2017  ls -lrt
 +
2018  mv tasmota.bin shelly/
 +
2019  cd shelly/
 +
2020  history
 +
2021  esptool.py --port /dev/ttyUSB0 write_flash 0 tasmota.bin
 +
2022  sudo dmesg
 +
2023  esptool.py --port /dev/ttyUSB0 write_flash 0 tasmota.bin
 +
2024  ls -l
 +
2025  ls -l /dev/ttyUSB0
 +
2026  esptool.py --port /dev/ttyUSB0 write_flash 0 tasmota.bin
 +
2027  pyserial-miniterm /dev/ttyUSB0 115200
 +
2028  history
 +
</pre>
 +
 
==Quellen==
 
==Quellen==
 
*https://gist.github.com/aschuma/0bad53dc8698e163361eeba389e557a3
 
*https://gist.github.com/aschuma/0bad53dc8698e163361eeba389e557a3

Aktuelle Version vom 2. April 2024, 15:37 Uhr

Shelly1 Tasmota Flashing

Prepare Python Env

  • virtualenv py3 -p $(which python3)
  • source py3/bin/activate
  • pip install esptool

Download Firmware

Backup Shelly Firmware

  • esptool.py --port /dev/cu.usbserial-1420 read_flash 0x00000 0x100000 shelly1_backup_01.bin

Erase Shelly Firmware

  • esptool.py --port /dev/cu.usbserial-1420 erase_flash

Write Tasmota Firmware

  • esptool.py --port /dev/cu.usbserial-1420 write_flash -fs 8m 0x00000 ./sonoff.bin
 2007  source py3/bin/activate
 2008  source esptoolenv/bin/activate
 2009  cd shelly/
 2010  esptool.py --port /dev/ttyUSB0 read_flash 0x00000 0x100000 shelly1_backup_01.bin
 2011  esptool.py --port /dev/ttyUSB1 read_flash 0x00000 0x100000 shelly1_backup_01.bin
 2012  sudo dmesg
 2013  esptool.py --port /dev/ttyUSB0 read_flash 0x00000 0x100000 shelly1_backup_01.bin
 2014  ls
 2015  cd ..
 2016  ls
 2017  ls -lrt
 2018  mv tasmota.bin shelly/
 2019  cd shelly/
 2020  history 
 2021  esptool.py --port /dev/ttyUSB0 write_flash 0 tasmota.bin 
 2022  sudo dmesg
 2023  esptool.py --port /dev/ttyUSB0 write_flash 0 tasmota.bin 
 2024  ls -l
 2025  ls -l /dev/ttyUSB0 
 2026  esptool.py --port /dev/ttyUSB0 write_flash 0 tasmota.bin 
 2027  pyserial-miniterm /dev/ttyUSB0 115200
 2028  history 

Quellen

Shelly1.png

Shelly2.png

Shelly3.png

Shelly4.png