-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stuck in FinalStage - Sonoff TH16, MacOS #24
Comments
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) |
@apathyuk When I get a chance I'll make it easier to select which stage to start at. At the moment you can use @hutchwilco This line suggests the download completed: 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. |
@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. |
@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. |
Confirming that I have made some changes to fix this now in the |
Stuck in FinalStage AP mode currently.
By my reading there are no glaring errors - see output below. Any advice? Cycling power returns to FInalStage, button appears to do nothing, I don't seem to have an OTA recovery option - serial it is then? Or can I step through the script to pickup at FinalStage again?
How long should I expect the flashing to take place during FinalStage? I think I gave it a good 5 minutes, but it never connected to the SSID again.
@mirko ?
EDIT:
Watching the serial output (no surprises) shows the "FinalStage" boot and "Connecting..." output.
Clearly waiting to contact the OTA server that isn't there anymore.
The text was updated successfully, but these errors were encountered: