Comments (67)
You wanna know what? It works!
I feel a strong urge to build my first ever docker container to automate this..
This is a triumph!
Thank you @mirko
from sonota.
You should use the linker scripts provided by https://github.com/khcnz/Espressif2Arduino as well as using images built from that sketch, to also replace the bootloader.
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.
Here they are:
image_user1-0x01000.bin.txt
image_user2-0x81000.bin.txt
Please delete the .txt extension from the end of the file names.
from sonota.
Looks good to me - does it also happen with images built from the Espressif2Arduino sketch?
Maybe the file is too big?
from sonota.
Ok. I used the original Tasmota files. I will replace them and try again.
from sonota.
So, I check the linker script in the Espressif2Arduino sketch, and both are the same that I used. That's not the problem.
from sonota.
There's still the potential issue of your images being too big, that's why I asked explicitly about trying it with Espressif2Arduino builds.
from sonota.
Ok, I built an image width Espressif2Arduino linker script and its size is the same as before. 479.312 bite.
I changed the WiFi settings in the the user_config.h and disabled the IR_REMOTE. Nothing else was modified. Should I change anything else?
from sonota.
I think it is meant to build two Espressif2Arduino binaries (just compile from this sketch) with the respective linker scripts out of that project. You need to set URL_ROM_1 and 2 according to your needs. The resulting image size is in my build 259379 Bytes. Need to see this evening if they are flashing once I am close to my S20 again.
from sonota.
Ok, I built an image width Espressif2Arduino linker script and its size is the same as before. 479.312 bite.
This sounds far too much for a single Espressif2Arduino image.
My images:
236K image_user1-0x01000_DIO-v2.bin
236K image_user2-0x81000_DIO-v2.bin
from sonota.
In this thread: https://github.com/arendst/Sonoff-Tasmota/issues/476 the images are almost same size like mine:
What is wrong?
from sonota.
What images are you talking about?
I'm talking about those being created by the Espressif2Arduino Sketch, which you're supposed to use with SonOTA.
from sonota.
In that thread I am also having problems so I wouldn't go by my image sizes. I will be trying Espressif2Arduino now to see if that sheds any light on our problem.
from sonota.
I want to flash Tasmota fw with SonOTA. It isn't possible? I use sonoff skatch. I downloaded it from https://github.com/arendst/Sonoff-Tasmota
from sonota.
People, please read the README!
Way is: original ITEAD firmware -> intermediate Espressif2Arduino firmware (which on first run replaces the bootloader) -> non-modified Arduino images (e.g. Tasmota)
from sonota.
Well it's not working so I'd try the suggestion given to do it differently.. Trying to get it done now.
from sonota.
Ok, I understand it. I didn't read it carefully, sorry!
from sonota.
I've not made any real progress.. But I've just noticed something that might be important.. esptool is being used on .elf images.. I would swear (but am not certain) that I have been doing so on .bin images.. If I have, that could be the problem.
EDIT: I take that back.. looks like I was using .elf images..
from sonota.
I've not made any real progress.. But I've just noticed something that might be important.. esptool is being used on .elf images.. I would swear (but am not certain) that I have been doing so on .bin images.. If I have, that could be the problem.
Change the Build output folder in the Airduino. Watch this:
https://www.kanda.com/blog/microcontrollers/avr-microcontrollers/find-arduino-hex-files-output-binaries/
After that the elf files will be there in the folder.
from sonota.
I've got the images:
ls -l Espressif2Arduino.ino-*
-rw-r--r-- 1 michal staff 238304 6 Jul 22:22 Espressif2Arduino.ino-0x01000.bin
-rw-r--r-- 1 michal staff 238304 6 Jul 22:22 Espressif2Arduino.ino-0x81000.bin
I presume now I use Sonata as I did previously? Let's see how it goes.
from sonota.
I have a question:
I read Espressif2Arduino readme. There it is described:
Where? In the Espressif2Arduino.ino file? In this file I found only this:
from sonota.
So, where is the URL_ROM_1?
There is none?! Rom 1 is fetched and flashed by the original Sonoff FW.
Rom 1 (=user1) / Rom 2 (=user2) are the ones provided by the webserver the SonOTA script spawns.
If you Sonoff requests user1 its only purpose is to fetch and flash user2 (URL_ROM_2).
Otherwise it will directly fetch URL_ROM_3.
So if your Sonoff boots into the Espressif2Arduino system Espressif2Arduino is obviously already there - no need to specify URL_ROM_1 there.
The process works like this:
If Rom 1 is requested by the OTA update process Rom 1 is streamed back to the Espressif SDK which will flash to 0x1000 and reboot into this image. This image only has one job which is to simply request the Rom 2 image, save it into flash at 0x81000 and reboot into it.
If Rom 2 is requested by the OTA update process Rom 2 is streamed back to the Espressif SDK and will be saved into flash at 0x81000 and will then reboot.
Now both irrespective of route taken we will now be running Rom 2 at 0x81000. This allows us to replace all contents at 0x0->0x7FFF which includes the bootloader and the booted arduino image. Rom 2 simply requests the final image, saves it to 0x0 and then restarts.
from sonota.
Congrats! Glad to hear that - happy about any contribution!
from sonota.
I do have one question though.. Is building Espressif2Arduino.ino-0x01000.bin totally redundant? The original Sonoff image is always at that location and thus only Espressif2Arduino.ino-0x81000.bin (and a TASMOTA or similar image) is actually required?
from sonota.
I do have one question though.. Is building Espressif2Arduino.ino-0x01000.bin totally redundant? The original Sonoff image is always at that location and thus only Espressif2Arduino.ino-0x81000.bin (and a TASMOTA or similar image) is actually required?
I'm not sure I get your question: The Sonoff original FW might either ask for, fetch and flash a user_1 or user_2 image - we can't control which one the Sonoff asks for. So we need both.
As a second (or, depending on whether the Sonoff asked for the user_1-image, the third) step Espressif2Arduino flashes the bootloader to the Arduino one to be compatible with the Arduino OTA mechanism.
As a third (fourth respectively) step the custom image (e.g. Tasmota) is fetched and flashed.
I don't see any image/step being unnecessary/redundant here.
from sonota.
I think I erroneously made an assumption or two. Thanks for the step-by-step as it will be helpful when I try to design a way to automate this.
There is a disconnect between the direct flashing described in the Espressif2Arduino documentation and what SonOTA is trying to achieve that can be somewhat confusing.
from sonota.
Ok, I flash the Espressif2Arduino fw.
2017-07-06 15:24:51,420 (INFO) 206 GET /ota/image_user1-0x01000.bin?deviceid=100006dcbd&ts=451230256&sign=ac4cb79830934433cd468dd32969de1a612633a493772349ed1db813b084914d (192.168.7
5.189) 1.50ms
2017-07-06 15:24:51,768 (DEBUG) << WEBSOCKET INPUT
2017-07-06 15:24:51,768 (DEBUG) << {
"error": 0,
"userAgent": "device",
"apikey": "ab24d420-48b1-4f99-9b7f-2d90f222970e",
"deviceid": "100006dcbd",
"sequence": "1499347481720"
}
2017-07-06 15:24:51,769 (DEBUG) ~~~ device acknowledged our action request (seq 1499347481720) with error code 0
And what's the next step? My device led lightning continuously and nothing is happening.
It is connected to my WiFi network and has an IP address.
from sonota.
Ok. I'm stupid. It's WORKING!
Thank you @mirko
from sonota.
Since all issues (and hopefully headaches) seem to be solved/gone by now, the documentation obviously is not complete / is misleading / you name it.
As from developer perspective things naturally seem clearer than they do to users, I'd highly appreciate if you could sum up the pitfalls and issues you encountered, maybe even coming up with a step-by-step tutorial which you think might clear things up for further folks.
from sonota.
I'm trying to get this to work with a new Sonoff Pow (one of my seems to have died this evening) but it doesn't seem to be joining the network after provisioning has been done:
** No ip address of the ITEAD DHCP range (10.10.7.0/24) is assigned to any of your interfaces, which means you don't appear to be connected to the IEAD WiFi network.
** Please change into the ITEAD WiFi network (ITEAD-100001XXXX)
** This application can be kept running.
.........~~ Connection attempt
>> HTTP GET /10.10.7.1/device
<< {
"deviceid": "10000b80c9",
"apikey": "bae4de2b-52ad-42e5-ac3e-0ad9ce8558c7",
"accept": "post"
}
>> HTTP POST /10.10.7.1/ap
>> %s {
"version": 4,
"ssid": "SSID",
"password": "password",
"serverName": "192.168.1.41",
"port": 4223
}
<< {
"error": 0
}
~~ Provisioning completed
~~ Starting web server
~~ Waiting for device to connect
Just sits there waiting and I never see the Sonoff connect to my Wifi network.
Any ideas?
EDIT: Correction! It does appear on my wifi network. I was just filtering incorrectly when searching for it. But it doesn't connect to download the firmware.. Or so it seems.
from sonota.
Used --legacy with root to get further:
~~ Waiting for device to connect
<< HTTP POST /dispatch/device
>> /dispatch/device
>> {
"error": 0,
"reason": "ok",
"IP": "192.168.1.41",
"port": 443
}
2017-07-07 19:35:51,184 (INFO) 200 POST /dispatch/device (192.168.1.133) 1.75ms
2017-07-07 19:35:51,192 (INFO) 101 GET /api/ws (192.168.1.133) 0.30ms
2017-07-07 19:35:51,192 (DEBUG) << WEBSOCKET OPEN
2017-07-07 19:35:51,195 (DEBUG) << WEBSOCKET INPUT
2017-07-07 19:35:51,195 (DEBUG) << {
"userAgent": "device",
"apikey": "bae4de2b-52ad-42e5-ac3e-0ad9ce8558c7",
"deviceid": "10000b80c9",
"action": "register",
"version": 2,
"romVersion": "2.0.2",
"model": "PSC-B01-GL",
"ts": 844
}
~~~ device sent action request, acknowledging / answering...
2017-07-07 19:35:51,195 (INFO) We are dealing with a PSC-B01-GL model.
~~~~ register
>> {
"error": 0,
"deviceid": "10000b80c9",
"apikey": "00791e2d-9903-45ce-902a-8b1e5fb622f1",
"config": {
"hb": 1,
"hbInterval": 145
}
}
2017-07-07 19:35:51,198 (DEBUG) << WEBSOCKET INPUT
2017-07-07 19:35:51,198 (DEBUG) << {
"userAgent": "device",
"apikey": "00791e2d-9903-45ce-902a-8b1e5fb622f1",
"deviceid": "10000b80c9",
"action": "date"
}
~~~ device sent action request, acknowledging / answering...
~~~~ date
>> {
"error": 0,
"deviceid": "10000b80c9",
"apikey": "00791e2d-9903-45ce-902a-8b1e5fb622f1",
"date": "2017-07-07T19:35:51.198Z"
}
2017-07-07 19:35:51,201 (DEBUG) << WEBSOCKET INPUT
2017-07-07 19:35:51,201 (DEBUG) << {
"userAgent": "device",
"apikey": "00791e2d-9903-45ce-902a-8b1e5fb622f1",
"deviceid": "10000b80c9",
"action": "update",
"params": {
"switch": "off",
"power": "0",
"fwVersion": "2.0.2",
"rssi": -59,
"staMac": "D0:27:00:16:FE:E2"
}
}
~~~ device sent action request, acknowledging / answering...
~~~~ update
>> {
"error": 0,
"deviceid": "10000b80c9",
"apikey": "00791e2d-9903-45ce-902a-8b1e5fb622f1"
}
>> {
"action": "update",
"deviceid": "10000b80c9",
"apikey": "00791e2d-9903-45ce-902a-8b1e5fb622f1",
"userAgent": "app",
"sequence": "1499420151201",
"ts": 0,
"params": {
"switch": "off"
},
"from": "hackepeter"
}
>> {
"action": "update",
"deviceid": "10000b80c9",
"apikey": "00791e2d-9903-45ce-902a-8b1e5fb622f1",
"userAgent": "app",
"sequence": "1499420151201",
"ts": 0,
"params": {
"switch": "on"
},
"from": "hackepeter"
}
>> {
"action": "update",
"deviceid": "10000b80c9",
"apikey": "00791e2d-9903-45ce-902a-8b1e5fb622f1",
"userAgent": "app",
"sequence": "1499420151201",
"ts": 0,
"params": {
"switch": "off"
},
"from": "hackepeter"
}
>> {
"action": "update",
"deviceid": "10000b80c9",
"apikey": "00791e2d-9903-45ce-902a-8b1e5fb622f1",
"userAgent": "app",
"sequence": "1499420151201",
"ts": 0,
"params": {
"switch": "on"
},
"from": "hackepeter"
}
>> {
"action": "update",
"deviceid": "10000b80c9",
"apikey": "00791e2d-9903-45ce-902a-8b1e5fb622f1",
"userAgent": "app",
"sequence": "1499420151202",
"ts": 0,
"params": {
"switch": "off"
},
"from": "hackepeter"
}
>> {
"action": "upgrade",
"deviceid": "10000b80c9",
"apikey": "00791e2d-9903-45ce-902a-8b1e5fb622f1",
"userAgent": "app",
"sequence": "1499420151205",
"ts": 0,
"params": {
"binList": [
{
"downloadUrl": "http://192.168.1.41:8080/ota/Espressif2Arduino.ino-0x01000.bin",
"digest": "a37b6962bc851e678a0774723bc9330a44633ae7ed4242140389d0ba6bb719f9",
"name": "user1.bin"
},
{
"downloadUrl": "http://192.168.1.41:8080/ota/Espressif2Arduino.ino-0x81000.bin",
"digest": "745503eedcdb5bbf6bcd798636d42cfbd8a0c7ca626439e615c7801e169cde4e",
"name": "user2.bin"
}
],
"model": "PSC-B01-GL",
"version": "23.42.5"
}
}
2017-07-07 19:35:51,209 (DEBUG) << WEBSOCKET INPUT
2017-07-07 19:35:51,209 (DEBUG) << {
"error": 0,
"userAgent": "device",
"apikey": "00791e2d-9903-45ce-902a-8b1e5fb622f1",
"deviceid": "10000b80c9",
"sequence": "1499420151201"
}
2017-07-07 19:35:51,209 (DEBUG) ~~~ device acknowledged our action request (seq 1499420151201) with error code 0
2017-07-07 19:35:51,228 (DEBUG) << WEBSOCKET INPUT
2017-07-07 19:35:51,229 (DEBUG) << {
"error": 404,
"userAgent": "device",
"apikey": "00791e2d-9903-45ce-902a-8b1e5fb622f1",
"deviceid": "10000b80c9",
"sequence": "1499420151205"
}
2017-07-07 19:35:51,229 (DEBUG) ~~~ device acknowledged our action request (seq 1499420151205) with error code 404
2017-07-07 19:35:51,231 (INFO) 200 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000b80c9&ts=686078705&sign=9a4e7053d10ad39ec0059201cf958fa925d19f9453a0432deebdf5ed6efe1531 (192.168.1.133) 11.69ms
These are the same firmware files I previously had success with on a basic Sonoff.
The files are available at the URL's in the debug. As mentioned by @mirko earlier this could be something to do with it not liking checksums?
from sonota.
Tried another Sonoff Pow. This time I started with legacy mode:
** No ip address of the ITEAD DHCP range (10.10.7.0/24) is assigned to any of your interfaces, which means you don't appear to be connected to the IEAD WiFi network.
** Please change into the ITEAD WiFi network (ITEAD-100001XXXX)
** This application can be kept running.
................~~ Connection attempt
>> HTTP GET /10.10.7.1/device
<< {
"deviceid": "10000b8188",
"apikey": "6b4189ec-834e-401f-9b8f-203f499bf87c",
"accept": "post"
}
>> HTTP POST /10.10.7.1/ap
>> %s {
"version": 4,
"ssid": "SSID",
"password": "password",
"serverName": "192.168.1.41",
"port": 443
}
<< {
"error": 0
}
~~ Provisioning completed
~~ Starting web server
~~ Waiting for device to connect
<< HTTP POST /dispatch/device
>> /dispatch/device
>> {
"error": 0,
"reason": "ok",
"IP": "192.168.1.41",
"port": 443
}
2017-07-07 19:47:26,304 (INFO) 200 POST /dispatch/device (192.168.1.134) 0.68ms
2017-07-07 19:47:26,316 (INFO) 101 GET /api/ws (192.168.1.134) 0.35ms
2017-07-07 19:47:26,316 (DEBUG) << WEBSOCKET OPEN
2017-07-07 19:47:26,319 (DEBUG) << WEBSOCKET INPUT
2017-07-07 19:47:26,319 (DEBUG) << {
"userAgent": "device",
"apikey": "6b4189ec-834e-401f-9b8f-203f499bf87c",
"deviceid": "10000b8188",
"action": "register",
"version": 2,
"romVersion": "2.0.2",
"model": "PSC-B01-GL",
"ts": 744
}
~~~ device sent action request, acknowledging / answering...
2017-07-07 19:47:26,319 (INFO) We are dealing with a PSC-B01-GL model.
~~~~ register
>> {
"error": 0,
"deviceid": "10000b8188",
"apikey": "c00c6fbf-4a08-4aa2-9a60-9e3c2d06438a",
"config": {
"hb": 1,
"hbInterval": 145
}
}
2017-07-07 19:47:26,322 (DEBUG) << WEBSOCKET INPUT
2017-07-07 19:47:26,322 (DEBUG) << {
"userAgent": "device",
"apikey": "c00c6fbf-4a08-4aa2-9a60-9e3c2d06438a",
"deviceid": "10000b8188",
"action": "date"
}
~~~ device sent action request, acknowledging / answering...
~~~~ date
>> {
"error": 0,
"deviceid": "10000b8188",
"apikey": "c00c6fbf-4a08-4aa2-9a60-9e3c2d06438a",
"date": "2017-07-07T19:47:26.322Z"
}
2017-07-07 19:47:26,325 (DEBUG) << WEBSOCKET INPUT
2017-07-07 19:47:26,325 (DEBUG) << {
"userAgent": "device",
"apikey": "c00c6fbf-4a08-4aa2-9a60-9e3c2d06438a",
"deviceid": "10000b8188",
"action": "update",
"params": {
"switch": "off",
"power": "0",
"fwVersion": "2.0.2",
"rssi": -58,
"staMac": "D0:27:00:17:00:60"
}
}
~~~ device sent action request, acknowledging / answering...
~~~~ update
>> {
"error": 0,
"deviceid": "10000b8188",
"apikey": "c00c6fbf-4a08-4aa2-9a60-9e3c2d06438a"
}
>> {
"action": "update",
"deviceid": "10000b8188",
"apikey": "c00c6fbf-4a08-4aa2-9a60-9e3c2d06438a",
"userAgent": "app",
"sequence": "1499420846326",
"ts": 0,
"params": {
"switch": "off"
},
"from": "hackepeter"
}
>> {
"action": "update",
"deviceid": "10000b8188",
"apikey": "c00c6fbf-4a08-4aa2-9a60-9e3c2d06438a",
"userAgent": "app",
"sequence": "1499420846326",
"ts": 0,
"params": {
"switch": "on"
},
"from": "hackepeter"
}
>> {
"action": "update",
"deviceid": "10000b8188",
"apikey": "c00c6fbf-4a08-4aa2-9a60-9e3c2d06438a",
"userAgent": "app",
"sequence": "1499420846326",
"ts": 0,
"params": {
"switch": "off"
},
"from": "hackepeter"
}
>> {
"action": "update",
"deviceid": "10000b8188",
"apikey": "c00c6fbf-4a08-4aa2-9a60-9e3c2d06438a",
"userAgent": "app",
"sequence": "1499420846326",
"ts": 0,
"params": {
"switch": "on"
},
"from": "hackepeter"
}
>> {
"action": "update",
"deviceid": "10000b8188",
"apikey": "c00c6fbf-4a08-4aa2-9a60-9e3c2d06438a",
"userAgent": "app",
"sequence": "1499420846326",
"ts": 0,
"params": {
"switch": "off"
},
"from": "hackepeter"
}
>> {
"action": "upgrade",
"deviceid": "10000b8188",
"apikey": "c00c6fbf-4a08-4aa2-9a60-9e3c2d06438a",
"userAgent": "app",
"sequence": "1499420846329",
"ts": 0,
"params": {
"binList": [
{
"downloadUrl": "http://192.168.1.41:8080/ota/Espressif2Arduino.ino-0x01000.bin",
"digest": "a37b6962bc851e678a0774723bc9330a44633ae7ed4242140389d0ba6bb719f9",
"name": "user1.bin"
},
{
"downloadUrl": "http://192.168.1.41:8080/ota/Espressif2Arduino.ino-0x81000.bin",
"digest": "745503eedcdb5bbf6bcd798636d42cfbd8a0c7ca626439e615c7801e169cde4e",
"name": "user2.bin"
}
],
"model": "PSC-B01-GL",
"version": "23.42.5"
}
}
2017-07-07 19:47:26,347 (DEBUG) << WEBSOCKET INPUT
2017-07-07 19:47:26,347 (DEBUG) << {
"error": 404,
"userAgent": "device",
"apikey": "c00c6fbf-4a08-4aa2-9a60-9e3c2d06438a",
"deviceid": "10000b8188",
"sequence": "1499420846329"
}
2017-07-07 19:47:26,347 (DEBUG) ~~~ device acknowledged our action request (seq 1499420846329) with error code 404
2017-07-07 19:47:26,350 (INFO) 200 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000b8188&ts=1270216262&sign=c95071ef084c8d29a4a61a34ed9e7f345d09a437e48f5b7c1da648cb4fb35d31 (192.168.1.134) 10.95ms
I can't see any hints in these as to what could be going wrong.. Hopefully someone else can.
from sonota.
Are you using builds from the Espressif2Arduino sketch?
from sonota.
As the filenames imply, yes.
These are the same builds that worked with the basic Sonoff.
I don't see why the basic Sonoff is happy to take them but the Sonoff Pow is not.
from sonota.
I don't see why the basic Sonoff is happy to take them but the Sonoff Pow is not.
Unfortunately, me neither.
As you used "--legacy" - try to upgrade your POW to the latest official FW and omit the need of "--legacy" - maybe that helps.
from sonota.
Good idea.. I will try that next.. Might be a day before I get a chance to act on it..
On the bright side.. Unlike the latest basic Sonoffs which I have been unable to upgrade using an FTDI, the Sonoff Pow's still seem upgradable via FTDI.
from sonota.
If it works with latest firmware, please open a separate issue-ticket stating that with your (previous) FW version it doesn't work, even if --legacy
is specified.
from sonota.
@mirko thanks for everything you have done to put this together. This will be an incredible boon to everyone working on DIY home automation.
@mihalski I would be very grateful if you followed through with the docker idea--I've never used docker before, but it looks well-documented. I have successfully flashed S20s via ftdi before, but right now I have a pile of six S20s and 2 Touchs that need to be flashed pretty soon and I don't want to take them apart and solder headers, etc. Unfortunately, I am not technically adept enough to follow the instructions in their current form to get it done OTA.
I'll keep watching. Good luck everyone, and thanks.
from sonota.
I hope to get the chance to work on the docker in a few days. I tried to get started on it but I am also new to docker and frankly creating a command line Arduino build environment inside a container is a lot harder than I anticipated.
Hopefully I'll be able to pull it off. I could easily just provide the firmware files to upload along with a modified sonota script, but that wouldn't be as transparent.
from sonota.
I get that the ideal is a transparent setup that can be audited for security, but the truth is, the default firmware installed on the Sonoffs is sketchy enough security-wise (especially since it phones home) that a precompiled alternative is probably safer for most of us, and certainly more convenient.
from sonota.
OK. If anyone involved wants me to take this down I will do so immediately.
Here's is the simplest way to get the latest version of Tasmota onto your sonoff.
- Download, extract, and cd into sonata directory.
- Set up a Wifi network with the default SSID/password in the Tasmota firmware (i.e. indebuurt1/VnsqrtnrsddbrN). This is the network the default firmware will join. you can then change the Wifi settings via the web ui.
- Prepare Sonoff by powering it using your FTDI (or other means).
- On a PC with a wifi interface run "python sonota.py --wifi-ssid --wifi-password .
- The Sonoff light should be flashing if it is powered. Hold down the button until it flashes faster.
- Once it is flashing quickly, follow the instructions SonOTA is giving you and join the ITEAD wifi network.
- Wait until the Sonoff is detected, provisioned and rebooted onto the indebuurt1 Wifi network.
- Find out the IP of the Sonoff via whatever means you have (should be listed somewhere on your router) and configure it via the web ui.
Done.
EDIT: Updated zip file to include all necessary files!
sonota.zip
from sonota.
Thanks a lot! I tried it with a new TH10, and am somehow stuck.
- unzip works (macos). After this step, I have the sonota.py script but empty ssl / static directories
- created the indebuurt1 wifi as a hotspot on my phone. Also joined my PC to it.
- plugged it into mains
- run sonota (see below)
- hold button until it flashes quickly
- join ITEAD wifi with my PC -> sonota does the GET / POST thingy (see below)
- ITEAD disappears (sonoff probably booted)
- PC joining indebuurt1 again, searching for ip with nmap, find nothing
any idea?
shinkansen:sonota ameyer$ python3 ./sonota.py --wifi-ssid cputoasters --wifi-password xxxx .
** No ip address of the ITEAD DHCP range (10.10.7.0/24) is assigned to any of your interfaces, which means you don't appear to be connected to the IEAD WiFi network.
** Please change into the ITEAD WiFi network (ITEAD-100001XXXX)
** This application can be kept running.
...............................................................................................................................~~ Connection attempt
>> HTTP GET /10.10.7.1/device
<< {
"deviceid": "1000080c1f",
"apikey": "9fee9388-2c52-41d0-88f3-af0d2cd4e0b2",
"accept": "post"
}
>> HTTP POST /10.10.7.1/ap
>> %s {
"version": 4,
"ssid": "cputoasters",
"password": "xxxxxx",
"serverName": ".",
"port": 4223
}
<< {
"error": 0
}
~~ Provisioning completed
** The IP address of <serve_host> (.) is not assigned to any interface on this machine.
** Please change WiFi network to $ESSID and make sure %s is being assigned to your WiFi interface.
** This application can be kept running.
................................................
from sonota.
Your IP address can't be "."
Try this from a terminal:
ifconfig |grep inet
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet6 fe80::8b0:a7c:fd23:469b%en0 prefixlen 64 secured scopeid 0x4
inet 192.168.1.41 netmask 0xffffff00 broadcast 192.168.1.255
inet6 fe80::4d:52e0:7149:a7ec%en1 prefixlen 64 secured scopeid 0x5
inet 192.168.1.51 netmask 0xffffff00 broadcast 192.168.1.255
inet6 fe80::a0f7:3eff:fe5a:2e70%awdl0 prefixlen 64 scopeid 0x8
inet6 fe80::1f65:af06:21ea:ee36%utun0 prefixlen 64 scopeid 0x9
inet6 fe80::f233:9398:3f4:d4f1%utun1 prefixlen 64 scopeid 0xa
For me the address is 192.168.1.41
That's the machine I am running this from and the IP address the Sonoff needs to download the firmware from.
from sonota.
thanks! That got me one step further, now there is an error about the cert not being there. I can create it naturally, but was that not the point of the zip file, to have everything included? How about the flash binaries?
from sonota.
Umm.. isn't all that in there? Sec.
Sigh.. Rookie mistake 1: Don't read the zip man page. Rookie mistake 2: Don't check the file you created.
I've updated the zip file in my original post.
from sonota.
thanks, now I get it to here:
shinkansen:sonota ameyer$ python3 ./sonota.py --wifi-ssid cputoasters --wifi-password xxxxxx 192.168.43.160
** No ip address of the ITEAD DHCP range (10.10.7.0/24) is assigned to any of your interfaces, which means you don't appear to be connected to the IEAD WiFi network.
** Please change into the ITEAD WiFi network (ITEAD-100001XXXX)
** This application can be kept running.
........~~ Connection attempt
>> HTTP GET /10.10.7.1/device
<< {
"deviceid": "1000080c1f",
"apikey": "9fee9388-2c52-41d0-88f3-af0d2cd4e0b2",
"accept": "post"
}
>> HTTP POST /10.10.7.1/ap
>> %s {
"version": 4,
"ssid": "cputoasters",
"password": "xxxxxxx",
"serverName": "192.168.43.160",
"port": 4223
}
<< {
"error": 0
}
~~ Provisioning completed
** The IP address of <serve_host> (192.168.43.160) is not assigned to any interface on this machine.
** Please change WiFi network to $ESSID and make sure %s is being assigned to your WiFi interface.
** This application can be kept running.
......~~ Starting web server
~~ Waiting for device to connect
with
shinkansen:~ ameyer$ nmap 192.168.43.1-255 -p 80
Starting Nmap 7.50 ( https://nmap.org ) at 2017-07-17 11:41 CEST
Nmap scan report for shinkansen (192.168.43.160)
Host is up (0.00036s latency).
PORT STATE SERVICE
80/tcp closed http
Nmap done: 255 IP addresses (1 host up) scanned in 22.86 seconds
shinkansen:~ ameyer$ ifconfig | grep en0 -C 5
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
nd6 options=201<PERFORMNUD,DAD>
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether f4:0f:24:35:f2:06
--
ether f4:0f:24:35:f2:06
inet6 fe80::1c46:4ca4:ff69:bc6c%en0 prefixlen 64 secured scopeid 0x4
inet 192.168.43.160 netmask 0xffffff00 broadcast 192.168.43.255
nd6 options=201<PERFORMNUD,DAD>
media: autoselect
status: active
en1: flags=963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX> mtu 1500
shinkansen:~ ameyer$
from sonota.
Has the device connected to your wifi access point? That's a prerequisite for it to continue to the next step.
EDIT: Also.. Is this a Sonoff Basic?
from sonota.
I dont really know. In point 7) you say to connect to indebuurt1, which I did with the PC, but nmap does not show me any device on port 80 on the network. Or should I be connecting to my real wifi, "cputoasters"?
from sonota.
Can you not set your wifi access point to have a secondary SSID on the same subnet? That would be the easiest solution.
from sonota.
I guess there is no difference if I just have my phone do a hotspot, no? I cannot change the main wifi easily and using guest access (to have a different SSID) would give me another subnet anyway.
from sonota.
btw, when switching to the real wifi instead of indebuur1, I can see the device ip and an open port 80, but connecting with a browser does not do anything. Also, it does not seem to want to connect to the sonota web server (with the address of the real wifi of the PC as the serve_host)
...
"port": 4223
}
<< {
"error": 0
}
~~ Provisioning completed
** The IP address of <serve_host> (192.168.86.167) is not assigned to any interface on this machine.
** Please change WiFi network to $ESSID and make sure %s is being assigned to your WiFi interface.
** This application can be kept running.
.....~~ Starting web server
~~ Waiting for device to connect
from sonota.
No, your machine must be accessible to the sonoff from the network it joins or it will fail.
Delete your default wifi network so that it doesn't auto join that (you can put it back later) and set indebuur1 as your default so you go straight back to it after provisioning.
from sonota.
You know I am now so confused that I'm not 100% sure I am telling you the correct information :/
I need to take a break to look back over how all this works before I continue..
OK.. I think it just came back to me..
This is why I wanted to create a docker where its gets built using user provided files.. Otherwise the only easy way is for you to tell me your wifi SSID/password and for me to build a tasdmota firmware.
Currently it's getting the Tasmota image from http://sonoff.maddox.co.uk/tasmota/sonoff.ino.bin
The best I could do, would be create a firmware that connects to somewhere on your LAN. You'd have to tell me where, then I would have to rebuild the two firmware images.
from sonota.
Oh, and if you create and join the indebuur1 wifi network you need to use the SSID/password for that and the ip that you get assigned from that network when running sonota.py.
from sonota.
I think the maddox image is fine, it should use the config params that were set with the first POST call. But somehow the device is not calling back to the web server to get anything. What did you compile into the binaries as URL_ROM_2?
from sonota.
btw, its a TH10, but I think its the same tasmota image.
from sonota.
Firstly, like I said at the very beginning and a few times since: this this is only known to work with the Sonoff Basic and DOES NOT work with the Sonoff Pow. If anything the Sonoff TH10 is more like the Pow than the Basic.
And secondly, the Maddox image is the same as the one provided in the Tasmota Github, just always the latest version. To my understanding both the images I have provided and the Maddox image must be available ON THE SAME NETWORK as the Sonoff joins and AT THE SAME TIME. Otherwise it WILL NOT WORK.
The images were compiled by following the Espressif2Arduino and SonOTA instructions.
from sonota.
OK, thanks for the information. I tried compiling myself just to have the "custom" URL_ROM_2 to point to my PC ip address and now have a different problem that I dont think is related to the sonota script. Thank you for your help. I will for now wait for new developments and try again later.
from sonota.
@mihalski , I followed you method on the basic and this is the output:
13066226-macair:sonota Barend$ python3 sonota.py --wifi-ssid indebuurt1 --wifi-password VnsqrtnrsddbrN 10.23.42.5
** No ip address of the ITEAD DHCP range (10.10.7.0/24) is assigned to any of your interfaces, which means you don't appear to be connected to the IEAD WiFi network.
** Please change into the ITEAD WiFi network (ITEAD-100001XXXX)
** This application can be kept running.
........................................................................................................................................................................................................................................~~ Connection attempt
HTTP GET /10.10.7.1/device
<< {
"deviceid": "10000cb362",
"apikey": "932b4f61-8ed1-4ef9-aa15-f7bf610b62bf",
"accept": "post"
}
HTTP POST /10.10.7.1/ap
%s {
"version": 4,
"ssid": "indebuurt1",
"password": "VnsqrtnrsddbrN",
"serverName": "192.168.8.81",
"port": 4223
}
<< {
"error": 0
}
~~ Provisioning completed
** The IP address of <serve_host> (192.168.8.81) is not assigned to any interface on this machine.
** Please change WiFi network to $ESSID and make sure %s is being assigned to your WiFi interface.
** This application can be kept running.
......~~ Starting web server
~~ Waiting for device to connect
<< HTTP POST /dispatch/device
/dispatch/device
{
"error": 0,
"reason": "ok",
"IP": "192.168.8.81",
"port": 4223
}
2017-07-20 18:26:16,959 (INFO) 200 POST /dispatch/device (192.168.8.92) 1.65ms
2017-07-20 18:26:17,982 (INFO) 101 GET /api/ws (192.168.8.92) 0.77ms
2017-07-20 18:26:17,982 (DEBUG) << WEBSOCKET OPEN
2017-07-20 18:26:18,165 (DEBUG) << WEBSOCKET INPUT
2017-07-20 18:26:18,165 (DEBUG) << {
"userAgent": "device",
"apikey": "932b4f61-8ed1-4ef9-aa15-f7bf610b62bf",
"deviceid": "10000cb362",
"action": "register",
"version": 2,
"romVersion": "1.5.5",
"model": "ITA-GZ1-GL",
"ts": 263
}
2017-07-20 18:26:18,165 (INFO) We are dealing with a ITA-GZ1-GL model.
~~~~ register
>> {
"error": 0,
"deviceid": "10000cb362",
"apikey": "94333198-b682-4e11-ab6e-f5781f496d18",
"config": {
"hb": 1,
"hbInterval": 145
}
}
2017-07-20 18:26:19,361 (DEBUG) << WEBSOCKET INPUT
2017-07-20 18:26:19,361 (DEBUG) << {
"userAgent": "device",
"apikey": "94333198-b682-4e11-ab6e-f5781f496d18",
"deviceid": "10000cb362",
"action": "date"
}
~~~ device sent action request, acknowledging / answering...
~~~~ date
>> {
"error": 0,
"deviceid": "10000cb362",
"apikey": "94333198-b682-4e11-ab6e-f5781f496d18",
"date": "2017-07-20T18:26:19.361Z"
}
2017-07-20 18:26:19,520 (DEBUG) << WEBSOCKET INPUT
2017-07-20 18:26:19,520 (DEBUG) << {
"userAgent": "device",
"apikey": "94333198-b682-4e11-ab6e-f5781f496d18",
"deviceid": "10000cb362",
"action": "update",
"params": {
"switch": "off",
"fwVersion": "1.5.5",
"rssi": -65,
"staMac": "2C:3A:E8:05:58:6C",
"startup": "off"
}
}
~~~ device sent action request, acknowledging / answering...
~~~~ update
>> {
"error": 0,
"deviceid": "10000cb362",
"apikey": "94333198-b682-4e11-ab6e-f5781f496d18"
}
>> {
"action": "update",
"deviceid": "10000cb362",
"apikey": "94333198-b682-4e11-ab6e-f5781f496d18",
"userAgent": "app",
"sequence": "1500567979520",
"ts": 0,
"params": {
"switch": "off"
},
"from": "hackepeter"
}
>> {
"action": "update",
"deviceid": "10000cb362",
"apikey": "94333198-b682-4e11-ab6e-f5781f496d18",
"userAgent": "app",
"sequence": "1500567979521",
"ts": 0,
"params": {
"switch": "on"
},
"from": "hackepeter"
}
>> {
"action": "update",
"deviceid": "10000cb362",
"apikey": "94333198-b682-4e11-ab6e-f5781f496d18",
"userAgent": "app",
"sequence": "1500567979521",
"ts": 0,
"params": {
"switch": "off"
},
"from": "hackepeter"
}
>> {
"action": "update",
"deviceid": "10000cb362",
"apikey": "94333198-b682-4e11-ab6e-f5781f496d18",
"userAgent": "app",
"sequence": "1500567979521",
"ts": 0,
"params": {
"switch": "on"
},
"from": "hackepeter"
}
>> {
"action": "update",
"deviceid": "10000cb362",
"apikey": "94333198-b682-4e11-ab6e-f5781f496d18",
"userAgent": "app",
"sequence": "1500567979521",
"ts": 0,
"params": {
"switch": "off"
},
"from": "hackepeter"
}
>> {
"action": "upgrade",
"deviceid": "10000cb362",
"apikey": "94333198-b682-4e11-ab6e-f5781f496d18",
"userAgent": "app",
"sequence": "1500567979525",
"ts": 0,
"params": {
"binList": [
{
"downloadUrl": "http://192.168.8.81:8080/ota/Espressif2Arduino.ino-0x01000.bin",
"digest": "a37b6962bc851e678a0774723bc9330a44633ae7ed4242140389d0ba6bb719f9",
"name": "user1.bin"
},
{
"downloadUrl": "http://192.168.8.81:8080/ota/Espressif2Arduino.ino-0x81000.bin",
"digest": "745503eedcdb5bbf6bcd798636d42cfbd8a0c7ca626439e615c7801e169cde4e",
"name": "user2.bin"
}
],
"model": "ITA-GZ1-GL",
"version": "23.42.5"
}
}
2017-07-20 18:26:19,955 (DEBUG) << WEBSOCKET INPUT
2017-07-20 18:26:19,956 (DEBUG) << {
"userAgent": "device",
"apikey": "94333198-b682-4e11-ab6e-f5781f496d18",
"deviceid": "10000cb362",
"action": "query",
"params": [
"timers"
]
}
~~~ device sent action request, acknowledging / answering...
~~~~ query
>> {
"error": 0,
"deviceid": "10000cb362",
"apikey": "94333198-b682-4e11-ab6e-f5781f496d18",
"params": 0
}
2017-07-20 18:26:21,211 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1191391529&sign=45e802e7248bed3ef7d8f7519fce8b1f8c6199c3506b33220cb952cc4b9c248e (192.168.8.92) 11.61ms
2017-07-20 18:26:22,402 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=812669700&sign=3d07e63c7411ec8b5cbb99319b1f96819ddfd9b54be7673598cf0eeffc734bfd (192.168.8.92) 1.18ms
2017-07-20 18:26:22,568 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=553475508&sign=e8d15e553ff0aa5379ec97992ffef9d44bb9288845ab849774cb395075b689a9 (192.168.8.92) 1.26ms
2017-07-20 18:26:23,059 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=445349752&sign=2057f40efc6d99b03783ac6e7744ae08e2521ac639cff1e0f0577bf9f41507e6 (192.168.8.92) 1.24ms
2017-07-20 18:26:23,258 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1344887256&sign=ddf35f36733ac5a7d5c6fb4bd5d509a8be4a6a428397379b0ae9d5f63dd03892 (192.168.8.92) 1.25ms
2017-07-20 18:26:23,628 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=730417256&sign=836c93872443bc56a608ca6652047d6fc111d945631d1489412d0cb808656bea (192.168.8.92) 1.21ms
2017-07-20 18:26:24,091 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1812158119&sign=e27e409489796647f2893442bcc98e6868514edb805d4eda33f4acd7c9e5c22b (192.168.8.92) 0.79ms
2017-07-20 18:26:24,257 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=147699711&sign=9996985404212c84344d159ec2c0f042ae415d34e0d303c63aec01d1e17787c8 (192.168.8.92) 1.16ms
2017-07-20 18:26:24,365 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=880268351&sign=062dc5e444ef0ff4761c8695cf9b38281e49354ff3a73a248ddccbdb60ba4bc1 (192.168.8.92) 1.84ms
2017-07-20 18:26:24,495 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1889772843&sign=35402760f6d32db80005ea3466d7cf22d955042dc75ae3da8e4db51fbc82c05e (192.168.8.92) 1.13ms
2017-07-20 18:26:24,615 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=686078705&sign=0b017ea41da428c9cd4e05b3454f11726a72d70a1b7fe937f3e1590cd5ad24f2 (192.168.8.92) 0.78ms
2017-07-20 18:26:24,759 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=2105754108&sign=664e7929e4648870420960c9e784af83dcb874a39a3f596db913bae1b27b3c36 (192.168.8.92) 1.13ms
2017-07-20 18:26:24,871 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=182546393&sign=4e13ee4070878ed5664ea676200e05b55018c047d3a68853d9e5e53e9d1a5071 (192.168.8.92) 1.15ms
2017-07-20 18:26:24,992 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1949118330&sign=8fdc5f1c3f49a1589761de0379076b14df22dad50d6637b20097a953a0a5d09d (192.168.8.92) 1.15ms
2017-07-20 18:26:25,106 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=220137366&sign=df89b107561e3be52d3158261b9e4eed8b33f0ca743028b44afc017f0aa128a0 (192.168.8.92) 1.21ms
2017-07-20 18:26:25,278 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1979932169&sign=75eccb37a380cba81135e937ac6c6174493ef425d989fef07b12d35a35198505 (192.168.8.92) 1.19ms
2017-07-20 18:26:25,411 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1089957932&sign=2a8e4167117f345dd1018426a1b4efda0d38d04c148e4df021e07a0a2257eae9 (192.168.8.92) 1.28ms
2017-07-20 18:26:25,514 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1873226917&sign=625d01e5adf13e55dbe2dcfaf932b3ec5f5c4d0d8441f567ee7087aae52358e1 (192.168.8.92) 0.81ms
2017-07-20 18:26:25,626 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=715669847&sign=c2e5137df304bc24ecfcb63e6d233970bc74d680cf0fea9ff93960c027f690c3 (192.168.8.92) 1.13ms
2017-07-20 18:26:25,762 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1486937972&sign=e8649438cd707c584433cb3e65cd5fe8a57c3428bb299c1befc552868906d4c6 (192.168.8.92) 1.11ms
2017-07-20 18:26:25,902 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1196032868&sign=e8d63a781cd7af0ce6465c0c045160bfe7d6e169954e367d78f08f91ea362ab5 (192.168.8.92) 1.20ms
2017-07-20 18:26:26,061 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=777206980&sign=dced4d595ca728bc4234fe147b992b34d7fee7708dd463f2f9fcaef570d441a7 (192.168.8.92) 1.78ms
2017-07-20 18:26:26,152 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=68706223&sign=30ec0a3e89918ddc4735488b0611392ec89ae44d3a1095d25e6f999c1987c33c (192.168.8.92) 1.18ms
2017-07-20 18:26:26,269 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1843638549&sign=0a2089e255e2fd165d42497305d7bbeca2bfbc165685f9036ce9e0cd8abf48fe (192.168.8.92) 1.13ms
2017-07-20 18:26:26,447 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=212567592&sign=805af36740f074b6c29cb476f903b81492ed100604aa9ff66d6b89b5234c16e2 (192.168.8.92) 1.19ms
2017-07-20 18:26:26,534 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1883488164&sign=ea8f700b0f75003ce55ac706659a7d308ac46a286889281d766e285351ec7fae (192.168.8.92) 1.48ms
2017-07-20 18:26:26,620 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=964776169&sign=a71e96218ceed778a04c884c2d6fc7d0b650f20703b86a2539444d80fe5c6feb (192.168.8.92) 1.21ms
2017-07-20 18:26:26,744 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=928126551&sign=c9bcfb037cd01e92d7256e5e0bb8bbbeef972fe5b9072455177988478dab6059 (192.168.8.92) 1.83ms
2017-07-20 18:26:26,842 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1301950427&sign=31600522bde16e966e2d776f59e6c05ac19d47c3d6396c0e73e79f243e0a0219 (192.168.8.92) 1.19ms
2017-07-20 18:26:26,939 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1992516190&sign=aa74ad22c15be9d202d291c571cc2be30935aeaa18345248abb827aa16eb099d (192.168.8.92) 1.19ms
2017-07-20 18:26:27,022 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1426542624&sign=714c651bad60f19b196e7f519699e063b37eaea9e5442bd0a79d235d8cc77680 (192.168.8.92) 1.15ms
2017-07-20 18:26:27,146 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=849040635&sign=af8eabb10fb23855def49cca0d470071fb1b38f2cf70fa0048cf3797ca295a83 (192.168.8.92) 1.11ms
2017-07-20 18:26:27,265 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=941604920&sign=cfe36a096571ebf33384e049d3545de6d9c901a6e6a5e2cfe80cefab28418ae8 (192.168.8.92) 1.17ms
2017-07-20 18:26:27,352 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1400427944&sign=2fe1a385c6107f55cf71b82268c7898af558bb62c7bef5994938c86459ec215b (192.168.8.92) 1.13ms
2017-07-20 18:26:27,435 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1994719310&sign=2803d373e7d8ca8c9bdefdc1dc32d504a785be079a84057068e08ea304160217 (192.168.8.92) 1.11ms
2017-07-20 18:26:27,573 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=2038269862&sign=35192962deff7891bc7d0e094d344ee4ef801a7e227d989a64a361dc77035702 (192.168.8.92) 1.19ms
2017-07-20 18:26:27,709 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=659998484&sign=759e56199319b6564dd73d7ec0ec9337e880816c13d5d825d014978571f05249 (192.168.8.92) 1.28ms
2017-07-20 18:26:27,826 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1280937363&sign=87a5cc3ba0bcd482f0df7f07a026e41a9428705079c23ec160a997838f6d0bec (192.168.8.92) 1.19ms
2017-07-20 18:26:27,919 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1681643301&sign=5af2f7788c813c9ef66a8f43b7b868e19ef16144d741ae56085f315d1dd324ff (192.168.8.92) 1.20ms
2017-07-20 18:26:28,085 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=725914710&sign=ef3d3becf7db58a726fdc2e0146b17d611eaf76b0b838eb78d65e59dcab26d34 (192.168.8.92) 1.18ms
2017-07-20 18:26:28,198 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1729267236&sign=838bd3af91af1261fc1360d93a1767d02ffa8509d01b1f5dbc62585f1e93f067 (192.168.8.92) 1.20ms
2017-07-20 18:26:28,336 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=2023351876&sign=4b121385e24d377ffa33eaf2e2353d2fc1be486616aadf08c1c6e38f4b080e07 (192.168.8.92) 1.19ms
2017-07-20 18:26:28,433 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=142750431&sign=adb2808fae820d6282fd0f8fe60e520e6f92771ea2d539230690b49f90d472e4 (192.168.8.92) 1.28ms
2017-07-20 18:26:28,563 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1840579929&sign=1f64a691b5946608d91ea8550d0bf03507b396151dd315f7de9eacd2eeeac53b (192.168.8.92) 1.12ms
2017-07-20 18:26:28,726 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=2098560397&sign=db62f6233ab97e1214be72ac931c497f3d9557b91110c521ad92ed0c14abb709 (192.168.8.92) 1.28ms
2017-07-20 18:26:28,855 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1910500675&sign=ae863d7ad54fd9f31426fbb9d91259bbaa5a80f8e9b007c1c13e8e0c51539076 (192.168.8.92) 1.11ms
2017-07-20 18:26:28,951 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1170970491&sign=a789b2cc7bbd1f722fe65d3b8d2a8119b7fc4b3bf2c935b030e970dbdfc76841 (192.168.8.92) 1.11ms
2017-07-20 18:26:29,094 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1856224190&sign=8415a3b2c00d3f68e128cbd95fd874781a68e40d698941d195dca4e777449d0c (192.168.8.92) 1.78ms
2017-07-20 18:26:29,257 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=983059344&sign=70385a65ccc1cb362272f6448046e13b74452db403da5797374fe090948e32cb (192.168.8.92) 1.18ms
2017-07-20 18:26:29,416 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1718458134&sign=f6904a2e20c7e1eb2a4445c1dcca02c19444008b66e523041520f471215ca7ef (192.168.8.92) 1.17ms
2017-07-20 18:26:29,518 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1876268425&sign=74fe9f85cc807e82b88b55f779c63384986380c84576c8e5fea3b9980f476841 (192.168.8.92) 1.12ms
2017-07-20 18:26:29,671 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1764841629&sign=f016c2b5042fabb84a82b2061bf80a179bc454900c98c9a293b9b44c1f3dff4b (192.168.8.92) 1.11ms
2017-07-20 18:26:29,838 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=398844030&sign=3323b8ca59eeddc0f2277593e4fcdcda7bd411fa5175013a23a2eff89dcaf11d (192.168.8.92) 1.20ms
2017-07-20 18:26:30,036 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=185252727&sign=d785df59d47879671a6ed2327a74a729d149197a4dafc02647d7c68eeffcba8b (192.168.8.92) 1.31ms
2017-07-20 18:26:30,174 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1370429126&sign=7343780e17a9de43d396afd0435cce23fcb0e40e81cbad18d6be0c722ec0a940 (192.168.8.92) 1.11ms
2017-07-20 18:26:30,321 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=502141743&sign=85accd0fff0ef8cdf49105cbd6f8af5cf3f0d7943773021f6a26ddbc33df3906 (192.168.8.92) 1.15ms
2017-07-20 18:26:30,458 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=993687334&sign=4737dc03c73d82fce049a9f138b245cd29cfeacea4ab51947747462854620750 (192.168.8.92) 1.13ms
2017-07-20 18:26:30,632 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=15934104&sign=12fdbb8741e5b499513be45d81ee22a437f7f446f8cdb2a77ec72e755ee56d28 (192.168.8.92) 1.16ms
2017-07-20 18:26:30,734 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cb362&ts=1363674760&sign=25e839608313df00e569193cf65542a9436edaf0e9f679dd076f662953cfc110 (192.168.8.92) 1.10ms
2017-07-20 18:26:31,100 (DEBUG) << WEBSOCKET INPUT
2017-07-20 18:26:31,101 (DEBUG) << {
"error": 0,
"userAgent": "device",
"apikey": "94333198-b682-4e11-ab6e-f5781f496d18",
"deviceid": "10000cb362",
"sequence": "1500567979525"
}
2017-07-20 18:26:31,101 (DEBUG) ~~~ device acknowledged our action request (seq 1500567979525) with error code 0
My issue is that after nearly 30min it just stays like this with the green light on the basic flashing fast. I stopped the script, but the basic does not want to go into pairing mode again. I have done it with two of them now and same results with both.
Any idea?
from sonota.
I would expect that it is now trying to join indebuurt1 with the password VnsqrtnrsddbrN.
I'm curious. How is it that the ip for the host you were running on was 10.23.42.5 and the URL's were http://192.168.8.81:8080/ota/Espressif2Arduino.ino-0x01000.bin and http://192.168.8.81:8080/ota/Espressif2Arduino.ino-0x81000.bin?
Doesn't seem to add up.
Here's my run:
python3 sonota.py --wifi-ssid MyWifi --wifi-password mywifipassword 192.168.1.41
** No ip address of the ITEAD DHCP range (10.10.7.0/24) is assigned to any of your interfaces, which means you don't appear to be connected to the IEAD WiFi network.
** Please change into the ITEAD WiFi network (ITEAD-100001XXXX)
** This application can be kept running.
...............................................................................................................................................................................................................................................................................................................................~~ Connection attempt
>> HTTP GET /10.10.7.1/device
<< {
"deviceid": "10000bd80b",
"apikey": "6a2ee380-81f7-4e55-8ace-f7d284f822f9",
"accept": "post"
}
>> HTTP POST /10.10.7.1/ap
>> %s {
"version": 4,
"ssid": "MyWifi",
"password": "mywifipassword",
"serverName": "192.168.1.41",
"port": 4223
}
<< {
"error": 0
}
~~ Provisioning completed
~~ Starting web server
~~ Waiting for device to connect
<< HTTP POST /dispatch/device
>> /dispatch/device
>> {
"error": 0,
"reason": "ok",
"IP": "192.168.1.41",
"port": 4223
}
2017-07-17 16:54:22,707 (INFO) 200 POST /dispatch/device (192.168.1.139) 2.39ms
2017-07-17 16:54:22,884 (INFO) 101 GET /api/ws (192.168.1.139) 0.52ms
2017-07-17 16:54:22,884 (DEBUG) << WEBSOCKET OPEN
2017-07-17 16:54:22,891 (DEBUG) << WEBSOCKET INPUT
2017-07-17 16:54:22,891 (DEBUG) << {
"userAgent": "device",
"apikey": "6a2ee380-81f7-4e55-8ace-f7d284f822f9",
"deviceid": "10000bd80b",
"action": "register",
"version": 2,
"romVersion": "1.5.5",
"model": "ITA-GZ1-GL",
"ts": 744
}
~~~ device sent action request, acknowledging / answering...
2017-07-17 16:54:22,891 (INFO) We are dealing with a ITA-GZ1-GL model.
~~~~ register
>> {
"error": 0,
"deviceid": "10000bd80b",
"apikey": "2b982951-9bc3-4c37-8734-440eb9efacc6",
"config": {
"hb": 1,
"hbInterval": 145
}
}
2017-07-17 16:54:22,898 (DEBUG) << WEBSOCKET INPUT
2017-07-17 16:54:22,898 (DEBUG) << {
"userAgent": "device",
"apikey": "2b982951-9bc3-4c37-8734-440eb9efacc6",
"deviceid": "10000bd80b",
"action": "date"
}
~~~ device sent action request, acknowledging / answering...
~~~~ date
>> {
"error": 0,
"deviceid": "10000bd80b",
"apikey": "2b982951-9bc3-4c37-8734-440eb9efacc6",
"date": "2017-07-17T16:54:22.898Z"
}
2017-07-17 16:54:22,906 (DEBUG) << WEBSOCKET INPUT
2017-07-17 16:54:22,906 (DEBUG) << {
"userAgent": "device",
"apikey": "2b982951-9bc3-4c37-8734-440eb9efacc6",
"deviceid": "10000bd80b",
"action": "update",
"params": {
"switch": "off",
"fwVersion": "1.5.5",
"rssi": -61,
"staMac": "2C:3A:E8:07:C5:B0",
"startup": "off"
}
}
~~~ device sent action request, acknowledging / answering...
~~~~ update
>> {
"error": 0,
"deviceid": "10000bd80b",
"apikey": "2b982951-9bc3-4c37-8734-440eb9efacc6"
}
>> {
"action": "update",
"deviceid": "10000bd80b",
"apikey": "2b982951-9bc3-4c37-8734-440eb9efacc6",
"userAgent": "app",
"sequence": "1500274462906",
"ts": 0,
"params": {
"switch": "off"
},
"from": "hackepeter"
}
>> {
"action": "update",
"deviceid": "10000bd80b",
"apikey": "2b982951-9bc3-4c37-8734-440eb9efacc6",
"userAgent": "app",
"sequence": "1500274462906",
"ts": 0,
"params": {
"switch": "on"
},
"from": "hackepeter"
}
>> {
"action": "update",
"deviceid": "10000bd80b",
"apikey": "2b982951-9bc3-4c37-8734-440eb9efacc6",
"userAgent": "app",
"sequence": "1500274462906",
"ts": 0,
"params": {
"switch": "off"
},
"from": "hackepeter"
}
>> {
"action": "update",
"deviceid": "10000bd80b",
"apikey": "2b982951-9bc3-4c37-8734-440eb9efacc6",
"userAgent": "app",
"sequence": "1500274462906",
"ts": 0,
"params": {
"switch": "on"
},
"from": "hackepeter"
}
>> {
"action": "update",
"deviceid": "10000bd80b",
"apikey": "2b982951-9bc3-4c37-8734-440eb9efacc6",
"userAgent": "app",
"sequence": "1500274462906",
"ts": 0,
"params": {
"switch": "off"
},
"from": "hackepeter"
}
>> {
"action": "upgrade",
"deviceid": "10000bd80b",
"apikey": "2b982951-9bc3-4c37-8734-440eb9efacc6",
"userAgent": "app",
"sequence": "1500274462909",
"ts": 0,
"params": {
"binList": [
{
"downloadUrl": "http://192.168.1.41:8080/ota/Espressif2Arduino.ino-0x01000.bin",
"digest": "a37b6962bc851e678a0774723bc9330a44633ae7ed4242140389d0ba6bb719f9",
"name": "user1.bin"
},
{
"downloadUrl": "http://192.168.1.41:8080/ota/Espressif2Arduino.ino-0x81000.bin",
"digest": "745503eedcdb5bbf6bcd798636d42cfbd8a0c7ca626439e615c7801e169cde4e",
"name": "user2.bin"
}
],
"model": "ITA-GZ1-GL",
"version": "23.42.5"
}
}
2017-07-17 16:54:22,912 (DEBUG) << WEBSOCKET INPUT
2017-07-17 16:54:22,912 (DEBUG) << {
"userAgent": "device",
"apikey": "2b982951-9bc3-4c37-8734-440eb9efacc6",
"deviceid": "10000bd80b",
"action": "query",
"params": [
"timers"
]
}
~~~ device sent action request, acknowledging / answering...
~~~~ query
>> {
"error": 0,
"deviceid": "10000bd80b",
"apikey": "2b982951-9bc3-4c37-8734-440eb9efacc6",
"params": 0
}
2017-07-17 16:54:23,492 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1270216262&sign=244f07e1f07b71233019b10e5944683f9ad8214a9ea9ded4cef4f1ecb4c37c41 (192.168.1.139) 8.61ms
2017-07-17 16:54:23,573 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1191391529&sign=6276c6dc0c821fa7e1188d17b11a55e6027345111d615cefe3fdca26b8329819 (192.168.1.139) 0.58ms
2017-07-17 16:54:23,656 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=812669700&sign=211c9edfba7a4337a87a9c69ad87df067eb030a003a85ec088875f9f0f82fe81 (192.168.1.139) 0.56ms
2017-07-17 16:54:23,727 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=553475508&sign=ec8bee54712f377269017b80473312f1b8e5285cd4166d08b6a43bb8633713d8 (192.168.1.139) 0.61ms
2017-07-17 16:54:23,798 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=445349752&sign=fa30db98b7ce09d65abcb8a72d50add9b3f484a0dc3f451b1758cae50fe4aead (192.168.1.139) 0.55ms
2017-07-17 16:54:23,878 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1344887256&sign=957bf3a7fbeedfa9da6ca41e3980cc1f17260310ad499e1d4213f864207f92b8 (192.168.1.139) 0.55ms
2017-07-17 16:54:23,958 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=730417256&sign=d3403980b5d642e4befef7602613dcefd23b80d78c8d39b2c18af2c718e6814c (192.168.1.139) 0.53ms
2017-07-17 16:54:24,030 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1812158119&sign=c7985eb6c686ad2d19911ea04a95ac2247f491b96b51930e2c675285ba5278b6 (192.168.1.139) 0.55ms
2017-07-17 16:54:24,102 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=147699711&sign=fe1c356b393547ec162d9de50a8f67c138021ee2ede67910f3948834eb4f6c6e (192.168.1.139) 0.68ms
2017-07-17 16:54:24,300 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=880268351&sign=165aa7eb012588c9086d172582ddfe3cd166d3f009888951bf39912fb47ca9e4 (192.168.1.139) 0.65ms
2017-07-17 16:54:24,369 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1889772843&sign=dce2f7be648a7ab95a1f5add761f7d81ba843082ed7dc46cd3726af0797b05e7 (192.168.1.139) 0.56ms
2017-07-17 16:54:24,438 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=686078705&sign=e7464b9dbc189aec79a5e9c3b0731b5831cd74b484bf0464f8bdb89c989f6d4f (192.168.1.139) 0.56ms
2017-07-17 16:54:24,511 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=2105754108&sign=a95d1545c8f8320114fe28f3465d1469fc1f67afeda717228e507d4f362b4a0d (192.168.1.139) 0.58ms
2017-07-17 16:54:24,614 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=182546393&sign=97eac5023a15aa8905158ef7e34072effb9a18b26427d02e2865c53f090c81dc (192.168.1.139) 0.56ms
2017-07-17 16:54:24,685 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1949118330&sign=f4144d42405f80a027ccf561a76a8088d09b96d903f28e40ecd3bac69d620375 (192.168.1.139) 0.55ms
2017-07-17 16:54:24,753 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=220137366&sign=ccf3583e2f8f5ffa21c196c629d2d438ad077497f29435ed0abece99e76d2e38 (192.168.1.139) 0.56ms
2017-07-17 16:54:24,824 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1979932169&sign=3990f82468f36e8ffb89b0a88582cf97f7dfdccd4d5ff1e8db4cabe9f35ad757 (192.168.1.139) 0.63ms
2017-07-17 16:54:24,926 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1089957932&sign=1ff168626f2a185e5df4a080897fd02871856051b872ce5ab6b2129ed6125fa3 (192.168.1.139) 0.63ms
2017-07-17 16:54:25,000 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1873226917&sign=bd8b576d9510622094aa8f3b24c323635e29d561c8fd04a63c76146e97a54335 (192.168.1.139) 0.63ms
2017-07-17 16:54:25,084 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=715669847&sign=b480c000d2cde56d26586fcfe9a5070350e9df6f8e4bc72fb438d329d78ab38d (192.168.1.139) 0.57ms
2017-07-17 16:54:25,159 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1486937972&sign=def04233186d9ef104475a0885915cc59ba40b1aa6e6c297fad0209ca83f6632 (192.168.1.139) 0.54ms
2017-07-17 16:54:25,253 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1196032868&sign=c0b39f370a031730c4f0073c06b85ac05a6c16567c317b46d9632e998dce8842 (192.168.1.139) 0.56ms
2017-07-17 16:54:25,333 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=777206980&sign=2766d236bfb63649dfb6916cdff6be761a9159bd4103c4df7f41b3413e102ce8 (192.168.1.139) 0.55ms
2017-07-17 16:54:25,403 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=68706223&sign=2b868c4f4401f6374237293d34e3d2d9dfe2709cc0887fc7dceb69a8224b0275 (192.168.1.139) 0.57ms
2017-07-17 16:54:25,540 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1843638549&sign=fd827d51443c112ba5fc8b8f2590b2732a83cca821fcd9a67938a2280cc1ef8d (192.168.1.139) 0.56ms
2017-07-17 16:54:25,635 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=212567592&sign=06e5f043dce02df3241baa84d20b87cac1a8275a41ee2996a99cefb9c10a3bfd (192.168.1.139) 0.56ms
2017-07-17 16:54:25,722 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1883488164&sign=7afc84c68facfdfed2f450cb6138373869489e61a537bef8d81f37766f287699 (192.168.1.139) 0.56ms
2017-07-17 16:54:25,792 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=964776169&sign=06f786bca206f2c735e6eb4a61c134ec58d57f0dbf84803ba95e3c84e396ec10 (192.168.1.139) 0.56ms
2017-07-17 16:54:25,865 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=928126551&sign=b68bf59a6082f8a7abc89898ec21a3b97c1eb1ad7b982a075dd907207e2e54a8 (192.168.1.139) 0.57ms
2017-07-17 16:54:25,968 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1301950427&sign=15b15e7030abf30f85aca651646983eec32f1e7c655cbf2bfba45ab24c214ca3 (192.168.1.139) 0.56ms
2017-07-17 16:54:26,059 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1992516190&sign=e9392eb6a725c77ed5ec6b8b7b6d9c064811f320818343095d2ccafa3d16c711 (192.168.1.139) 0.54ms
2017-07-17 16:54:26,129 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1426542624&sign=74675a3682fcc89a4f80eddd08542e840e14606f3954df0145fb78be2ff94943 (192.168.1.139) 0.54ms
2017-07-17 16:54:26,204 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=849040635&sign=5681e556d2dfd93c9be83236aceb34ab9454eab8fbf0ef0ac557caa70fa0ddaa (192.168.1.139) 0.55ms
2017-07-17 16:54:26,299 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=941604920&sign=367f5813dad9efeff4853e02b32ce5e91071f64cbd04fb9b9f223fcf22cd907e (192.168.1.139) 0.57ms
2017-07-17 16:54:26,397 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1400427944&sign=3f2e907155e6b929a2de45cc4603d84622542bc7fcaa40a948e4f802bb6a1a07 (192.168.1.139) 0.59ms
2017-07-17 16:54:26,474 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1994719310&sign=91626003541238d88cd72333a5974e6b9f219e40fdd632ca212678f7dbef25a1 (192.168.1.139) 0.58ms
2017-07-17 16:54:26,543 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=2038269862&sign=69c960cd3700df0442a3ac0ed0a7deb38e5c8303522f20e28967edd5a7a98d47 (192.168.1.139) 0.55ms
2017-07-17 16:54:26,647 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=659998484&sign=af7807e57d0f01c464ab2ea788142956eb9985d515e5fccd429213e03d1f7e39 (192.168.1.139) 0.55ms
2017-07-17 16:54:26,858 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1280937363&sign=3cab8ad646789e5d1e6c2542e8dfb0ea159c19f50997fc188670bdaafd1a4c51 (192.168.1.139) 0.59ms
2017-07-17 16:54:26,938 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1681643301&sign=fa4b0d319f1ea2542018901ef9a45cb89ff28fb7d54c46c71f2b88e2d0f40003 (192.168.1.139) 0.56ms
2017-07-17 16:54:27,002 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=725914710&sign=1868219e3e019286ae560d6eb38dec5d50ad3b7688a628b6487e5c689143bd1c (192.168.1.139) 0.55ms
2017-07-17 16:54:27,097 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1729267236&sign=fc57605912eb184e84da5112f781355cb7d12c04f9321b8170af4706e0a2eb51 (192.168.1.139) 0.56ms
2017-07-17 16:54:27,192 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=2023351876&sign=93ae38afa2236d4fe9571787b2bf3377e2539be44a400b188d0ef94f9ebf0f69 (192.168.1.139) 0.55ms
2017-07-17 16:54:27,280 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=142750431&sign=a62d2bdfbeb148a999c9287fb86a8da9b0ae58bee26469ae523a1cafae2c769c (192.168.1.139) 0.56ms
2017-07-17 16:54:27,344 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1840579929&sign=a1e33f2aafd8f6fb235d62fbc6063d358b836e9178f8a6a0201911a86ad65756 (192.168.1.139) 0.56ms
2017-07-17 16:54:27,438 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=2098560397&sign=9f6e8eb184a9faf2f15a93bab2d0c2e58f65ab10ddbf88882303525f90ad0a43 (192.168.1.139) 0.57ms
2017-07-17 16:54:27,531 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1910500675&sign=2182cd1138bbfa814e636b8b0831b78ae543f31efc8d175cf1f67604607f631a (192.168.1.139) 0.56ms
2017-07-17 16:54:27,622 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1170970491&sign=d19b7878b1271e363cb32264e1e5328a7194ca4985126f4aeb201f90f18ec2e5 (192.168.1.139) 0.56ms
2017-07-17 16:54:27,685 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1856224190&sign=22fa0dc90794367c2dfe1af9f179082b8bbeb2381b0396537a7253a55c860cd4 (192.168.1.139) 0.55ms
2017-07-17 16:54:27,789 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=983059344&sign=e742e28d08b3db9c761268740d9bb70dd4b30ed2dd240662896a905a9cb1ce80 (192.168.1.139) 0.55ms
2017-07-17 16:54:27,882 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1718458134&sign=b24560ed6b6b73df04adf230a0cdff828c2eff48ec3cc1a2243d43e3dff05b0c (192.168.1.139) 0.55ms
2017-07-17 16:54:27,983 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1876268425&sign=bdfbcb671bd96a37e778475b64e436f81f3e2f86ed82b7c2de92ea4a922d953d (192.168.1.139) 0.56ms
2017-07-17 16:54:28,053 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1764841629&sign=e7634fec6ee3cf55c3e31af82f23e1252eead1b0474078d83aacd2650fcd2dbc (192.168.1.139) 0.56ms
2017-07-17 16:54:28,147 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=398844030&sign=4fb8de0362920908f76db6efc645d2254c77f0bad745d39baa49ff04458e2687 (192.168.1.139) 0.54ms
2017-07-17 16:54:28,239 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=185252727&sign=26421a5034cb61ff32eb21a0dd33389d2fd9f820d7b28abadfdf3e5dc986153f (192.168.1.139) 0.55ms
2017-07-17 16:54:28,336 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=1370429126&sign=fad20d45cd7e469737cfcfca72742ca13b1d25cef413bd6d417e0f2b7513dfaa (192.168.1.139) 0.56ms
2017-07-17 16:54:28,411 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=502141743&sign=3701ba9ce487d241a504cedcdcaab1129b498a15bedf3d39da4ad7582df4fb03 (192.168.1.139) 0.56ms
2017-07-17 16:54:28,499 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=993687334&sign=95f3a15161c0eef2f104916bf490050e3e2742650e575d6578e6a947be18ce79 (192.168.1.139) 0.56ms
2017-07-17 16:54:28,591 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000bd80b&ts=15934104&sign=f5124eb297927660226460f8fe7e275522e6372dd7bcd867f1e7f04cee3f34c2 (192.168.1.139) 0.54ms
2017-07-17 16:54:28,926 (DEBUG) << WEBSOCKET INPUT
2017-07-17 16:54:28,927 (DEBUG) << {
"error": 0,
"userAgent": "device",
"apikey": "2b982951-9bc3-4c37-8734-440eb9efacc6",
"deviceid": "10000bd80b",
"sequence": "1500274462909"
}
2017-07-17 16:54:28,927 (DEBUG) ~~~ device acknowledged our action request (seq 1500274462909) with error code 0
^C2017-07-17 17:00:17,108 (INFO) Quitting.
My wifi network has multiple SSID's so I can access it via the default as well as my own SSID/pass. Another thing that might be worth noting is that my Sonoff's Basics were not configured AT ALL. Never connected to them with the mobile app. Straight out of the box.
I've done 2 of them and still have 2 unconfigured for future testing if I ever figure out how to build a docker container that works.
from sonota.
@mihalski thank you for the reply, my network also has multiple SSID's setup, I made one for indebuurt1 as to follow your instructions. As for the 10.23.42.5 that's on me as for I used the old command from the original post and did not edit the IP but the device still seems to have made the connection and pulled the OTA as the IP was hard coded into the script.
Turned them on again this morning and they just keep on flashing fast like they where in pairing mode but no SSID from them and neither do they connect to indebuurt1. I'm a little bit stumped at this stage, just a note my dives where connected to my normal SSID before this and was configured with the standard app.
Only one I have left now is a DUEL but that's also been configured using the OEM app, will see if I can get hold of another few basics and try them without pr-configuring them. But would still like to get these two going that are now just rapidly flashing green
from sonota.
I finally got a computer and extra AP setup to try this out and unfortunately I had the same result as Spokkie. I was trying to flash an S20 (the itead with the outlet builtin), and everything looked good from the script, but the result is that the S20 flashes green quickly and does not connect to the network. Pressing the button does nothing.
Unfortunately the terminal output disappeared when I went to dinner, so I can't post it here, but everything looked pretty much like Spokkie's. Going to try and reset it by FTDI now. Bummed, because this is pretty cool.
I also have two Touches that I am holding off doing, so if anyone gets this script working on a Touch, please document it--it looks more complicated to physically flash it, so I definitely want an OTA solution to do it if possible.
Thanks for all your efforts.
from sonota.
I fully expect this script to at best not work and at work brick anything that is not a Sonoff Basic. Of course it SHOULDN'T be possible to brick the esp8266 but I have no experience recovering them from a bad flash. It would be necessary to do so via an FTDI and if that wasn't working from the outset then there is more to it than following the old FTDI flashing instructions to begin with.
from sonota.
I think I have found an issue with where E2A retrieves the wifi credentials from. Seems to be some difference when using SONOTA and when using the app. I was previously using a device for testing that had used the app at one point but i just got a fresh box of goodies that exhibits similar behaviour.
from sonota.
Definitely not possible to brick them - you can always flash them. Until this is out of BETA would suggest however making sure you do know how to solder :)
from sonota.
I ended up flashing my S20s with FTDI. The one that had failed OTA initially did not flash, but I just kept trying, and eventually something reset--don't ask me what, I have no idea. But persistence paid off.
Another S20 in my pile wasn't so lucky. It flashed and grabs a DHCP lease on 3.3v, but gets no power when plugged into AC. Took me a while to figure out what was happening. Quality control on these units may not be so great, so that may be confusing some of us who are trying to follow along at home when we run into unrelated problems. That said, I've been running four of these for several months without a hitch, and you can't beat the price. It'd just be nice if they had MQTT functionality out of the box....
Good luck all, and thanks. I learn a little more with every try.
from sonota.
I spent a lot of time trying to flash my sonoff with ftdi. I think so have device which is difficult to flash this way. There is some topic about problem with new devices. So tried flash my device ota.
I set my temportal AP with indebuurt1/VnsqrtnrsddbrN and ip addressing 10.10.7.0/24.
and run:
./sonota.py --wifi-ssid indebuurt1 --wifi-password VnsqrtnrsddbrN 10.10.7.3
HTTP GET /10.10.7.1/device
<< {
"apikey": "cfddc5e8-67bb-4d97-9303-d9718b5b2da6",
"deviceid": "10000cbf67",
"accept": "post"
}
HTTP POST /10.10.7.1/ap
%s {
"port": 4223,
"serverName": "10.10.7.3",
"password": "VnsqrtnrsddbrN",
"ssid": "indebuurt1",
"version": 4
}
<< {
"error": 0
}
~~ Provisioning completed
~~ Starting web server
~~ Waiting for device to connect
<< HTTP POST /dispatch/device
/dispatch/device
{
"reason": "ok",
"IP": "10.10.7.3",
"port": 4223,
"error": 0
}
2017-09-27 23:09:19,180 (INFO) 200 POST /dispatch/device (10.10.7.4) 4.37ms
2017-09-27 23:09:19,374 (INFO) 101 GET /api/ws (10.10.7.4) 8.54ms
2017-09-27 23:09:19,375 (DEBUG) << WEBSOCKET OPEN
2017-09-27 23:09:19,385 (DEBUG) << WEBSOCKET INPUT
2017-09-27 23:09:19,387 (DEBUG) << {
"apikey": "cfddc5e8-67bb-4d97-9303-d9718b5b2da6",
"version": 2,
"ts": 530,
"romVersion": "1.5.5",
"deviceid": "10000cbf67",
"userAgent": "device",
"model": "ITA-GZ1-GL",
"action": "register"
}
2017-09-27 23:09:19,387 (INFO) We are dealing with a ITA-GZ1-GL model.
~~~~ register
>> {
"apikey": "e65af018-143f-4a74-ae8b-d2767c63dc4b",
"deviceid": "10000cbf67",
"config": {
"hb": 1,
"hbInterval": 145
},
"error": 0
}
2017-09-27 23:09:19,400 (DEBUG) << WEBSOCKET INPUT
2017-09-27 23:09:19,400 (DEBUG) << {
"apikey": "e65af018-143f-4a74-ae8b-d2767c63dc4b",
"userAgent": "device",
"action": "date",
"deviceid": "10000cbf67"
}
~~~ device sent action request, acknowledging / answering...
~~~~ date
>> {
"date": "2017-09-27T23:09:19.407Z",
"apikey": "e65af018-143f-4a74-ae8b-d2767c63dc4b",
"deviceid": "10000cbf67",
"error": 0
}
2017-09-27 23:09:19,422 (DEBUG) << WEBSOCKET INPUT
2017-09-27 23:09:19,422 (DEBUG) << {
"apikey": "e65af018-143f-4a74-ae8b-d2767c63dc4b",
"params": {
"staMac": "5C:CF:7F:AF:2C:0D",
"switch": "off",
"fwVersion": "1.5.5",
"startup": "off",
"rssi": -16
},
"userAgent": "device",
"action": "update",
"deviceid": "10000cbf67"
}
~~~ device sent action request, acknowledging / answering...
~~~~ update
>> {
"apikey": "e65af018-143f-4a74-ae8b-d2767c63dc4b",
"deviceid": "10000cbf67",
"error": 0
}
>> {
"from": "hackepeter",
"apikey": "e65af018-143f-4a74-ae8b-d2767c63dc4b",
"ts": 0,
"sequence": "1506546559423",
"params": {
"switch": "off"
},
"deviceid": "10000cbf67",
"userAgent": "app",
"action": "update"
}
>> {
"from": "hackepeter",
"apikey": "e65af018-143f-4a74-ae8b-d2767c63dc4b",
"ts": 0,
"sequence": "1506546559424",
"params": {
"switch": "on"
},
"deviceid": "10000cbf67",
"userAgent": "app",
"action": "update"
}
>> {
"from": "hackepeter",
"apikey": "e65af018-143f-4a74-ae8b-d2767c63dc4b",
"ts": 0,
"sequence": "1506546559424",
"params": {
"switch": "off"
},
"deviceid": "10000cbf67",
"userAgent": "app",
"action": "update"
}
>> {
"from": "hackepeter",
"apikey": "e65af018-143f-4a74-ae8b-d2767c63dc4b",
"ts": 0,
"sequence": "1506546559426",
"params": {
"switch": "on"
},
"deviceid": "10000cbf67",
"userAgent": "app",
"action": "update"
}
>> {
"from": "hackepeter",
"apikey": "e65af018-143f-4a74-ae8b-d2767c63dc4b",
"ts": 0,
"sequence": "1506546559427",
"params": {
"switch": "off"
},
"deviceid": "10000cbf67",
"userAgent": "app",
"action": "update"
}
>> {
"apikey": "e65af018-143f-4a74-ae8b-d2767c63dc4b",
"ts": 0,
"sequence": "1506546559434",
"params": {
"model": "ITA-GZ1-GL",
"binList": [
{
"name": "user1.bin",
"digest": "a37b6962bc851e678a0774723bc9330a44633ae7ed4242140389d0ba6bb719f9",
"downloadUrl": "http://10.10.7.3:8080/ota/Espressif2Arduino.ino-0x01000.bin"
},
{
"name": "user2.bin",
"digest": "745503eedcdb5bbf6bcd798636d42cfbd8a0c7ca626439e615c7801e169cde4e",
"downloadUrl": "http://10.10.7.3:8080/ota/Espressif2Arduino.ino-0x81000.bin"
}
],
"version": "23.42.5"
},
"deviceid": "10000cbf67",
"userAgent": "app",
"action": "upgrade"
}
2017-09-27 23:09:19,439 (DEBUG) << WEBSOCKET INPUT
2017-09-27 23:09:19,441 (DEBUG) << {
"apikey": "e65af018-143f-4a74-ae8b-d2767c63dc4b",
"params": [
"timers"
],
"userAgent": "device",
"action": "query",
"deviceid": "10000cbf67"
}
~~~ device sent action request, acknowledging / answering...
~~~~ query
>> {
"apikey": "e65af018-143f-4a74-ae8b-d2767c63dc4b",
"params": 0,
"deviceid": "10000cbf67",
"error": 0
}
2017-09-27 23:09:21,039 (DEBUG) << WEBSOCKET INPUT
2017-09-27 23:09:21,040 (DEBUG) << {
"sequence": "1506546559427",
"apikey": "e65af018-143f-4a74-ae8b-d2767c63dc4b",
"userAgent": "device",
"deviceid": "10000cbf67",
"error": 0
}
2017-09-27 23:09:21,040 (DEBUG) ~~~ device acknowledged our action request (seq 1506546559427) with error code 0
2017-09-27 23:09:21,146 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=812669700&sign=b9ed7b8bd99b5b3731ec0f62df4a9f906fadaccdafb3e87eb385e7c35c01f993 (10.10.7.4) 12.61ms
2017-09-27 23:09:21,212 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=553475508&sign=c716f853548aee18f9fd4016e408d7916e37adba7ceadd525b7e2e0e0bd05c0a (10.10.7.4) 0.92ms
2017-09-27 23:09:21,281 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=445349752&sign=63744fb3fd09b2c4420294a67b4954d3780f254b97f68c1d3ceaef4f55439f21 (10.10.7.4) 0.89ms
2017-09-27 23:09:21,354 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1344887256&sign=4bf1b8fbd6f1286a46fd6215a3ab54e2e60a6b6661237065d0eba816ea1f86ab (10.10.7.4) 0.93ms
2017-09-27 23:09:21,424 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=730417256&sign=e8be5eccf9eacc8cb4a26efe02f1bed05de4e7cb715a29a2678846627e2b4277 (10.10.7.4) 1.80ms
2017-09-27 23:09:21,490 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1812158119&sign=253e47035a4d2cdb40ed14bc9ff1450e9fb41d0f984ad2b546021e79d254248f (10.10.7.4) 1.70ms
2017-09-27 23:09:21,557 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=147699711&sign=a1ad4b58d7cd59beaf7bb7e2d2fcae9b590760fe4cd7e71b3fa7aa2fee9bafd9 (10.10.7.4) 1.86ms
2017-09-27 23:09:21,647 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=880268351&sign=fd0831bb6daf57297f8e31b80193eaefc8c8e3cff4d182239b5e746c61e31970 (10.10.7.4) 8.40ms
2017-09-27 23:09:21,714 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1889772843&sign=6eb43dc5efce63d8d35cb527ebe1c2ae4e87ceea7e5e75737358de365717d605 (10.10.7.4) 3.16ms
2017-09-27 23:09:21,787 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=686078705&sign=f8e6cfbbd4780efa8da391d3681c3a1d295da537a4b7a61204d63c047735d22c (10.10.7.4) 3.14ms
2017-09-27 23:09:21,856 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=2105754108&sign=f7a4d0d788d970c7232c402fe559a5dfe5537a3032f9417bc1a734a9929f2bac (10.10.7.4) 1.33ms
2017-09-27 23:09:21,942 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=182546393&sign=fefac29c2b3df9a7f8bd6c33c9c186d9d3534c8f9b8b2c5c158941fad69e00ea (10.10.7.4) 1.60ms
2017-09-27 23:09:22,011 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1949118330&sign=7ff271ecf09d346fc6d8b648f0bfb92bad148813cd929c8e5e91110acf01192a (10.10.7.4) 0.88ms
2017-09-27 23:09:22,076 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=220137366&sign=da8b0e1312cac874648d9f276626929ec169f503b8fa27d0801dc1d4cabfa861 (10.10.7.4) 0.86ms
2017-09-27 23:09:22,141 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1979932169&sign=5dd4e11d3d257848d5cd468d198fe12849cf12dbe3973ee7a9fc66954f75b4b9 (10.10.7.4) 1.14ms
2017-09-27 23:09:22,234 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1089957932&sign=a311eb740e2a18b0399f53d6a12e139ff44094b1c16d59bf44d3b0e13398d8cf (10.10.7.4) 1.02ms
2017-09-27 23:09:22,305 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1873226917&sign=7dea42580d49ac245de98602741e45d02dfa2fb009d47620ddb7d745ccdb9643 (10.10.7.4) 2.00ms
2017-09-27 23:09:22,401 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=715669847&sign=5ac19fdda34415ba82b49391176648aabb9fcf448d81fdef1b70f458cd07cebe (10.10.7.4) 3.22ms
2017-09-27 23:09:22,473 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1486937972&sign=e27fad1648d689922ede5bef9f71afc4e6392a1991be7da73fb529ec03755d13 (10.10.7.4) 3.65ms
2017-09-27 23:09:22,575 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1196032868&sign=864f64b0fcfd5e6603e8bba73d1076b6423676bbc3ec7e31e825492f7fc86e8e (10.10.7.4) 1.09ms
2017-09-27 23:09:22,654 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=777206980&sign=7d4e402d8dbef52199739699acb61c5314b7e82a3be3e8d24d6cb3d8f5f82b6e (10.10.7.4) 3.59ms
2017-09-27 23:09:22,729 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=68706223&sign=a6ac1787dc11233a99446d96698f74778e514b3d806d72d2daec20e4f5141147 (10.10.7.4) 2.28ms
2017-09-27 23:09:22,806 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1843638549&sign=18d449fde3247433e731e7c9c6ef16fc6123167dfe3841c7ecc1094231a5d0e0 (10.10.7.4) 2.19ms
2017-09-27 23:09:22,904 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=212567592&sign=74d3ba2ecd3e27fcb400971b16857d6ad97f8bdf015d75e31b7192f3ca7b2dd4 (10.10.7.4) 1.90ms
2017-09-27 23:09:22,987 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1883488164&sign=5fa8a4660a10425abd6e60e0c4d7ecc2da3b2a80a1138466cd2ac96783ad6cde (10.10.7.4) 1.74ms
2017-09-27 23:09:23,053 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=964776169&sign=2d30af4c0c2eca1d8bfa91ab2d3fe5e0adcb66a7286cdc44688b9c1530f52f94 (10.10.7.4) 3.52ms
2017-09-27 23:09:23,121 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=928126551&sign=591e54dcb89fcf0df0512f1d9a6c6262fec9626913094cca69cff8ba3a93bdec (10.10.7.4) 1.22ms
2017-09-27 23:09:23,218 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1301950427&sign=4276ab0177155f80a00c215aca0661805bdf739a848f3508daed071381f4e202 (10.10.7.4) 2.93ms
2017-09-27 23:09:23,308 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1992516190&sign=4ad49a709b450978f0f440d99629c5c0f137fd1a0916fea2b5edb3e7819e01d7 (10.10.7.4) 1.28ms
2017-09-27 23:09:23,375 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1426542624&sign=1cb41110e89d35dd6ea79a33ba2e928696996808643651b9fa32daee22a5d95d (10.10.7.4) 1.71ms
2017-09-27 23:09:23,441 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=849040635&sign=95967cdb086bc1d3cd57de52d4c38cba7389605552949c9ee66dfae43b5717e5 (10.10.7.4) 0.89ms
2017-09-27 23:09:23,535 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=941604920&sign=1bf6b7a68381389e58f015437dfa48e6ff0d46ee9925d92732c08a04077d7738 (10.10.7.4) 3.18ms
2017-09-27 23:09:23,634 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1400427944&sign=e10f3abab38da8006a31ef23b497a65061548f172389fd67bc613c9cf880a541 (10.10.7.4) 2.02ms
2017-09-27 23:09:23,704 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1994719310&sign=40acc3d2a65a5813008db1f864de6196a74e65bbc43163297a569d44dfcf835a (10.10.7.4) 8.12ms
2017-09-27 23:09:23,769 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=2038269862&sign=52b8e223cc4c13847980677bca3c2d9dd689f486ec4142eabb23d4dd66627e74 (10.10.7.4) 4.78ms
2017-09-27 23:09:23,871 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=659998484&sign=7dfdcb5e570881f4e1164beccfb0fea37f9ccde8f52c851b1d70a12e6258298b (10.10.7.4) 3.87ms
2017-09-27 23:09:23,973 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1280937363&sign=b0f57d0e580dd66ceee88842e1e95e8251eb19f545296ab06dc13102f0388106 (10.10.7.4) 3.31ms
2017-09-27 23:09:24,048 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1681643301&sign=cf6fae423283881234b6d448d7e713a64e4315761480eb2ba0efbcf35dd78267 (10.10.7.4) 0.99ms
2017-09-27 23:09:24,111 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=725914710&sign=5b128d6e710f690f3a2585dde1f4c8b0ecdc90539bdf4bdb2588578a001bbbb1 (10.10.7.4) 2.13ms
2017-09-27 23:09:24,204 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1729267236&sign=fe7cd967d27c42c8974a6b82ae4c0ee6821dcd4d6a1da544a85b2603ea7169a1 (10.10.7.4) 1.06ms
2017-09-27 23:09:24,300 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=2023351876&sign=d3d1de8b7f8b4a62bf5146213d32cccf67e20368143f572d5eb43f93e13e1ae0 (10.10.7.4) 2.12ms
2017-09-27 23:09:24,380 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=142750431&sign=b563662d890b5fb3075c4cc34604b257449f1f4c15abdc6294552876265a1ebb (10.10.7.4) 2.00ms
2017-09-27 23:09:24,452 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1840579929&sign=a07c7ed4d76ae0caefddcd7d2e1a7279f84522f4643c2ef81d89611571769dac (10.10.7.4) 4.53ms
2017-09-27 23:09:24,546 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=2098560397&sign=b4224c614cf500209331fe8e53a8fa8bb434a483de5f18714dbf58b7134f6fbe (10.10.7.4) 1.75ms
2017-09-27 23:09:24,646 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1910500675&sign=7ce72f6531dc50bf558d5befac02b31a6c2381fc51b6cb1e405b953a11f6b42d (10.10.7.4) 4.61ms
2017-09-27 23:09:24,737 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1170970491&sign=4136f8edc964f06a32433d237fed3dcb5fac2806d7a78cae90cc064498af711d (10.10.7.4) 3.75ms
2017-09-27 23:09:24,848 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1856224190&sign=b26d65433aa10eaab47cff3d6d5a9fde2477b3b02a063c3869d173b07d885a31 (10.10.7.4) 5.90ms
2017-09-27 23:09:24,940 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=983059344&sign=f0170581fb19fd8e2e1eb31980ad7e7f54ef8401db9af27e65bd8ab6197d9e62 (10.10.7.4) 1.08ms
2017-09-27 23:09:25,044 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1718458134&sign=15d405cfd447e7072d262cba2b778f0a09837a839787729c6afe96e941ee7363 (10.10.7.4) 1.09ms
2017-09-27 23:09:25,151 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1876268425&sign=94eaaee293bd67f0810d6e23db9432ce046fa3875dab1908b77dc6fc902d9c71 (10.10.7.4) 4.19ms
2017-09-27 23:09:25,218 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1764841629&sign=7ede5779674e3d09f067e998abf6d4b61390d3629e8a0a35729de392578f2ba4 (10.10.7.4) 3.53ms
2017-09-27 23:09:25,313 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=398844030&sign=f2c5f475af03d137163cf023612deed420124e44aa90b9db5f667488cfc0348d (10.10.7.4) 1.00ms
2017-09-27 23:09:25,414 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=185252727&sign=22be00cf374dccaa0cacbdd2b189ce931e115e5e832c45ae5b33981d2d961fa5 (10.10.7.4) 1.69ms
2017-09-27 23:09:25,522 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1370429126&sign=292e25f23a7b629f4ac3ba4d12caacf2f5a7700929c459c39c1b2ec8f7b02787 (10.10.7.4) 11.07ms
2017-09-27 23:09:25,588 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=502141743&sign=dedeb7764ee6261a320d980c08c9d3dc36b914d97a8f77502fd9e24ae59bd940 (10.10.7.4) 0.83ms
2017-09-27 23:09:25,680 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=993687334&sign=32b28571cd558687fcb9516bcb068aca79cc5e46ebd0658ccf6b1c3da7cb941a (10.10.7.4) 1.90ms
2017-09-27 23:09:25,779 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=15934104&sign=1ae08f0547bfbf8eda860e6477c9edd86fced21f55e86640f0a98d760087fac3 (10.10.7.4) 3.82ms
2017-09-27 23:09:25,877 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=1363674760&sign=12aaa0af5eb2b66a00df5eff835559502dfee7e67a3496edc377f6b7c51faadb (10.10.7.4) 3.21ms
2017-09-27 23:09:25,966 (INFO) 206 GET /ota/Espressif2Arduino.ino-0x81000.bin?deviceid=10000cbf67&ts=904629749&sign=bd29c6c36455093d07066b98ec8a1284b45e47df68d4fe9b21cd60be5dc9ed51 (10.10.7.4) 3.00ms
2017-09-27 23:09:26,307 (DEBUG) << WEBSOCKET INPUT
2017-09-27 23:09:26,308 (DEBUG) << {
"sequence": "1506546559434",
"apikey": "e65af018-143f-4a74-ae8b-d2767c63dc4b",
"userAgent": "device",
"deviceid": "10000cbf67",
"error": 0
}
2017-09-27 23:09:26,309 (DEBUG) ~~~ device acknowledged our action request (seq 1506546559434) with error code 0
I think this is ok.
After that my sonoff relay switched 2 times and rebooted.
Now I have situation where my sonoff is flashing like in paring. I'm stuck without access. Do You have any idea what I can do ?
I think it's bricked.
Thanks 4 help.
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.