<?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>Timer synchronous using Precision Time Protocol</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85490/timer-synchronous-using-precision-time-protocol</link><description>Dear all, 
 I want to implement precision clock synchronisation between two Nordic NRF52840DK devices, I have seen the example using the Timeslot API with the Nordic SDK, but I want to implement 
 this with Precision Time Protocol,that is I need to retrieve</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Mar 2022 12:56:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85490/timer-synchronous-using-precision-time-protocol" /><item><title>RE: Timer synchronous using Precision Time Protocol</title><link>https://devzone.nordicsemi.com/thread/359132?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 12:56:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9789de0b-b7db-4ddb-9d81-3de7180db028</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I would recommend looking over the code in &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/mpsl/timeslot/README.html"&gt;this MPSL timeslot sample&lt;/a&gt; to see how the timeslot API in NCS is used.&lt;/p&gt;
&lt;p&gt;-Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer synchronous using Precision Time Protocol</title><link>https://devzone.nordicsemi.com/thread/358116?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2022 07:57:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e2d3f02-b04e-4840-8dfd-4b2ed44a78b5</guid><dc:creator>HaoHuang</dc:creator><description>&lt;p&gt;Actually,I think taking the time slot example is more reasonable,I think I will put more attention on this approach.By the way, Although the the example use the nRF5 SDK but the the controller is softdevice controller which is same as the NCS example I use.&lt;/p&gt;
&lt;p&gt;What part or what&amp;#39;s the API should I replace? Could you please point this out to me?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;hao&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer synchronous using Precision Time Protocol</title><link>https://devzone.nordicsemi.com/thread/358011?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 14:56:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf26ffd9-5ef3-49c9-82b4-de826a4d0428</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Just to clarify I assume you are only implementing something&amp;nbsp;&lt;em&gt;similar&lt;/em&gt; to PTP since PTP is developed for Ethernet networks?&lt;/p&gt;
&lt;p&gt;What API are you planning to use to send your packets?&lt;/p&gt;
&lt;p&gt;Depending on what you&amp;#39;re using your best bet might be to make a timestamp with something like&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/kernel/timing/clocks.html#c.k_uptime_ticks"&gt;k_uptime_ticks&lt;/a&gt;&amp;nbsp;right before you send your packet.&lt;/p&gt;
&lt;p&gt;-Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer synchronous using Precision Time Protocol</title><link>https://devzone.nordicsemi.com/thread/357807?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 04:26:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31af7dd8-8228-43bc-9276-012be2a43292</guid><dc:creator>HaoHuang</dc:creator><description>&lt;p&gt;Thanks for your kindly reply! The example you post is what I am referring to,In our use case,we want to calculate the packet latency from sender&amp;#39;s application to receivers&amp;#39;s application, so we retrieve time_stamp1 (t1) at app of sender and t2 at app of receiver. To get t2-t1 as transmission latency,the timer(or clock) at each side should be synchronized or in other word we need to know the offset of two timers.&lt;/p&gt;
&lt;p&gt;As a beginner, modifying the&amp;nbsp;&lt;span&gt;example using the Timeslot API for NCS is quite difficult for me,is there any sample code for NCS can approach this,I really need this,thanks a lot !!!!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;hao&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer synchronous using Precision Time Protocol</title><link>https://devzone.nordicsemi.com/thread/356827?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2022 10:18:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6ef69d0-c8f5-4fb8-9118-733f839999d5</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy/posts/wireless-timer-synchronization-among-nrf5-devices"&gt;Is this the example using the Timeslot API&lt;/a&gt; you&amp;#39;re referring to?&lt;/p&gt;
&lt;p&gt;In case you weren&amp;#39;t aware, there&amp;#39;s also a &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/mpsl/doc/timeslot.html"&gt;newer Timeslot API for NCS&lt;/a&gt;, with a sample found &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/mpsl/timeslot/README.html"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The post you linked to doesn&amp;#39;t seem to refer to an API, but suggests altering the Zephyr source code directly from what I can see.&lt;/p&gt;
&lt;p&gt;The SoftDevice controller is not open source, so that&amp;#39;s not an option in this case.&lt;/p&gt;
&lt;p&gt;You&amp;#39;ll have to talk with the Bluetooth controller either through &lt;a href="https://docs.zephyrproject.org/latest/reference/bluetooth/index.html"&gt;Zephyr&amp;#39;s Bluetooth Host API&lt;/a&gt;, or through &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/mpsl/README.html"&gt;nrfxlib&amp;#39;s MPSL library&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>