SONOFF TH16 smart switch with SUPLA firmware HOWTO

Ge0rge
Posts: 17
Joined: Tue Sep 20, 2016 8:18 am

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:

Image

2. Get an FTDI USB converter board, I got this one

Image

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.
Last edited by Ge0rge on Fri Feb 17, 2017 11:36 am, edited 9 times in total.
User avatar
pzygmunt
Posts: 18284
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

I will build for you dedicated firmware but I need some time. I'm little bit busy now.
Ge0rge
Posts: 17
Joined: Tue Sep 20, 2016 8:18 am

thank you, pzygmunt! Is there any need for me to get any extra hardware to do the reflash then?
User avatar
pzygmunt
Posts: 18284
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

ftdi converter
Ge0rge
Posts: 17
Joined: Tue Sep 20, 2016 8:18 am

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?
User avatar
pzygmunt
Posts: 18284
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

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.
Ge0rge
Posts: 17
Joined: Tue Sep 20, 2016 8:18 am

Oh, sure, not a problem!
Ge0rge
Posts: 17
Joined: Tue Sep 20, 2016 8:18 am

pzygmunt, will I brick the TH16 if I use sonoff_eagle.flash.bin firmware? Or this is just a sensors support difference?
User avatar
pzygmunt
Posts: 18284
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

You have to wait a few days for dedicated firmware
Ge0rge
Posts: 17
Joined: Tue Sep 20, 2016 8:18 am

Great, thank you!
Post Reply

Return to “Help”