<?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>clock sync using periodic advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113561/clock-sync-using-periodic-advertising</link><description>I want to sync the clocks of 2 BLE devices as accurate as possible. 
 My thought was to use periodic advertising, because the radio opening window is 30[usec] so this accuracy is very good for my needs. 
 Now I only need to call k_uptime_get() just before</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Aug 2024 20:31:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113561/clock-sync-using-periodic-advertising" /><item><title>RE: clock sync using periodic advertising</title><link>https://devzone.nordicsemi.com/thread/496714?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 20:31:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e1b2f97-5e27-4629-abb8-65ff275b8ac6</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Dor Sadeh,&lt;/p&gt;
&lt;p&gt;You can use&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/protocols/bt/ble/radio_notification_conn_cb.html"&gt;Radio Notification callback&lt;/a&gt;&amp;nbsp;to get a callback when the RADIO peripheral is started or stopped. It seems this feature is new&amp;nbsp;and hasn&amp;#39;t been included in an official SDK release yet, however.&lt;/p&gt;
&lt;p&gt;You could also use PPI to connect a GPIO output event to a relevant RADIO event, and&amp;nbsp;then&amp;nbsp;connect the GPIO output to a GPIO input for an interrupt.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/samples/bluetooth/iso_time_sync/README.html"&gt;Bluetooth: ISO time synchronization (nordicsemi.com)&lt;/a&gt;&amp;nbsp;is also a&amp;nbsp;solution for time sync.&lt;/p&gt;
&lt;p&gt;Finally, there is also a proprietary time sync solution from Nordic, but this&amp;nbsp;also seems not released yet. It is demonstrated here:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/conn_time_sync/README.html"&gt;Bluetooth: Connection time synchronization (nordicsemi.com)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>