Skip to content

RTC Time Date out of the box feature request #35333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cederom opened this issue May 17, 2021 · 7 comments
Open

RTC Time Date out of the box feature request #35333

cederom opened this issue May 17, 2021 · 7 comments
Assignees
Labels
area: RTC Real Time Clock Enhancement Changes/Updates/Additions to existing features

Comments

@cederom
Copy link

cederom commented May 17, 2021

Is your feature request related to a problem? Please describe.

  • Currently there is no Time Date framework in Zephyr. We need to create by hand this functionality.

Describe the solution you'd like

  • Time Date functionality with full POSIX support.
  • Time Date set to match current time.
  • Time Date is preserved across reboot/reset (edit: mandatory).
  • Edit: small RAM footprint (not necessarily POSIX may be internal).
  • Edit: Unix Epoch timestamp integer (or better uint64_t) is minimal requirement and most of cases enough, also ISO8601 datestring in UTC/ZULU would be nice to have :-)

Describe alternatives you've considered

  • I am using nRF52 chip and NRF SDK or POSIX+uptime functions to use RTC "by hand", but this is not preserved across reboot.

Additional context

  • Common OS Time Date seems very important functionality not only for basic functions but also from a security standpoint.

Please consider implementing. Thank you :-)

@MaureenHelm MaureenHelm added the Enhancement Changes/Updates/Additions to existing features label May 18, 2021
@nimarty
Copy link
Contributor

nimarty commented May 19, 2021

I was also looking exactly for such a feature. I'm coming from Linux where I used stime() from std C Lib to set system time and sync it to hwclock. I would appreciate to see something similar in Zepyhr in the future.

@manoj153
Copy link
Contributor

What is the plan to move this forward?
Can someone share? I can put a PR.

@henrikbrixandersen henrikbrixandersen added the area: RTC Real Time Clock label Nov 17, 2022
@arbrauns
Copy link
Contributor

arbrauns commented Apr 5, 2023

#52618 has taken the first step here by implementing an RTC driver framework.

Still missing is the integration with POSIX time functions, and of course actual drivers for RTC peripherals.

@zephyrbot
Copy link
Collaborator

Hi @bjarki-trackunit,

This issue, marked as an Enhancement, was opened a while ago and did not get any traction. It was just assigned to you based on the labels. If you don't consider yourself the right person to address this issue, please re-assing it to the right person.

Please take a moment to review if the issue is still relevant to the project. If it is, please provide feedback and direction on how to move forward. If it is not, has already been addressed, is a duplicate, or is no longer relevant, please close it with a short comment explaining the reason.

@cederom you are also encouraged to help moving this issue forward by providing additional information and confirming this request/issue is still relevant to you.

Thanks!

@cederom
Copy link
Author

cederom commented Feb 8, 2024

I have moved to NuttX RTOS some time ago so not relevant for me anymore. If not implemented yet then not relevant for anyone else. Closing. Thanks :-)

@cederom cederom closed this as completed Feb 8, 2024
@arbrauns
Copy link
Contributor

arbrauns commented Feb 9, 2024

Please reopen, just because you don't use Zephyr anymore doesn't mean the issue has fixed itself.

@cederom
Copy link
Author

cederom commented Feb 9, 2024

Ah, it was not completed, true :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: RTC Real Time Clock Enhancement Changes/Updates/Additions to existing features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants