Updated Device Operational Recovery (markdown)

Michael Ingraham 2019-10-17 14:10:13 -04:00
parent 6d71450d88
commit 8572f1f82b
1 changed files with 11 additions and 3 deletions

@ -5,8 +5,8 @@ By default, the firmware tries to preserve the existing configuration (to suppor
When code updates change the values or the way settings are used, those code changes don't directly change the settings on the running device when you load the new firmware. What happens is that when it boots up, the firmware looks to see if it has a valid configuration (is it an upgrade from an older Tasmota version), and if the CFG_HOLDER value is in the right place, it assumes that the existing configuration is valid. If it doesn't find the right value, it assumes that this is not a "simple" upgrade and takes the compiled-in configuration settings and writes them out to the configuration area.
Listed below are a few ways to reset the device to what is set in the firmware binary (`my_user_config` and `user_config_override.h`), i.e., firmware defaults, in order to recover a device:
- Hold the button (`Button1`) down, if available, for 40 seconds
- Issue `Reset 1` command via the console, MQTT, or HTTP
- Hold the button (`Button1`) down, if available, for 40 seconds. After the device reboots, fully cycle power.
- Issue `Reset 1` command via the console, MQTT, or HTTP. After the device reboots, fully cycle power.
- Cycle power following this procedure: **(6.6.0.18)**
Unplug the device for several seconds (>30) to ensure that the volatile memory clears, specifically, the real time clock (RTC) memory.
@ -17,4 +17,12 @@ Listed below are a few ways to reset the device to what is set in the firmware b
    Cycle power four (4) times in this manner
On the following powering up of the device, _all the device settings_ will be reset to the defaults of the firmware binary originally flashed on the device.
- Connect the device to the serial programming interface, erase the flash memory, and flash a "clean" well-known firmware binary.
The device should operate without instabilities before attempting to configure the device in any way. If the device still does not, follow these steps if you are able to configure its Wi-Fi and connect:
1. Configure the device as `Generic (18)`
2. Perform an OTA upgrade specifically to [sonoff-minimal.bin`](http://thehackbox.org/tasmota/sonoff-minimal.bin). Taking this intermediate step ensures that the firmware will be reloaded. Since Tasmota performs a version comparison before performing the OTA update, explicitly changing the firmware that is on the device will ensure that the firmware is indeed replaced in the next step.
3. Perform an OTA upgrade to the desired firmware variant.
Once the device operates reliably, begin the configuration to set the GPIO configuration (via a Template or Module). Take any further configuration steps one at a time to ensure that after each setting is applied, the device continues to operate reliably.
If none of these methods result in reliable operation, the only remaining option is to connect the device to the serial programming interface, erase the flash memory, and flash a "clean" well-known firmware binary.