Giter VIP home page Giter VIP logo

Comments (2)

jkandasa avatar jkandasa commented on June 18, 2024

Adding code to print last Block, First Block and every 100th block in sensors log

from mycontroller-v1-legacy.

jkandasa avatar jkandasa commented on June 18, 2024

Now we can track firmware upgrade status via sensors log message,

Sample:

Oct 22, 2015 1:00:01 PM Sensor Stream   Sent    [ST_FIRMWARE_RESPONSE], [NodeId:3, SensorId:255, PayLoad: 0100020000000C946C000C94C9120C94F6120C949400], Block No:0
Oct 22, 2015 1:00:01 PM Sensor Stream   Received    [ST_FIRMWARE_REQUEST], [NodeId:3, SensorId:255, PayLoad: 010002000000], Block No: 0
Oct 22, 2015 12:59:55 PM    Sensor Stream   Sent    [ST_FIRMWARE_RESPONSE], [NodeId:3, SensorId:255, PayLoad: 010002006400241B350B260F371FC901DF91CF911F91], Block No:100
Oct 22, 2015 12:59:55 PM    Sensor Stream   Received    [ST_FIRMWARE_REQUEST], [NodeId:3, SensorId:255, PayLoad: 010002006400], Block No: 100
Oct 22, 2015 12:59:48 PM    Sensor Stream   Sent    [ST_FIRMWARE_RESPONSE], [NodeId:3, SensorId:255, PayLoad: 01000200c800F801E259FF4F6491F6014381C6010E94], Block No:200
Oct 22, 2015 12:59:48 PM    Sensor Stream   Received    [ST_FIRMWARE_REQUEST], [NodeId:3, SensorId:255, PayLoad: 01000200C800], Block No: 200
Oct 22, 2015 12:59:41 PM    Sensor Stream   Sent    [ST_FIRMWARE_RESPONSE], [NodeId:3, SensorId:255, PayLoad: 010002002c0181110FC0403151056105710550F080E0], Block No:300
Oct 22, 2015 12:59:41 PM    Sensor Stream   Received    [ST_FIRMWARE_REQUEST], [NodeId:3, SensorId:255, PayLoad: 010002002C01], Block No: 300
Oct 22, 2015 12:59:33 PM    Sensor Stream   Sent    [ST_FIRMWARE_RESPONSE], [NodeId:3, SensorId:255, PayLoad: 010002009001B801C70107960E94540ABC01C7010F90], Block No:400
Oct 22, 2015 12:59:33 PM    Sensor Stream   Received    [ST_FIRMWARE_REQUEST], [NodeId:3, SensorId:255, PayLoad: 010002009001], Block No: 400
Oct 22, 2015 12:59:25 PM    Sensor Stream   Sent    [ST_FIRMWARE_RESPONSE], [NodeId:3, SensorId:255, PayLoad: 01000200f4010B2D1C2D2D2D372F472D582D60E0C201], Block No:500
Oct 22, 2015 12:59:25 PM    Sensor Stream   Received    [ST_FIRMWARE_REQUEST], [NodeId:3, SensorId:255, PayLoad: 01000200F401], Block No: 500
Oct 22, 2015 12:59:18 PM    Sensor Stream   Sent    [ST_FIRMWARE_RESPONSE], [NodeId:3, SensorId:255, PayLoad: 010002005802E82FF0E0EE0FFF1FEF54FD4F11821082], Block No:600
Oct 22, 2015 12:59:18 PM    Sensor Stream   Received    [ST_FIRMWARE_REQUEST], [NodeId:3, SensorId:255, PayLoad: 010002005802], Block No: 600
Oct 22, 2015 12:59:11 PM    Sensor Stream   Sent    [ST_FIRMWARE_RESPONSE], [NodeId:3, SensorId:255, PayLoad: 01000200bc02EACFC6DFA0F3959FD1F3950F50E0551F], Block No:700
Oct 22, 2015 12:59:11 PM    Sensor Stream   Received    [ST_FIRMWARE_REQUEST], [NodeId:3, SensorId:255, PayLoad: 01000200BC02], Block No: 700
Oct 22, 2015 12:59:05 PM    Sensor Stream   Sent    [ST_FIRMWARE_RESPONSE], [NodeId:3, SensorId:255, PayLoad: 010002001703FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF], Block No:791
Oct 22, 2015 12:59:05 PM    Sensor Stream   Received    [ST_FIRMWARE_REQUEST], [NodeId:3, SensorId:255, PayLoad: 010002001703], Block No: 791

from mycontroller-v1-legacy.

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.