Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading Mongoose firmware into Sonoff devices via SonOTA? #360

Open
PKGeorgiev opened this issue Oct 5, 2017 · 5 comments
Open

Loading Mongoose firmware into Sonoff devices via SonOTA? #360

PKGeorgiev opened this issue Oct 5, 2017 · 5 comments

Comments

@PKGeorgiev
Copy link

PKGeorgiev commented Oct 5, 2017

Recently I stumbled across this: https://github.com/mirko/SonOTA
I'm curious if it is possible to flash sonoffs with Mongoose OS via this OTA machanism instead of using cables/serial port?

@cpq
Copy link
Member

cpq commented Oct 12, 2017

Mongoose OS provides its own OTA mechanism:
https://mongoose-os.com/docs/book/ota.html

@cpq cpq closed this as completed Oct 12, 2017
@PKGeorgiev
Copy link
Author

I know that. The idea is to skip initial need for cables to deploy Mongoose OS to sonoff devices.

@cpq
Copy link
Member

cpq commented Oct 12, 2017

Ah. Could you elaborate more please?

@cpq cpq reopened this Oct 12, 2017
@PKGeorgiev
Copy link
Author

Thanks.
Sonoff devices come pre-loaded with proprietary firmware by Itead. Their firmware support OTA but officially it cannot be used by the end users.

So the only "official" way to flash newer sonoff device is the classic one: disassemble it, use soldering iron, solder a wire go GPIO0 etc. Not very hard, but is time consuming.

Recently one guy had discovered the internals of Itead's OTA mechanism: http://blog.nanl.de/2017/05/sonota-flashing-itead-sonoff-devices-via-original-ota-mechanism

Then another programmer made a Python script that simulates Itead's OTA servers making it possible to re-flash sonoff devices locally without taking them apart (i.e. taking advantage of the original OTA mechanism): https://github.com/mirko/SonOTA

This library is used to load firmware based on Tasmota:
https://github.com/mirko/SonOTA/tree/master/static. But my firmware knowledge is very limited.

There are a few steps described in SonOTA's readme.

My question is that - will it be possible to use SonOTA (or similar script, eventually written by you) to re-flash sonoff devices with Mongoose OS firmware. This will allow quick and easy way of initial "Mongoose-ing" any sonoff device via existing OTA mechanism. And of course this will definitely increase Mongoose OS' popularity :)

@dimonomid
Copy link
Contributor

I think it's possible, but not a priority at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants