How to load stock firmware via serial?

  • Hello,


    I need to recover my shelly1 as it is not able to connect to my WiFi. I am able to load .bin files via serial. I would like to load 1.7.0 onto my Shelly1. How do I go about loading a stock firmware image as they are made up of several .bin files?


    esp_init_data_default_v08.bin

    fs.bin

    manifest.json

    rboot.bin

    switch1.bin


    Thanks for any help,

    smanders

  • Thank you so much Lecoco, that project is exactly what I needed. However the binary images it is producing are not working. Have you used that project successfully? I have tried both SHSW-1 1.9.2 and 1.7.0. I have also produced the images using OSX and Ubuntu with the same result. The Shelly1 is unresponsive upon reboot with no beacons broadcasting. I am able to then reload a tasmota image and I see beacons again. Here is my output when creating the image:

  • I'd also like to revert a Shelly device to stock firmware, I like Tasmota a lot but I have not been able to get smooth local (long press) dimming to work and perhaps I was too hasty in not even trying the stock firmware. Why can't they just have a simple binary file to download for recovering devices? A minimal bootloader that supports OTA would be perfect.

  • it's possible ota , but you need a PC for the last step.


    https://github.com/yaourdt/tasmota-to-mgos


    First install a minimal bin.

    Than the x2mg

    Now you need the original firmware, download it from our Firmware Archive.

    Install this Firmware (here is the PC needed)

    Integrate the device

    Now will it an update

    After the update was an reset needed

    Now it had an older firmware and need an update again.

    After this is all done and you device should be back with original firmware

  • Edit: I downloaded SHDM-2.zip from https://api.shelly.cloud/files/firmware

    Not from the archive here... :(



    ------------------------



    I had a Dimmer 2 running ESPhome that I would like to return to Stock FW.


    I installed


    https://dl.dasker.eu/firmware/mgos512k-0x7000.bin


    from ESPhome webserver


    Joined the mgxxx wifi and ran


    curl -i -F filedata=@C:\Firmware\SHDM-2.zip http://10.42.42.44/update


    The dimmer2 now boots and displays a wifi to connect to but I cannot integrate into the Shelly app (fails)


    If I connect to the wifi shellyxxxx webpage I still see a Mongoose style "Index of /" web page but with more links than when just had the initial mgos installed (See screenshot)

    Have I gone wrong somewhere? Any help much appreciated! Thank you

  • Update


    I was able to flash the mgos via USB->UART connection and tried many differnt firmware to try and restore stock FW. I was able to load mgos - then tasmota - then Shelly FW from the archive and the device booted ok!


    However, when I updated via Shelly web interface OTA, I was reverted back to the Mongoose Web Server Index page.


    I tried many many times but could not update to latest.


    I have now managed to flash the firmware in the link below via USB and it works perfectly. And I was also able to update to latest 1.10 FW via Shelly interface.


    https://github.com/Mollayo/She…shelly%20stock%20firmware

  • Hi,


    I am quite new one the Shelly side.

    I bought some Shelly (1 and 2.5) with HomeKit custom firmware.

    They are not very reliable and I can’t reset some of them.


    I would like to revert to Shelly stock firmwares.

    I also has to do this via serial (no OTA available).


    Would you know a website describing in detail how to do this procedure (describing needed equipments, softwares…, how to wire interface…)?


    I would like to be sure of what I am doing before putting my hands in this😅


    Thanks in advance for your help.

  • check youtube, there are lots of video guides how to flash shelly to tasmota.. it's almost the same, just another binary file that needs to be flushed..


    instead of the tasmota.bin you can use a shelly recovery bin (check filebase from the left menu):

    here's an example for a Shelly 2.5

    External Content www.youtube.com
    Content embedded from external sources will not be displayed without your consent.
    Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.

    10x Shelly1, 7x Shelly 1PM, 2xShelly 1L, 9x Shelly 2.5, 3x Shelly2, 1x Shelly EM, 2x ShellyDimmer, 3x ShellyDimmer2, 1x Shelly 3EM, 1x Shelly4Pro, 1x Shelly Button1, 4x Shelly Duo, 1x, ShellyDuo G10, 3x ShellyVintage, 1x Shelly Bulb, 8x ShellyDuoG10RGB, 1x ShellyPlug, 2x ShellyRGBW2, 5x Shelly PlugS. 1x Shelly Sense, 3x Shelly i3, 1x Shelly Gas, 4x Shelly H&T, 1x Shelly Flood, 2x ShellyDoor&Window2, 3x TempAddon, 1x ShellyMotion

  • check youtube, there are lots of video guides how to flash shelly to tasmota.. it's almost the same, just another binary file that needs to be flushed..


    instead of the tasmota.bin you can use a shelly recovery bin (check filebase from the left menu):

    here's an example for a Shelly 2.5

    External Content www.youtube.com
    Content embedded from external sources will not be displayed without your consent.
    Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.

    Thanks for your help.

    Will check that.