<?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>How to use Time-sync in nrf52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56237/how-to-use-time-sync-in-nrf52840</link><description>I am using Nordic&amp;#39;s nRF52840 DK board. 
 I wanted to sync time on End Device(nrf52840DK Board) via sending packets to it. What should I do? 
 what clock/rtc library or API&amp;#39;s do I need to use to read or write to the RTC on the board.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Jan 2020 14:53:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56237/how-to-use-time-sync-in-nrf52840" /><item><title>RE: How to use Time-sync in nrf52840</title><link>https://devzone.nordicsemi.com/thread/228622?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2020 14:53:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b0d460a-124a-4edb-b32e-316082be8496</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Ok. If you want to a local clock running on your end-device, then the nrf5-calendar-example is good starting point.&amp;nbsp;The&amp;nbsp;&lt;span&gt;nrf5-calendar-example&lt;/span&gt; example uses &lt;a href="https://github.com/NordicPlayground/nrf5-calendar-example/blob/master/nrf_calendar.h#L20"&gt;RTC0 by default&lt;/a&gt;, you should change this to use RTC3 when integrating it in the Thread application. Might also want to set&amp;nbsp;&lt;span&gt;CAL_RTC_IRQ_Priority to 6&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use Time-sync in nrf52840</title><link>https://devzone.nordicsemi.com/thread/228386?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2020 14:25:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:221f4d06-5932-46dc-8b41-289130cfa535</guid><dc:creator>Yogeshwar</dc:creator><description>&lt;ul&gt;
&lt;li&gt;By packet here I meant Thread packets&lt;/li&gt;
&lt;li&gt;My thread Network gateway is sending the packets&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Yes, the data here is updated clock data&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use Time-sync in nrf52840</title><link>https://devzone.nordicsemi.com/thread/228334?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2020 11:45:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ba2322f-ae60-4d68-b10a-81099258c595</guid><dc:creator>Sigurd</dc:creator><description>[quote userid="80579" url="~/f/nordic-q-a/56237/how-to-use-time-sync-in-nrf52840"]I&amp;nbsp;wanted to sync time&amp;nbsp;on End Device(nrf52840DK Board)&amp;nbsp;via sending packets to it. What should I do?[/quote]
&lt;p&gt;Could you explain this some more.&lt;/p&gt;
&lt;p&gt;1) What do you mean by sending packets to it ? Is this BLE packets?&lt;/p&gt;
&lt;p&gt;2) What type of device is sending the packets to the nRF52840 ?&lt;/p&gt;
&lt;p&gt;3) what data is the device sending to the nRF52840? updated&amp;nbsp;clock data?&lt;/p&gt;
[quote userid="80579" url="~/f/nordic-q-a/56237/how-to-use-time-sync-in-nrf52840/228033"]Can somebody explain to me what is meant by calibrated and uncalibrated time in this example[/quote]
&lt;p&gt;You can update the time with the function&amp;nbsp;nrf_cal_set_time() several times. The second time you call the function, it will calculate the difference between the first and the second time you set. Based on this difference it will produce a &amp;quot;m_calibrate_factor&amp;quot; that is used to estimate the drift the clock had. When knowing how much the clock is drifting, we can adjust for this in the &amp;ldquo;calibrated&amp;rdquo; time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use Time-sync in nrf52840</title><link>https://devzone.nordicsemi.com/thread/228033?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2020 07:45:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0687138-f965-4014-83a3-ed9795a2d7a6</guid><dc:creator>Yogeshwar</dc:creator><description>&lt;p&gt;I took a reference from&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/nrf5-calendar-example"&gt;https://github.com/NordicPlayground/nrf5-calendar-example&lt;/a&gt;,&lt;br /&gt;but there were certain things I didn&amp;#39;t get.&lt;/p&gt;
&lt;p&gt;Can somebody explain to me what is meant by calibrated and uncalibrated time in this example&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>