Code Monkey home page Code Monkey logo

Comments (2)

Damian-Nordic avatar Damian-Nordic commented on September 26, 2024

I'm not sure if the test case is valid given that according to the spec "The TotalOperationalHours attribute SHALL indicate a best-effort attempt at tracking the length of time".

Overall, those "best-effort" features in Matter are very hard to verify. In this case, the challenge to implement this accurately is that storing the total operational hours too frequently into persistent storage would needlessly wear the flash. Given this and that the attribute has rather low significance for the user, we decided to save the attribute into flash every 10 hours (this is configurable with CONFIG_CHIP_OPERATIONAL_TIME_SAVE_INTERVAL Kconfig option).

I can see that other platforms don't do even that and only save this value when the platform is gracefully shutdown, so if I understand correctly, hard reset will lose the number of operational hours since the last boot.

from connectedhomeip.

Yinxq avatar Yinxq commented on September 26, 2024

Hi @Damian-Nordic. Thanks so much for your quick reply! I confirmed again that this is an optional test, and your approach is much more appropriate. So I will close this issue.

from connectedhomeip.

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.