How to set the flash mode in the devices Sonoff

4 minutes of reading
AIMS OF THE GUIDE
CONCEPTS FACED:
  • Software compilation
SOFTWARE COMPONENTS USED:
  • none
Prerequisites
PHYSICAL DEVICES USED:
  • A computer with a USB port
GUIDE more indicated for:

All environments

Notes and disclaimer
  • qualsiasi eventuale modifica agli impianti domestici dev'essere progettata ed realizzata SOLO da personale qualificato;
  • any changes implemented in probefore is a propersonal responsibility as well as a profirst risk and danger (the contents of the present page are purely educational);
  • any changes implemented in proprior to a device it voids the guarantee, quality approvals and certifications.
Driving review: 1.2

CAUTION: this guide is part of MasterGuide inDomus dedicated to riprodevice weighting based on ESP8266 SOC.

Abstract

The "flash" mode (o flash mode) is the mode in which theESP8266 (the system-on-a-chip at the base of the devices of the line ITEAD Sonoff "Smart Home”) prepares itself to accept a new firmware, or to allow the reading of the pre-existing firmware, or delete it.

To send an ESP8266 to "flash" mode it is usually necessary, when powering it, short-circuit two of your contacts, the GPIO0 and the GND. Usually to feed and read / write data an adapter is used to and from an ESP8266 USB / TTL.

USB / TTL FTDI

This device has one side a standard USB connection; on the other, four contacts which rappresent:

  • a positive pole + 3,3v (VDD) - (no + 5v: if a voltage selector is present on the USB / TLL, ascertain that is set to 3,3v);
  • a negative ground pole (GND);
  • TX (or TXD);
  • RX (or RXD).

These contacts must be connected on the board of the device to reprogramming, taking care to connect the positive and negative pole with the correspondents on the board, while TX and RX must be connected with their duals, or TX with RX e RX with TX (mistake this step is one of the most classic mistakes when prosee the reportproprogramming).

The two poles + and - serve to feed the board, while TX and RX are needed to send / receive data in phase of proprogramming.

To do this it is usually necessary to connect with each other two specific points on the board: the point named GPIO0 and the contact used also in connection with theUSB / TTL named GRN (ground, earth). These two points must be put in contact with each other while connecting the USB / TTL to the USB port, after which they must be disconnected.

To recap, to send an ESP8266 in "flash" mode proordinary procedure provides for:

  • connect the USB / TTL to the board;
  • connect GPIO0 and GND;
  • connect the USB port of the USB to the USB port of the computer;
  • remove the connection between GPIO0 and GND.

At this point the device will be in "flash" mode.

La procedura can be complicated, but often comes to our aid the nature of the device itself. Some, in fact, instead of forcing us to look for the GPIO0 and find ways to connect it with a wire to the GND, offer us specific solutions.

We see the differences from device to device.

models

Sonoff Basic

To activate the Sonoff Basic in flash modeprocedura is the following:

  • connect the USB / TTL adapter to the board (as explained in the abstract);
  • keep the button pressed ("Program button ”);
  • connect the cable to the computer's USB port;
  • release the button (not before a second).

Sonoff Basic - contacts

Sonoff RF

To activate the Sonoff RF in flash modeprocedura is the following:

  • connect the USB / TTL adapter to the board (as explained in the abstract);
  • keep the button pressed ("Program button ”);
  • connect the cable to the computer's USB port;
  • release the button (not before a second).

Sonoff Basic RF - contacts

Sonoff TH

To activate the Sonoff TH in flash modeprocedura is the following:

  • connect the USB / TTL adapter to the board (as explained in the abstract);
  • keep the button pressed ("Program button ”);
  • connect the cable to the computer's USB port;
  • release the button (not before a second).

Sonoff TH - contacts

Sonoff POW

To activate the Sonoff POW in flash modeprocedura is the following:

  • connect the USB / TTL adapter to the board (as explained in the abstract);
  • keep the button pressed ("Program button ”);
  • connect the cable to the computer's USB port;
  • release the button (not before a second).

Sonoff POW - contacts

Sonoff dual

To activate the Sonoff Dual in flash modeprocedura is the following:

  • connect the USB / TTL adapter to the board (as explained in the abstract);
  • keep the button pressed ("Program button ”) or short-circuit Button 0 with GND;
  • connect the cable to the computer's USB port;
  • release the button (not before a second).

Sonof Dual - contacts

If it is done hardware modification in clean contact, send the device in flash mode in addition to the classic 0 / GND Button jumper, a second will be positioned between Button 1 / GND.

Sonoff 4ch

To activate the Sonoff 4ch in flash modeprocedura is the following:

  • connect the USB / TTL adapter to the board (as explained in the abstract);
  • keep the FW / IO0 button pressed;
  • connect the cable to the computer's USB port;
  • release the button (not before a second).

Sonoff 4ch PRO

To activate the Sonoff 4ch PRO in flash modeprocedura is the following:

  • connect the USB / TTL adapter to the board (as explained in the abstract);
  • manually connect the GPIO0 and GND contacts;
  • connect the cable to the computer's USB port;
  • disconnect the GPIO0 and GND contacts (not before a second).

Sonoff 4ch PRO - Contacts

Sonoff 4CH flash mode

Sonoff RF Bridge 433

To activate the Sonoff RF Bridge 433 in flash modeprocedura is the following:

  • connect the USB / TTL adapter to the board (as explained in the abstract);
  • set the switch on the board to "OFF"
  • press and hold the button pairing;
  • connect the cable to the computer's USB port;
  • release the button pairing.

Then:

  • carry out the proprogramming;
  • disconnect the USB / TTL and reset the switch to "ON".

Sonoff  RF  Bridge 433 - ContactsSonoff touch

Touch models may differ, but to activate the "flash" modeprocedura is always the following:

  • connect the USB / TTL adapter to the board (as explained in the abstract);
  • manually connect the GPIO0 and GND contacts;
  • connect the cable to the computer's USB port;
  • disconnect the GPIO0 and GND contacts (not before a second).

Sonoff Touch - Contacts

Sonoff T1

To activate the Sonoff T1 in "flash" modeprocedura is the following:

  • connect the USB / TTL adapter to the board (as explained in the abstract);
  • manually connect the R19 and GND contacts;
  • connect the cable to the computer's USB port;
  • disconnect the R19 and GND contacts (not before ten seconds).

Sonoff T1 - contacts


ITEAD Sonoff BasicATTENZIONE: remember that there is on our FORUM community an ad hoc section dedicated to Sonoff (and more generally to devices ESP8266), for any doubt, question, information on the specific merit of these components.


telegram

Stay up to date through ours Telegram channel!