Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
boards:esp8266 [2023/10/14 20:08]
darron [Tasmota]
boards:esp8266 [2023/10/15 13:31]
127.0.0.1 external edit
Line 142: Line 142:
  
 Although the ESP-01 only has 2 GPIOs, NodeMcu has I2C support and a circuit such as [[:projects:esp|this]] can extend its capabilities. Although the ESP-01 only has 2 GPIOs, NodeMcu has I2C support and a circuit such as [[:projects:esp|this]] can extend its capabilities.
- 
-=== Tasmota === 
- 
-Tasmota is firmware providing support for various devices attached to an ESP8266. It has both and HTTP (web) and MQTT interface. 
- 
-It was primarily designed for SONOFF power switches but can be used with any device to give an MQTT enabled WIFI temperature monitor, for example. 
- 
-Here is an example seession for a SONOFF basic switch. 
- 
-Backup factory firmware. 
- 
-<code> 
-esptool.py --port /dev/ttyUSB0 read_flash 0x00000 0x100000 image1M.bin 
-</code> 
- 
-Write tasmota firmware. 
- 
-<code> 
-esptool.py --port /dev/ttyUSB0 write_flash -fs detect -fm dout 0x0 sonoff-basic.bin 
-</code> 
- 
-Now an example session with the D1 Mini Lite. 
- 
-Read MAC address. 
- 
-<code> 
-esptool.py -p /dev/ttyUSB0 read_mac 
- 
-esptool.py v2.6-beta1 
-Serial port /dev/ttyUSB0 
-Connecting.... 
-Detecting chip type... ESP8266 
-Chip is ESP8285 
-Features: WiFi, Embedded Flash 
-MAC: xx:xx:xx:xx:xx:xx 
-Uploading stub... 
-Running stub... 
-Stub running... 
-MAC: xx:xx:xx:xx:xx:xx 
-Hard resetting via RTS pin... 
-</code> 
- 
-Backup flash. 
- 
-<code> 
-esptool.py -p /dev/ttyUSB0 -b 115200 read_flash 0 0x100000 FIRMWARE.BIN 
- 
-esptool.py v2.6-beta1 
-Serial port /dev/ttyUSB0 
-Connecting.... 
-Detecting chip type... ESP8266 
-Chip is ESP8285 
-Features: WiFi, Embedded Flash 
-MAC: xx:xx:xx:xx:xx:xx 
-Uploading stub... 
-Running stub... 
-Stub running... 
-1048576 (100 %) 
-1048576 (100 %) 
-Read 1048576 bytes at 0x0 in 92.8 seconds (90.4 kbit/s)... 
-Hard resetting via RTS pin... 
-</code> 
- 
-Erase flash. 
- 
-<code> 
-esptool.py --port /dev/ttyUSB0 erase_flash 
- 
-esptool.py v2.6-beta1 
-Serial port /dev/ttyUSB0 
-Connecting.... 
-Detecting chip type... ESP8266 
-Chip is ESP8285 
-Features: WiFi, Embedded Flash 
-MAC: xx:xx:xx:xx:xx:xx 
-Uploading stub... 
-Running stub... 
-Stub running... 
-Erasing flash (this may take a while)... 
-Chip erase completed successfully in 4.1s 
-Hard resetting via RTS pin... 
-</code> 
- 
-Write tasmota firmware. 
- 
-<code> 
-esptool.py --port /dev/ttyUSB0 write_flash -fs detect -fm dout 0x0 sonoff.bin 
- 
-esptool.py v2.6-beta1 
-Serial port /dev/ttyUSB0 
-Connecting.... 
-Detecting chip type... ESP8266 
-Chip is ESP8285 
-Features: WiFi, Embedded Flash 
-MAC: 60:01:94:b1:1b:ea 
-Uploading stub... 
-Running stub... 
-Stub running... 
-Configuring flash size... 
-Auto-detected Flash size: 1MB 
-Compressed 501424 bytes to 343631... 
-Wrote 501424 bytes (343631 compressed) at 0x00000000 in 30.3 seconds (effective 132.5 kbit/s)... 
-Hash of data verified. 
- 
-Leaving... 
-Hard resetting via RTS pin... 
-</code> 
- 
- 
-== Install == 
- 
-<code> 
-wget "https://ota.tasmota.com/tasmota/release/tasmota.bin.gz" 
-gunzip tasmota.bin.gz 
-</code> 
- 
-<code> 
-esptool.py --port /dev/ttyUSB0 write_flash -fs detect -fm dout 0x0 tasmota.bin 
-esptool.py v4.6.2 
-Serial port /dev/ttyUSB0 
-Connecting.... 
-Detecting chip type... Unsupported detection protocol, switching and trying again... 
-Connecting.... 
-Detecting chip type... ESP8266 
-Chip is ESP8285N08 
-Features: WiFi, Embedded Flash 
-Crystal is 26MHz 
-MAC: 60:01:94:b1:1b:ea 
-Uploading stub... 
-Running stub... 
-Stub running... 
-Configuring flash size... 
-Auto-detected Flash size: 1MB 
-Flash will be erased from 0x00000000 to 0x0009efff... 
-Compressed 649888 bytes to 463643... 
-Wrote 649888 bytes (463643 compressed) at 0x00000000 in 41.8 seconds (effective 124.4 kbit/s)... 
-Hash of data verified. 
- 
-Leaving... 
-Hard resetting via RTS pin... 
-</code> 
- 
-==Initial configuration== 
- 
-After target reboots connect to the tasmota Wifi AP to access the network configuration [[http://192.168.4.1/|page]]. 
- 
-Enter your SSID and password and the target will reboot. 
- 
-Once rebooted visit the target device again to perform device setup. 
  
 === Resources === === Resources ===
  
 [[http://www.nodemcu.com/index_en.html|NodeMcu home page]] [[http://www.nodemcu.com/index_en.html|NodeMcu home page]]
- 
-[[http://thehackbox.org/tasmota/release/|Tasmota]]