Comments (5)
I got further with my T1 but now it's stuck in Final Stage. Is there a way to tell the script to pick off at that point?
Having played a bit further, it is possible to skip ahead in the script but alternating between HOMENET and Final Stage.
Running netstat shows that my PC never receives a connection from 192.168.4.1 when connected to FInal Stage.
Is there something that can be done or do I need to wiring up a data connection?
(Would be useful for the script to show whether a connection has been made and how much data has been sent or better still a percentage)
from sonota.
@apathyuk When I get a chance I'll make it easier to select which stage to start at. At the moment you can use --no-prov
and that'll get you to stage 2, and (in theory) when you connect to "FinalStage", it should move to stage 3 (the FinalStage). Especially if running on Windows, it's important to ensure that your Firwall is turned off during this process as inbound connections will be blocked otherwise.
@hutchwilco This line suggests the download completed:
2017-09-27 21:43:35,666 (INFO) 200 GET /ota/image_user2-0x81000.bin (192.168.4.1) 7100.75ms
I'm not sure what happened after that as it should just work - I would try a full power cycle of the Sonoff and see what you get after the reboot.
from sonota.
@sillyfrog thanks yes, I figured the download was fine. A full power cycle just left the sonoff creating the FinalStage SSID. Of course the server script had completed and there was no way (that I knew) to start the server at the FinalStage part of the script again.
In the end I flashed it via serial, will try again for the next hardware.
from sonota.
@hutchwilco Let me know how you go - I think what happened (and this appears to be very rare!), the active image has in the "user2" space (ie: the second half of the flash). The idea is it should have downloaded user1 (which it did), then it would be in FinalStage mode, and and get user2 (which it also did).
The issue then is the script saw that FinalStage had gone away, so it exited (and there is no easy way to get back to stage 3). I'll have a think as to the best way to address that (with out having to start at stage 3 again - which I'm looking to do anyway).
The most common case in the Sonoff gets user2 straight up, so there is no need to hang around for 2 instances of FinalStage - hence not something I have seen before. (And working on this is tricky as once the Sonoff firmware is replaced, I have not found a way to restore it, so each full run requires a new Sonoff).
Thanks for getting back to me, and if you do see thing again, let me know and hopefully I'll be able to come up with a solution.
from sonota.
Confirming that I have made some changes to fix this now in the DOUT-mode
branch. This will likely become master shortly, should you come across this again.
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.