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

How to use Time-sync in nrf52840

I am using Nordic's nRF52840 DK board.

I wanted to sync time on End Device(nrf52840DK Board) via sending packets to it. What should I do?

what clock/rtc library or API's do I need to use to read or write to the RTC on the board.

Parents Reply
  • I wanted to sync time on End Device(nrf52840DK Board) via sending packets to it. What should I do?

    Could you explain this some more.

    1) What do you mean by sending packets to it ? Is this BLE packets?

    2) What type of device is sending the packets to the nRF52840 ?

    3) what data is the device sending to the nRF52840? updated clock data?

    Can somebody explain to me what is meant by calibrated and uncalibrated time in this example

    You can update the time with the function nrf_cal_set_time() several times. The second time you call the function, it will calculate the difference between the first and the second time you set. Based on this difference it will produce a "m_calibrate_factor" that is used to estimate the drift the clock had. When knowing how much the clock is drifting, we can adjust for this in the “calibrated” time.

Children
Related