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

How to synchronize time across multiple nrf5340?

Hi,

We are trying to synchronize time across 3 nrf5340, where one will be master and the other 2 nrf5340 will have to synchronize their time with the master.

1. All 3 devices will have BLE functionality. Just with BLE stack on all 3 devices, Can we expect synchronization between master and the 2 slaves. If so, what is the deviation possible in the 3 devices?

2. For other Nordic platforms, we see there is softdevice support to synchronize clocks with multiple devices. Is there any equivalent samples available for nrf5340 with zephyr?

Regards,

Divya 

Parents
  • Hi Divya

    Sigurd is out of office, so I'm taking over the case in his stead. The samples are not the same, but the basic concept in the guide is, where each node (all three nRF5340s) keeps a free-running timer with a counter. This free-running timer is still the basis for the synchronization, where one node will be the master, with a goal to have the other nodes synchronize their timers with the master. There will be some adjustments to the sample necessary of course, but by following the same principles as in the blog post Sigurd linked to, you should be able to achieve the same for your 5340s.

    Best regards,

    Simon

Reply
  • Hi Divya

    Sigurd is out of office, so I'm taking over the case in his stead. The samples are not the same, but the basic concept in the guide is, where each node (all three nRF5340s) keeps a free-running timer with a counter. This free-running timer is still the basis for the synchronization, where one node will be the master, with a goal to have the other nodes synchronize their timers with the master. There will be some adjustments to the sample necessary of course, but by following the same principles as in the blog post Sigurd linked to, you should be able to achieve the same for your 5340s.

    Best regards,

    Simon

Children
Related