Coder Social home page Coder Social logo

biss-firmwareserver's Introduction

BISS Firmware Server

BISS-logo

λΈ”λ‘μ²΄μΈμœΌλ‘œ λ§Œλ“œλŠ” μ•ˆμ „ν•œ IoT

Workflow

  1. * - Check existence and Register device
  2. Application - Upload firmware file, with device names to update2
  3. Server
    1. Write random file key in blockchain
    2. Save file ID, file key, file hash and download URL to DB
    3. Update document with transaction hash when the receipt returns
    4. Provide API with update status(with transaction hash and file ID) or emit some event to device
  4. Device - check for updates
    1. Use the transaction hash to get the file key from the blockchain
    2. Send found key with the file ID to server and receive the download URL
    3. Download the firmware from the recieved URL
  5. Device - validation of downloaded firmware
    1. Calculate the MD5 sum of the file and send validation request to server
    2. Server compares the hash and (if correct) mark the upload as complete, respond to client
    3. Device updates itself if the response is valid

API

Models

Device

{
    "_id": "string",
    "name": "string",
    "wallet": "string",
    "update": "string"
}

File

{
    "_id": "string",
    "route": "string",
    "key": "string",
    "hash": "string",
    "txHash": "string"
}

Log

{
    "_id": "string",
    "timestamp": 0,
    "type": "string",
    "json": {}
}

biss-firmwareserver's People

Contributors

junhoyeo avatar

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.