Follow the tutorial on pin soldering on https://github.com/arendst/Sonoff-Tasmota/wiki/Sonoff-S26-Smart-Socket
You'll need a FTDI TTL-232R-3V3 - USB cable for futher operations
(https://github.com/espressif/esptool)
[Install python 3.7.x if you have not already]
#In a cmd shell :
pip install esptool
Esptool uses the serial interface to communicate with your device. On Windows these interfaces are named COM1, COM2 etc. On Linux these interfaces are called /dev/ttyUSB0, /dev/ttyUSB1 etc.
Before using Esptool make sure you know to which serial interface name your device is connected to.
In the following commands I use COM37 as an example.
The blue LED should NOT be blinking when in Flash mode.
Backup the current firmware with the following command:
esptool.py --port COM37 read_flash 0x00000 0x100000 original_sonoff_s26_1M.bin
esptool.py v2.6
Serial port COM37
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: 84:f3:eb:93:d5:ce
Uploading stub...
Running stub...
Stub running...
1048576 (100 %)
1048576 (100 %)
Read 1048576 bytes at 0x0 in 99.7 seconds (84.2 kbit/s)...
Hard resetting via RTS pin...
NOTE: When the command completes the device is out of firmware upload mode!
esptool.py --port COM37 erase_flash
esptool.py v2.6
Serial port COM37
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: 84:f3:eb:93:d5:ce
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
Chip erase completed successfully in 0.0s
NOTE1: When the command completes the device is out of firmware upload mode!
Load the downloaded Tasmota firmware file sonoff.bin with the following command:
Copy sonoff.bin to esptool.py directory (as example : C:\Program Files (x86)\Python37-32\Lib\site-packages)
esptool.py --port COM37 write_flash -fs 1MB -fm dout 0x0 sonoff.bin
esptool.py v2.6
Serial port COM37
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: 84:f3:eb:93:d5:ce
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Compressed 534032 bytes to 365310...
Wrote 534032 bytes (365310 compressed) at 0x00000000 in 34.1 seconds (effective
125.3 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
NOTE1: When the command completes the device is out of firmware upload mode!
NOTE2: For a proper device initialization after first firmware upload power down and power up the device.
(https://github.com/arendst/Sonoff-Tasmota/wiki/Button-Usage)
4 short presses: Start Wifi manager providing an Access Point with IP address 192.168.4.1 and a web server allowing the configuration of Wifi.
The LED will blink during the config period.
A single button press during this period will abort and restart sonoff.
Connect to the wifi sonoff-xxxx and browse http://192.168.4.1 and enter your router wifi ssid and password
Connect to your router wifi and retrieve ip from connected devices (or use zenmap)
Browse to http://your_device_ip