Shelly-homekit: help flashing

Created on 7 Feb 2020  Â·  9Comments  Â·  Source: mongoose-os-apps/shelly-homekit

hi,

my Shelly 1 does not have original firmware on it, I purchase from Voltio.cz it has custom HomeKit firmware, I would like to test your firmware, could you help me flash via https://github.com/espressif/esptool ? or do know a better way to refresh your firmware on a Mac via FTDI (Serial header) ?

Thanks
Andy.

Most helpful comment

ok, i will write up detailed instructions with pictures tonight

All 9 comments

You can flash the Shelly1 over a wired connection using mos. Download and install mos following these instructions:

https://mongoose-os.com/docs/mongoose-os/quickstart/setup.md

You can then use mos to flash the shelly-homekit-Shelly1.zip file. It may be a good idea to first dump your current flash contents, so you can go back to the Voltio.cz-provided firmware if needed.

ok got it installed, just waiting for my FTDI tool to be delivered, could you explain how to dump firmware ?, I'm new to all this

once you've connected the serial port and put the device into boot-loader mode (by driving gpio0 low), to dump entire flash:

$ mos flash-read --platform esp8266 --esp-baud-rate 921600 flash.bin

this should produce a 2M flash.bin file.

to flash this (or any other Mongoose OS-based) firmware:

$ mos flash --esp-baud-rate 921600 shelly-homekit-Shelly1.zip

to later flash it back:

$ mos flash-write --platform esp8266 --esp-baud-rate 921600 0 flash.bin

mos will use the first available serial port, which is usually the correct one. but if you have multiple in your system, add --port PORT to each command, where PORT is the name of the serial port of the FTDI adapter - one of the COMx devices on Windows, /dev/ttyUSBx on Linux, etc.

really appreciate all the help, when you say boot-loader mode (by driving gpio0 low), how do I do that ?

ok, i will write up detailed instructions with pictures tonight

thanks a lot, you got a PayPal for donations?

i am not accepting donations at this time, but thanks for offering!

@andyblac see here.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

one4many picture one4many  Â·  14Comments

Baza207 picture Baza207  Â·  5Comments

cschildhorn picture cschildhorn  Â·  7Comments

marcopeeters picture marcopeeters  Â·  3Comments

Jaguaza picture Jaguaza  Â·  11Comments