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

RTC implementation ( Optimum power usage )

I would like to have track time of the day in my peripheral (s110)application. I understood that RTC0 is used by Soft device. RTC1 is used by app_timer application. I have already used app_timer functionality for various timeout conditions.

Based on the time of the day I want to change my device advertising interval in order to save battery. So someone can suggest an optimized method to implement calendar functionality (resolution wise it is ok in terms of hours) without effecting app_timer function call. Thanks & Regards, Raju

Parents
  • You have two challenges:

    1. Synchronizing. You need a way to start your app_timer in a calibrated way to assure you are synchronized with the outside world as you count. A BLE event or Button push can accomplish this

    2. Counting, At your calibrated synchronization event, just start an app_timer which is REPEATING and have handler function increment a variable. You can set your timeout to be either in minutes, 5minutes, 10minutes..etc what ever counting resolution you want.

Reply
  • You have two challenges:

    1. Synchronizing. You need a way to start your app_timer in a calibrated way to assure you are synchronized with the outside world as you count. A BLE event or Button push can accomplish this

    2. Counting, At your calibrated synchronization event, just start an app_timer which is REPEATING and have handler function increment a variable. You can set your timeout to be either in minutes, 5minutes, 10minutes..etc what ever counting resolution you want.

Children
No Data
Related