Giter VIP home page Giter VIP logo

Comments (1)

harlem88 avatar harlem88 commented on June 11, 2024

OTA flowchart with new status:

flowchart TD
    INIT[[INIT]]
    ACKNOWLEDGED:::sBlock
    DOWNLOADING:::sBlock
    ERROR:::sBlock
    DEPLOYING:::sBlock
    DEPLOYED:::sBlock
    REBOOTING:::sBlock
    FAILURE

    INIT -->|Receive OTA Request| HANDLE_OTA_REQ{handle request}
    HANDLE_OTA_REQ --> |UpdateInProgress| FAILURE[FAILURE]
    HANDLE_OTA_REQ --> |Invalid Request| FAILURE[FAILURE]
    HANDLE_OTA_REQ --> CANCELLING(Cancelling)
    CANCELLING --> HANDLE_OTA_CANCEL_REQ{ ACKN <= state < DING }
    HANDLE_OTA_CANCEL_REQ --> |Cancelled|FAILURE
    FAILURE --> INIT
    HANDLE_OTA_REQ --> ACKNOWLEDGED
    ACKNOWLEDGED --> DOWNLOADING
    DOWNLOADING:::sBlock --> DownRes{ok}
    DownRes{ok} --> |NetworkFAILURE|ERROR
    ERROR --> CHECK_NETWORK_ERR{err < max_retry}
    CHECK_NETWORK_ERR --> DOWNLOADING
    CHECK_NETWORK_ERR --> |NetworkFAILURE|FAILURE
    DownRes{ok} --> |IOFAILURE/InternalFAILURE|FAILURE
    DownRes{ok} --> CHECK_BUNDLE
    CHECK_BUNDLE{verify image} --> |InvalidBaseImage|FAILURE
    CHECK_BUNDLE{verify image} --> DEPLOYING
    DEPLOYING --> DEPLOYING_RESULT{ok}
    DEPLOYING_RESULT --> |Deploying FAILURE|FAILURE
    DEPLOYING_RESULT --> DEPLOYED(DEPLOYED)
    DEPLOYED --> REBOOTING
    REBOOTING --> REB_RESULT{ok}
    REB_RESULT --> |SystemRollback/?|FAILURE
    REB_RESULT --> Success
    Success --> INIT
    
    style FAILURE fill:#f44336,color:#fff
    style INIT fill:#9E9E9E,color:#fff	
    style Success fill:#4CAF50,color:#fff
    classDef sBlock fill:#2196F3,color:#fff
    classDef cBlock fill:#000000,color:#fff
    classDef rBlock fill:#FFEB3G,color:#fff

from edgehog-device-runtime.

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.