<?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>auto update cts</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83373/auto-update-cts</link><description>Hi All, 
 i have implemented peripheral_cts_client example 
 but i want to read value once from nrf_connect_app(cts server) then cts has to maintain the time and update it 
 how can i do this ? 
 
 Regards 
 Tushar</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Jan 2022 15:48:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83373/auto-update-cts" /><item><title>RE: auto update cts</title><link>https://devzone.nordicsemi.com/thread/346538?ContentTypeID=1</link><pubDate>Thu, 06 Jan 2022 15:48:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4786542-0ddc-4ce2-88ba-8847f45a8992</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;I should mention first that time keeping based on something like the RTC will be hard to keep accurate, especially long term. If you are fine with like 21.6 second drift every day, but it gets synced every so often to compensate then its OK, though you should sync. If you let that run for 1 year without syncing it will drift to be a few hours off. &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/12791/problem-with-rtc-counting/48618#48618"&gt;Take a look here&lt;/a&gt;. And note that in System OFF mode the RTC is off.&lt;/p&gt;
&lt;p&gt;We do have some unofficial examples on how this can be done though.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/nrf5-calendar-example"&gt;For an example on how you can keep time using nRF5 SDK, see here.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/Rallare/fw-nrfconnect-nrf/tree/nrf9160_samples/samples/nrf9160/nrfx/rtc"&gt;For an example on how you can keep time using nRF Connect SDK, see here.&lt;/a&gt; &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/76568/can-i-use-two-rtc-in-nrf5340/317572#317572"&gt;And here is another.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>