Comments (15)
Perhaps someone who successfully used the script, could provide a datailed manual for people like me, which are only 50%-nerds. And more familiar with frontend development than flashing images things like that. That would be great!
from sonota.
from sonota.
from sonota.
from sonota.
from sonota.
Would be great to have, this certainly isn't my forte so a nice guide on getting it up and running so I can use it with HASS without having to solder would be great.
from sonota.
What's the current situation? Is it possible to flash a Sonoff OTA now?
Well, I'd say it's working :) I also updated the README a couple of days ago hoping it clarifies a few things.
Nevertheless I indeed see it's not a step-by-step guide, so I'm quite looking forward to someone providing such. Thanks for all your comments and contribution!
mirko
from sonota.
Hello Mirko, all,
I am quite new into that Arduino and Sonoff world. I took the following approach to get a S20 flashed:
- compile two tasmata images with the OTA ROM1 and OTA ROM2 settings
- used the esptool to convert the elf output format, resulting bin files start EA
- copied the two bin files into the static below the place where sonota.py is located, renamed them to image_user1-0x01000.bin and image_user2-0x81000.bin respectively
- started the script, connected to ITEAD SSID, provisioning is done, going back to home network and then there is a communication sequence (see below) going on between with the host and the S20 (I made some numbers unreadable to anonymize the trace)
- there is an error 404 reported in the update sequence
-> any hint what could went wrong here?
Thx,
Carsten
>> {
"action": "update",
"deviceid": „*********“,
"apikey": „******************“,
"userAgent": "app",
"sequence": "1499288220698",
"ts": 0,
"params": {
"switch": "off"
},
"from": "hackepeter"
}
>> {
"action": "upgrade",
"deviceid": „**********“,
"apikey": „****************“,
"userAgent": "app",
"sequence": "1499288220714",
"ts": 0,
"params": {
"binList": [
{
"downloadUrl": "http://192.168.67.40:8080/ota/image_user1-0x01000.bin",
"digest": „**********“,
"name": "user1.bin"
},
{
"downloadUrl": "http://192.168.67.40:8080/ota/image_user2-0x81000.bin",
"digest": „*************“,
"name": "user2.bin"
}
],
"model": "PSA-B01-GL",
"version": "23.42.5"
}
}
2017-07-05 22:57:01,189 (DEBUG) << WEBSOCKET INPUT
2017-07-05 22:57:01,190 (DEBUG) << {
"error": 0,
"userAgent": "device",
"apikey": „****************“,
"deviceid": „*******“,
"sequence": "1499288220698"
}
2017-07-05 22:57:01,190 (DEBUG) ~~~ device acknowledged our action request (seq 1499288220698) with error code 0
2017-07-05 22:57:01,647 (INFO) 200 GET /ota/image_user2-0x81000.bin?deviceid=************&ts=1270216262&sign=**************** (192.168.67.70) 12.30ms
2017-07-05 22:57:01,648 (DEBUG) << WEBSOCKET INPUT
2017-07-05 22:57:01,648 (DEBUG) << {
"error": 404,
"userAgent": "device",
"apikey": „****************“,
"deviceid": „****************“,
"sequence": "1499288220714"
}
2017-07-05 22:57:01,648 (DEBUG) ~~~ device acknowledged our action request (seq 1499288220714) with error code 404
2017-07-05 22:57:53,119 (DEBUG) << WEBSOCKET INPUT
2017-07-05 22:57:53,120 (DEBUG) << {
"userAgent": "device",
"apikey": „********“,
"deviceid": „************“,
"action": "update",
"params": {
"switch": "off",
"fwVersion": "1.5.2",
"rssi": -38,
"startup": "off"
}
}
from sonota.
Please do not use (modified) 3rd party Arduino projects (e.g. Tasmota) being flashed via the Sonoff OTA mechanism.
Although it works (should at least), there will be no way of using the ArduinoOTA mechanism from upon there.
Use images built from https://github.com/khcnz/Espressif2Arduino project as intermediate ones, to replace the bootloader.
Either way, the way you're doing it flashing should work.
Can you provide me the image(s) you built so I can take a look, maybe there's sth. obviously wrong with them.
from sonota.
Dunno about everyone else, but all I'm after is a solder-free way to add Home Assistant support to my Sonoffs. Is that doable with this method?
from sonota.
Home Assistant is totally unrelated to getting custom Arduino sketches onto the Sonoffs via its original OTA method. However, yes, with custom firmware (e.g. tasmota) you can control your Sonoffs via HA (e.g. via MQTT).
from sonota.
More specifically I need a firmware with MQTT support on them, but after your previous comment now I'm not sure if that's possible using this method?
from sonota.
There's plenty of information about which Arduino project supports which hardware and feature.
This project is to get 3rd party Arduino firmware onto Sonoff devices without opening them up and flashing via serial.
from sonota.
I'd like to reference #10 where two guys had the same / similar issues which they eventually solved.
from sonota.
The current build now includes pre-built binaries so it should be a lot simpler to run. With that in mind, I'm closing this, please open a new ticket if you have any issues.
from sonota.
Related Issues (20)
- ESP8285 based relay board doesn't like certificate HOT 5
- [New Smart G2 2.0.1]Successfull flash, help for template/model selection HOT 1
- set_nodelay? HOT 3
- add SonOFF T2 support
- pip3 fails to import main
- Script crashed starting web server HOT 4
- eWeLink Mini PCI-e Desktop PC Remote Control HOT 4
- DIY Mode for Stock Firmware 3.3 or Higher? HOT 1
- Sonota.exe not progressing after connecting to ITEAD-SSID HOT 2
- Sonoff TH10 2.6.0 firmware
- Can device get bricked if something goes wrong? HOT 2
- How to update from the shipped SonOTA .bin to a newer version?
- SSL Error on 11 ('xxx', 4098): [SSL] internal error (_ssl.c:1108) HOT 4
- Latest firmware HOT 5
- No FinalStage network is shown.
- Never ending loop at stage2 when trying to flash Tasmota for the first time HOT 7
- The ssid details sent to the device are not working
- No Final Stage For Windows EXE - Different IP subnet? HOT 1
- WARNING: SSL Error on 12 ('192.168.0.60', 8708): [SSL: NO_CIPHERS_AVAILABLE] no ciphers available (_ssl.c:997)
- Does it work with the Zb Bridge ( wich look really like the RF Bridge
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonota.