current time service and calendar in nrf connect sdk

Hey there, Dev team!

I was wondering if you could help me out with using the "peripheral_cts_client" sample (struct bt_cts_current_time *current_time) to synchronize a timestamp of date and time (in the format like dd.mm.yyyy hh:mm:ss) on the peripheral, even when it's disconnected from the Bluetooth server. Essentially, I want to create a timekeeper that works like the calendar code for nrf5.

To do this, I'm planning on following these steps: 1) use the server to set the time on the peripheral device, 2) disconnect the Bluetooth connection, and 3) store the date and time when the button is pressed in non-volatile memory.

I'm currently using the nrf connect app on an iOS phone as the server and the nrf52 dk board as the peripheral with nrf connect sdk v2.3.0.

Thanks in advance for your help!

Parents Reply
  • Hey Einar!

    I just wanted to say thanks for your help in clarifying things for me. With your guidance, I was able to successfully add the date and time feature to my application!

    However, I do have a question about the accuracy of the rtCounter when it comes to maintaining time on the board. Do you happen to know if the oscillator is 250 ppm? And if so, do you have any suggestions on how to improve the accuracy? Thanks so much!

Children
Related