<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>synchronization between nRF52s</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77228/synchronization-between-nrf52s</link><description>Hi, I&amp;#39;m developing some products and i need my all devices to synchronize within 10ms difference, using UTC Time standard 
 Here is basic concept that i want to do for my project. 
 
 
 And i know there must be time latency through BT so that nRF52 (A</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Jul 2021 14:55:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77228/synchronization-between-nrf52s" /><item><title>RE: synchronization between nRF52s</title><link>https://devzone.nordicsemi.com/thread/319227?ContentTypeID=1</link><pubDate>Thu, 08 Jul 2021 14:55:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c6c9644-aebc-47c8-83ca-67825e0b2b30</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;For starters, the blogpost suggested by Eugene is a very good place to start for this particular topic when you require high accuracy on the synchronization. This method will give you the highest accuracy of your synchronization in comparison to my following suggestion. However, I thought I should include the following suggestion as an option for a simpler implementation, albeit with less accuracy, since you have a 10 ms window you need to be synchronized within.&lt;/p&gt;
[quote user=""]And i know there must be time latency through BT so that nRF52 (A) is not able to get &amp;quot;exact&amp;quot; time compared with nRF52 (B)[/quote]
&lt;p&gt;As an alternative to the approach detailed in the blogpost I suppose you could also consider using&amp;nbsp;a 10 ms connection interval, and then making use of the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sds_s132/SDS/s1xx/radio_notif/radio_notif.html"&gt;Radio Notifications&lt;/a&gt;&amp;nbsp;of the SoftDevice which will generate an event on both devices roughly at the same time. The lesser accuracy of this approach primarily stems from the drift of the low frequency clock source of the devices, and the fact that the SoftDevice itself accounts for the estimated drift by expanding the radio windows accordingly. The feasibility of this approach depends entirely on your application&amp;#39;s real-time requirements.&lt;br /&gt;&lt;br /&gt;There will of course be some drift between the devices over time, but if you transfer the value of LFCLK ticks passed since the last Radio notification on device A to device B, you could do a comparison with the passed LFCLK ticks on device B for the same period, and then adjust it according to device A, for instance. If you do these comparisons while every so often pulling the UTC time from both sources, you should be able to stay well within the 10 ms synchronization window.&lt;br /&gt;&lt;br /&gt;The SoftDevice uses the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.2.0/group___n_r_f___c_l_o_c_k___l_f___a_c_c_u_r_a_c_y.html"&gt;clock accuracy config&lt;/a&gt; to determine how much it might have drifted since last connection event. The estimated drift is accounted for by increasing the radio window to encompass this drift.&lt;br /&gt;If minimizing this drift is of high importance for the application, you might also look into adding a higher-accuracy LFXTAL and use that your for your low frequency clock source (LFCLK).&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: synchronization between nRF52s</title><link>https://devzone.nordicsemi.com/thread/319063?ContentTypeID=1</link><pubDate>Thu, 08 Jul 2021 06:44:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ac4dc0d-b5ba-4da8-ac18-e392fd6c4379</guid><dc:creator>Eugene Yu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/wireless-timer-synchronization-among-nrf5-devices"&gt;blog post &lt;/a&gt;may help you to create the idea.&lt;/p&gt;
&lt;p&gt;but you should know that there are multiple factors to degrade the performance such as distance, rf environment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>