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

BLE Mesh Time Synchronization

My goal is to synchronize the clocks of several nodes in a mesh network. I would like the client node to distribute the current time to all the server nodes in the network. Would broadcasting a time-stamp from the client be a solution? The client should afterwards expect an acknowledge from all servers within a given time-frame. I realize this will probably be a very poor form of synchronization, but I don't know exactly how awful it is.

Is there any functionality for this purpose in the 0.10-alpha SDK or elsewhere? I would assume something performing the synchronization at a lower layer in the stack.

Parents Reply
  • Hi,

    I read that blog post  and confirmed that the sample project in github(nRF5-ble-timesync-demo) worked fine with two nRF52DK boards. After that, I merged the project with the light switch example in mesh SDK(v2.2.0). 

    Unfortunately,  nrf_stack_init() calls timeslot_start() function and  sd_radio_session_open() in it returns NRF_ERROR_BUSY. (called the same function in ts_enable() in time_sync.c before)

    So, Is it possible to coexist meshSDK with the time synch functionality written in the blog post?

    Regards,

    Kenji

Children
Related