Hi! I'd like to create a guide for dummies (like me) on how to reflash Sonoff TH16 switch with SUPLA firmware, anyone can guide through this process?
1. So you have the switch itself, it's powered on and Wi-Fi LED is blinking with blue. The connection scheme is:
2. Get an FTDI USB converter board, I got this one
3. Solder four pin-connectors to the Sonoff board, and connect the FTDI connector like this:
Sonoff board <-> FTDI
[GND] <-> [GND]
[TX] <-> [RX]
[RX] <-> [TX]
[VCC] <-> [VCC]
Don't forget to set the FTDI to the 3.3V mode!
Don't forget to remove the 220V from the Sonoff module!
4. Obtain the flash-tool for your PC architecture
https://github.com/nodemcu/nodemcu-flas ... 32/Release
https://github.com/nodemcu/nodemcu-flas ... 64/Release
set the corresponding COM port and the settings on the Advanced tab:
BAUDRATE: 115200
Flash Size: 1MByte
Flash speed: 40Mhz
SPI Mode: QIO
5. On the Config tab, set the two files as the source and memory address for flashing:
boot_v1.5.bin -------->0x00000
sonoff_th16_user1.1024.new.2.bin---->0x01000
For Sonoff TH10 model choose sonoff_th10_user1.1024.new.2.bin---->0x01000
6. On the Operation tab, set the correct COM port of your FTDI converter board.
7. Press and hold the button on the TH16, then connect the USB with your FTDI board. Click Flash, you should see the AP MAC and STA MAC values of your TH16 board, click Flash again, and the flashing process begins. (See this video to get a glue on this process...)
8. Once the flashing is complete, disconnect the TH16, and connect it to the 220V outlet. You should see the wi-fi AP called SUPLA-ESP8266********* nearby. Connect to it via http://192.168.4.1 address and configure what wireless network it should use. Click save, and recycle the 220V power. Now if it was connected to your wi-fi network correctly, you should see your sensor in your Supla Cloud account.
SONOFF TH16 smart switch with SUPLA firmware HOWTO
I will build for you dedicated firmware but I need some time. I'm little bit busy now.
ftdi converter
thanks, pzygmunt. So, finally I've got the converter as on the picture above, installed it as a COM port. I guess I should switch it to the 3.3V mode, and connect somehow to the TH16 plate? How exactly? I see only 4 holes GND**VCC on TH16. By the way, can I use ESP8266Flasher utility for flashing?
Give me some more time. I'm waiting for my Sonoff THT device. When I receive it, I will prepare firmware and user manual for you.
You have to wait a few days for dedicated firmware