Download Rock File Manager Pro Ota

Sonoff-MQTT-OTA - End of Life

This software is End of Life. New features will be introduced in Sonoff-Tasmota available on https://github.com/arendst/Sonoff-Tasmota

Provide ESP8266 based itead Sonoff with MQTT and 'Over the Air' or OTA firmware.

Prerequisite

Google Play Store, unfortunately, removed Magisk Manager from play store. You can download magisk manager from official website without any survey. How to update to Android 6.0 Marshmallow manually using OTA downloads. Marshmallow using OTA files is to actually download the proper OTA image file for your device. OnePlus 7 Pro from Day.

Install the ESP8266 development environment from esp8266-dev.

Copy the sonoff code files as follows:

  • Create directory esp8266-dev/work and copy directory sonoff and file espupload.php into it
  • Replace file Makefile.common in directory esp8266-dev

Install php and a local web server (ie apache) for OTA and copy directory api in webroot.

Compile and upload

Update sonoff/user/user_config.h with your specific Wifi and MQTT parameters.

Compile source with make and flash once to sonoff using cable connection as shown in Peter Scargill's blog with make flash.

Do not connect AC power during the flash cable connection.

Compile and upload OTA images to your web server with make clean; make IMAGE=1; make register; make clean; make IMAGE=2; make register.

Note: this software is not compatible with Pete's implementation.

Usage

The button on sonoff provides the following features:

  • a short press toggles the relay. This will blink the LED twice and sends a MQTT status message like stat/sonoff/POWER on
  • three short presses start Wifi smartconfig which allows for SSID and Password configuration using an Android mobile phone with the ESP8266 SmartConfig app. The green LED will blink during the smartconfig period for 100 seconds. The MQTT server still needs to be configured using the user_config.h file
  • four short presses start OTA download of firmware. The green LED is lit during the update
  • pressing the button for over four seconds resets settings to defaults as defined in user_config.h and reboots sonoff

Sonoff responds to the following MQTT commands:

  • the relay can be controlled by cmnd/sonoff/power on, cmns/sonoff/power off or cmnd/sonoff/power toggle. The LED will blink twice and sends a MQTT status message like stat/sonoff/POWER on. The same function can be initiated with cmnd/sonoff/light on
  • the MQTT topic can be changed with cmnd/sonoff/topic sonoff1 which reboots sonoff and makes it available for MQTT commands like cmnd/sonoff1/power on
  • the OTA firmware location can be made known to sonoff by cmnd/sonoff/otaurl http://sidnas2:80/api/sonoff/user1.bin where sidnas2 is your webserver hosting the firmware. Reset to default with cmnd/sonoff/otaurl 1
  • upgrade OTA firmware by cmnd/sonoff/upgrade 1
  • show status information by cmnd/sonoff/status 1

Most MQTT commands will result in a status feedback like stat/sonoff/POWER On.

Commands supported

The firmware supports both a serial and a MQTT Man Machine interface. The serial interface is set to 115200 bps. The MQTT commands are constructed as cmnd/sonoff/<command>.

The following commands are recognised by both topic and grouptopic:

CommandDescription
powerShow current power state as On or Off
power onTurn power On
power offTurn power Off
power toggleToggle power
power 1Turn power On
power 0Turn power Off
power 2Toggle power
lightShow current power state as On or Off
light onTurn power On
light offTurn power Off
light toggleToggle power
light 1Turn power On
light 0Turn power Off
light 2Toggle power
statusShow abbreviated status information
status 1Show all status information
status 2Show version information
grouptopicShow current MQTT group topic
grouptopic 1Reset MQTT group topic to user_config.h value and restart
grouptopic your-grouptopicSet MQTT group topic and restart
timezoneShow current timezone
timezone -12 .. 12Set timezone

The following commands are recognised by topic only:

CommandDescription
restart 1Restart sonoff
reset 1Reset sonoff parameters to user_config.h values and restart
ssidShow current Wifi SSId
ssid 1Reset Wifi SSId to user_config.h value and restart
ssid your-ssidSet Wifi SSId and restart
passwordShow current Wifi password
password 1Reset Wifi password to user_config.h value and restart
password your-passwordSet Wifi password and restart
hostShow current MQTT host
host 1Reset MQTT host to user_config.h value and restart
host your-hostSet MQTT host and restart
topicShow current MQTT topic
topic 1Reset MQTT topic to user_config.h value and restart
topic your-topicSet MQTT topic and restart
smartconfig 1Start smart config
otaurlShow current otaurl
otaurl 1Reset otaurl to user_config.h value
otaurl your-otaurlSet otaurl
upgrade 1Download ota firmware from your web server and restart
Download rock file manager pro ota

If the same topic has been defined to more than one sonoff an individual sonoff can still be addressed by the fall back topic MQTT_CLIENT_ID as defined in user_config.h. The fall back topic will be DVES_<last six characters of MAC address>.

Tips

  • To aid in finding the IP address of sonoff the network name will be ESP-<last six characters of MAC address>-<MQTT topic>. So the default name is ESP-123456-sonoff
  • The initial firmware from api/sonoff/user1.bin can be flashed using the SDK 1.4 provided bin files with the following esptool.py command line:esptool.py --port /dev/ttyUSB0 write_flash -fs 8m 0x00000 boot_v1.4(b1).bin 0x01000 user1.bin 0xFC000 esp_init_data_default.bin 0xFE000 blank.bin
  • Use the group topic to address several sonoffs with one (restricted) MQTT command
Rock

In this guide, you will learn How To Manually Install OTA Updates On Huawei devices.It is a very simple and easy method.Just follow the given steps to Update your Huawei devices manually.Remember this is only for the small OTA firmware (e.g: security patch updates).Don’t use this method to flash full firmware files.

This method will work for all most all Huawei and Honor Android devices.You can update your devices just by following few steps.But make sure that you have the stock recovery.We recommend taking backup of your important data before following the steps.

Download Rock File Manager Pro Ota

Sometimes users don’t receive notification of the OTA Update.But using this method you can flash the OTA Update Zip file easily.This guide will be very helpful if you want to manually install OTA Updates On Huawei devices (Zip file).

Related: How To Unlock Bootloader On Huawei Devices

Important:

Download Rock File Manager Pro Ota

*Make sure there is at least 80% battery left on your smartphone before beginning the process.

Warning:

rootmygalaxy.net will not be held responsible for any kind of damage occurred to your Huawei Device while following this tutorial.Do it at your own risk.

How To Flash / Install OTA Updates On Huawei devices

  • Make sure you have downloaded the OTA Update Zip file
  • Now Rename the downloaded file to update.zip
  • Extract the Update.Zip file
  • Create a folder named Dload in the device’s internal storage or on your SD card and put the update.app (Extracted Update.zip) file there
  • Then go to Settings > About phone > System Update, and then select Local Update.
  • After that, Give the downloaded update file’s location on the next screen
  • The installation will start automatically
  • Once completed, reboot your device
  • Done!!! Your device should now have the latest update running

Or,

You can start update from dialer *#*#2846579#*#* and ProjectMenu -> Software Upgrade -> SDCard Upgrade

If you want to download and install the full firmware file on Huawei or Honor devices (not OTA), then follow the given guide linked below

If you have any questions related to this post feel free to ask in the comment section.