Giter Site home page Giter Site logo

Comments (5)

apathyuk avatar apathyuk commented on June 21, 2024

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.

sillyfrog avatar sillyfrog commented on June 21, 2024

@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.

hutchwilco avatar hutchwilco commented on June 21, 2024

@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.

sillyfrog avatar sillyfrog commented on June 21, 2024

@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.

sillyfrog avatar sillyfrog commented on June 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.