<?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>Real Time Clock and calender Implementation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53458/real-time-clock-and-calender-implementation</link><description>Hi, 
 Considering https://devzone.nordicsemi.com/f/nordic-q-a/29013/best-way-to-implement-system-clock-on-nrf51 as reference and some other similar posts.I could reach to a point of understanding that inorder to implement Real Time Clock it requires Real</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Nov 2020 12:24:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53458/real-time-clock-and-calender-implementation" /><item><title>RE: Real Time Clock and calender Implementation</title><link>https://devzone.nordicsemi.com/thread/278432?ContentTypeID=1</link><pubDate>Wed, 04 Nov 2020 12:24:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f968f38c-98bc-43dc-97d1-1fc953433570</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The calendar implementation is based on the tm struct which does not have milliseconds, so you would have to use something else. I do not have any specific recommendations.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Real Time Clock and calender Implementation</title><link>https://devzone.nordicsemi.com/thread/278360?ContentTypeID=1</link><pubDate>Wed, 04 Nov 2020 05:07:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b30c778d-481a-4720-81d7-193b9ebc0e62</guid><dc:creator>manikandan</dc:creator><description>&lt;p&gt;can u also tell me how can i get millioseonds using nrf calendar ??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Real Time Clock and calender Implementation</title><link>https://devzone.nordicsemi.com/thread/278301?ContentTypeID=1</link><pubDate>Tue, 03 Nov 2020 14:21:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:793fcf3f-8b4c-4eab-aacc-3658bc6ae3b6</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can refer to the Current Time Application example. which implements a current time service client. You can take this as a reference and combine with the &lt;a href="https://github.com/NordicPlayground/nrf5-calendar-example"&gt;nrf calendar example&lt;/a&gt;, but you need to modify the example a bit to work properly with a SoftDevice. It probably makes more sense to use it for inspiration and copy in what you need, and for instance use the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_timer.html"&gt;app_timer library&lt;/a&gt; to generate regular ticks instead of using an RTC directly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Real Time Clock and calender Implementation</title><link>https://devzone.nordicsemi.com/thread/278245?ContentTypeID=1</link><pubDate>Tue, 03 Nov 2020 11:18:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c02785b-19d7-4795-8497-6f118ce98cd7</guid><dc:creator>manikandan</dc:creator><description>&lt;p&gt;how can i include a current time service client to retrieve date and time can i merge this with nrf calendar example ??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Real Time Clock and calender Implementation</title><link>https://devzone.nordicsemi.com/thread/215963?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2019 13:54:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbfab2cc-d7d4-4b47-b5e7-871b61b34a11</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is no SDK example implementing a calendar, but you can keep track of time using the app_timer as you write. This way you do not need an extra RTC instance, and the average accuracy will be identical to the accuracy of your LF crystal. The nRF specific implementation is quite easy. The simplest would be to use a repeated app_timer instance that wakes up every second, and update the real-time calendar data and display at that point (assuming it shows seconds). If it updates less frequently, you could, for instance, make the RTC wake the system every minute and update the display and real-time calendar data then.&lt;/p&gt;
&lt;p&gt;There is no way to keep track of time with an nRF when in system off mode. By definition, there are no clocks running in system off mode. If you need that, then you need to use an external RTC device. However, you can, of course, device a scheme were after reset the display will not show the time (or show an error of some sort, until the time has been set). If you are making a BLE device, then the obvious way to et time is via BLE.&lt;/p&gt;
&lt;p&gt;Smartphones implement a current time service, so you could&amp;nbsp;include a current time service client on the nRF that retrieves the current time from the smartphone and sets the internal calendar accordingly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>