This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Problem: RTC for calendar to set date, time wake up sensor device.

Hello Nordic team,

I am using nRf52840 DK and sdk 15.0 with SES IDE. Our application scenario is collect sensor data periodically as required customer and send it to server for analysis. For achieving real time clock and calendar i am using nrf5-calendar-example and also able to complied and set date time. Now problem is to set custom time for wake up sensor device like work as cron scheduler.

Here is bellow questions:

  1. How i can set wake up time like specific date or only for some days in week(Mon, wen, Fri), Does this available in nrf_calendar lib?
  2. Does it possible to implement cron scheduler in nRf52840 using nrf-calendar lib and merge this lib cronexpr_lib.
  3. If yes, will you please guide me how i can compile or set required parameter to work cron scheduler in nordic SDK.

Looking forward your response..!!

Thanks...!!!!

Parents
  • Hi,

    The example you refer to seems to simply wakeup every 1minute to keep track of time (e.g. increment minute counter), then the minute counter is added to the time set during init. There is no other functionality.

    I assume you can in calendar_updated() check the return value from current time (nrf_cal_get_time_string()), and add specific action you would like to do at certain times?

    Best regards,
    Kenneth

Reply
  • Hi,

    The example you refer to seems to simply wakeup every 1minute to keep track of time (e.g. increment minute counter), then the minute counter is added to the time set during init. There is no other functionality.

    I assume you can in calendar_updated() check the return value from current time (nrf_cal_get_time_string()), and add specific action you would like to do at certain times?

    Best regards,
    Kenneth

Children
Related