<?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>Trying to run the RTC sample code from ncs/zephyr/samples/drivers with the ns board.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51803/trying-to-run-the-rtc-sample-code-from-ncs-zephyr-samples-drivers-with-the-ns-board</link><description>Dear All, 
 I am trying to compile and run the ncs/zephyr/samples/drivers on the nrf9160_pca10090ns. For this reason, I have copy-pasted the file under the ncs/nrf/samples/nrf9160 folder. I also followed the advice in this post in order to allow the rtc</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Sep 2019 11:35:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51803/trying-to-run-the-rtc-sample-code-from-ncs-zephyr-samples-drivers-with-the-ns-board" /><item><title>RE: Trying to run the RTC sample code from ncs/zephyr/samples/drivers with the ns board.</title><link>https://devzone.nordicsemi.com/thread/208453?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2019 11:35:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75976307-fd30-4128-bee0-c185d97bd4f1</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;My bad, I confused the +cclk command with the %xtime command, which should give you the network time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to run the RTC sample code from ncs/zephyr/samples/drivers with the ns board.</title><link>https://devzone.nordicsemi.com/thread/208435?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2019 10:44:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1248bbf0-e5b7-40ce-b433-47bfbe0e8ef4</guid><dc:creator>Giannis Anastasopoulos</dc:creator><description>&lt;p&gt;Perhaps, in order to make my situation more clear to you, I have a requirement to send messages with a timestamp, every so often and also, while my application is working, I need to monitor at what moment a certain event occurred. What I noticed is that different networks have different behaviour on the AT+CCLK? command and because I need my application to work universally, I cannot rely on getting my time from the network.&lt;br /&gt;&lt;br /&gt;Instead, now I am getting the EPOCH time from my server once a day (let&amp;#39;s say) and I want to update that time every second in a power efficient way, so that the device keeps track of the EPOCH time, without querying my server all the time. So I wonder if there is a solution that will allow me to do that while in PSM, or when the device is in sleep mode.&lt;br /&gt;&lt;br /&gt;Any suggestions are very much welcome!&lt;/p&gt;
&lt;div id="simple-translate"&gt;
&lt;div&gt;
&lt;div class="simple-translate-button " style="height:22px;left:10px;top:10px;width:22px;"&gt;&lt;/div&gt;
&lt;div class="simple-translate-panel " style="background-color:#ffffff;font-size:13px;height:200px;left:0px;top:0px;width:300px;"&gt;
&lt;div class="simple-translate-result-wrapper" style="overflow:hidden;"&gt;
&lt;p class="simple-translate-result" style="color:#000000;"&gt;&lt;/p&gt;
&lt;p class="simple-translate-candidate" style="color:#737373;"&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to run the RTC sample code from ncs/zephyr/samples/drivers with the ns board.</title><link>https://devzone.nordicsemi.com/thread/208397?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2019 08:01:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5488ce4c-529f-4b04-8273-46cc007ab651</guid><dc:creator>Giannis Anastasopoulos</dc:creator><description>&lt;p&gt;Thank you for your response Hakon. The result of the CCLK command is the following:&lt;br /&gt;&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/2080x1920/__key/communityserver-discussions-components-files/4/pastedimage1567756805149v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Which is the time that my device has been active and not the network time. So is there a way to get the network time instead of this?&lt;/p&gt;
&lt;div id="simple-translate"&gt;
&lt;div&gt;
&lt;div class="simple-translate-button " style="height:22px;left:10px;top:10px;width:22px;"&gt;&lt;/div&gt;
&lt;div class="simple-translate-panel " style="background-color:#ffffff;font-size:13px;height:200px;left:0px;top:0px;width:300px;"&gt;
&lt;div class="simple-translate-result-wrapper" style="overflow:hidden;"&gt;
&lt;p class="simple-translate-result" style="color:#000000;"&gt;&lt;/p&gt;
&lt;p class="simple-translate-candidate" style="color:#737373;"&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to run the RTC sample code from ncs/zephyr/samples/drivers with the ns board.</title><link>https://devzone.nordicsemi.com/thread/208394?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2019 07:50:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02461b17-1e05-4859-88c5-fbbcc80bf079</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;There is the at+cclk command that you can use to get a timestamp from the network, and as previously mentioned the zephyr kernel API can be used to implement a counter. I linked to the documentation in the previous comment, everything you need to know should be found there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to run the RTC sample code from ncs/zephyr/samples/drivers with the ns board.</title><link>https://devzone.nordicsemi.com/thread/208306?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2019 16:42:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a0c7757-66dc-476d-a1e2-2fe0e4900ab7</guid><dc:creator>Giannis Anastasopoulos</dc:creator><description>&lt;p&gt;Hakon thank you for your reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My application needs to transmit some data with utc timestamps. What I intended to do is get the time from Internet every so often (once a day let&amp;#39;s say) and then have the rtc counting from the moment I last received my timestamp.&lt;/p&gt;
&lt;p&gt;Is there a convinient way of doing this?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to run the RTC sample code from ncs/zephyr/samples/drivers with the ns board.</title><link>https://devzone.nordicsemi.com/thread/208297?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2019 16:08:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fc974cd-cc86-42f8-a1e9-589aa7f127e2</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;The rtc sample hasn&amp;#39;t been ported yet. If you want a similar functionality you can use the &lt;a href="https://docs.zephyrproject.org/1.11.0/kernel/timing/timers.html"&gt;zephyr kernel timer&lt;/a&gt; instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to run the RTC sample code from ncs/zephyr/samples/drivers with the ns board.</title><link>https://devzone.nordicsemi.com/thread/208274?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2019 14:29:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8132b898-bf28-42a2-9647-6b124a6ed937</guid><dc:creator>Giannis Anastasopoulos</dc:creator><description>&lt;p&gt;If I comment out the CONFIG_RTC=y line from the prj.conf file the project will load but when I try to compile it, it will fail at this point #include &amp;lt;drivers/rtc.h&amp;gt;&lt;/p&gt;
&lt;div id="simple-translate"&gt;
&lt;div&gt;
&lt;div class="simple-translate-button " style="height:22px;left:10px;top:10px;width:22px;"&gt;&lt;/div&gt;
&lt;div class="simple-translate-panel " style="background-color:#ffffff;font-size:13px;height:200px;left:0px;top:0px;width:300px;"&gt;
&lt;div class="simple-translate-result-wrapper" style="overflow:hidden;"&gt;
&lt;p class="simple-translate-result" style="color:#000000;"&gt;&lt;/p&gt;
&lt;p class="simple-translate-candidate" style="color:#737373;"&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>