<?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>LTE network time from nrf9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45814/lte-network-time-from-nrf9160</link><description>Hi, 
 Is it possible get the network UTC time from the LTE-modem? P ossibly using AT commands.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Apr 2022 13:50:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45814/lte-network-time-from-nrf9160" /><item><title>RE: LTE network time from nrf9160</title><link>https://devzone.nordicsemi.com/thread/364983?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2022 13:50:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0a381e4-e14a-4c5d-8514-fbbc81e2490b</guid><dc:creator>Ohad Gal</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;we are using the&amp;nbsp;&amp;quot;AT%CCLK?&amp;quot; at it works very nice.&lt;/p&gt;
&lt;p&gt;but now for the challange... since the modem is synchronized with the LTE network and sends on the designated time slot, the modem knows the time in accuracy better than 1msec.&lt;/p&gt;
&lt;p&gt;will it be possible to get a synchronization pulse once a complete second ellapses? similar to how the GPS works with PPS&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;that is:&lt;/p&gt;
&lt;p&gt;1. send AT%CCLK2?&lt;/p&gt;
&lt;p&gt;2. wait for a pulse on a hardware pin GPIO (or an internal signal)&lt;/p&gt;
&lt;p&gt;3. get the string with [sec] resolution as we get from the&amp;nbsp;&amp;quot;AT%CCLK?&amp;quot; command&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Does NORDIC support something like this?&lt;/p&gt;
&lt;p&gt;This will eliminate the need for GPS if the GPS is used only for accurate time reception&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Many thanks&lt;/p&gt;
&lt;p&gt;Ohad.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE network time from nrf9160</title><link>https://devzone.nordicsemi.com/thread/265957?ContentTypeID=1</link><pubDate>Mon, 24 Aug 2020 11:49:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7665f59a-531a-492e-bef1-942e5b2f9676</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see that there are some unanswered questions in this thread.&lt;/p&gt;
&lt;p&gt;The up-to-date answer to the original question is that AT+CCLK was added (modem firmware v1.0.x), and the time provided by the read command is based on network time if available. Not all network provide the time information, and the accuracy of the time also depend on the network. When time is not provided from the network, you must get the time by other means.&lt;/p&gt;
&lt;p&gt;There is also the proprietary AT%CCLK command, which is similar, introduced in v1.1.x.&lt;/p&gt;
&lt;p&gt;For details, please consult the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fref_at_commands%2FREF%2Fat_commands%2Fintro.html"&gt;nRF91 AT Commands&lt;/a&gt; documentation.&lt;/p&gt;
&lt;p&gt;Regarding other methods to source time, please search other DevZone threads and create a new question for that specifically if you do not find an existing thread on the subject.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE network time from nrf9160</title><link>https://devzone.nordicsemi.com/thread/187607?ContentTypeID=1</link><pubDate>Fri, 17 May 2019 03:10:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abac92e9-f5a7-443a-a9a3-68c739424368</guid><dc:creator>rkguy</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/tesc"&gt;tesc&lt;/a&gt;&amp;nbsp;The user guide doesn&amp;#39;t say anything about the clock being syncrhonized with the network. I was also told by support that you need to set the clock before you can start querying it. In other words, it is not auomatically set from the network. What is the best way to set the clock in an automated way the first time (assuming that support is correct)?&lt;/p&gt;
&lt;p&gt;edit; here is the link to the user guide&amp;nbsp;&lt;span style="background-color:#ffffff;"&gt;&lt;a href="https://infocenter.nordicsemi.com/pdf/nrf91_at_commands_v0.9.1.pdf"&gt;infocenter.nordicsemi.com/.../nrf91_at_commands_v0.9.1.pdf&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE network time from nrf9160</title><link>https://devzone.nordicsemi.com/thread/187106?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 05:03:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:375e142e-f050-4ebd-939c-d6640bab4697</guid><dc:creator>rkguy</dc:creator><description>&lt;p&gt;I would also like to know if this is in the recent firmware update &lt;a href="https://devzone.nordicsemi.com/members/tesc"&gt;tesc&lt;/a&gt;. If not, is there a simple ntp example to look at for us to get the time?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE network time from nrf9160</title><link>https://devzone.nordicsemi.com/thread/184194?ContentTypeID=1</link><pubDate>Sun, 28 Apr 2019 22:36:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bd6f189-79be-4b3f-8657-4dc3515fd301</guid><dc:creator>miked531</dc:creator><description>&lt;p&gt;Is there a timeframe for the firmware release? I&amp;#39;d kind of like to use the feature&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE network time from nrf9160</title><link>https://devzone.nordicsemi.com/thread/181305?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2019 11:33:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32855ad0-6a38-4c20-bb25-8c4679bc916c</guid><dc:creator>men</dc:creator><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;That is nice to hear. Is this also the case for NB-IOT version?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE network time from nrf9160</title><link>https://devzone.nordicsemi.com/thread/181299?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2019 11:21:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d06a19cd-2e9d-4580-9476-37b5ee2de3eb</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Good news!&lt;/p&gt;
&lt;p&gt;We will support the AT+CCLK command in the upcoming modem firmware release. It lets you both set and read the current time, which gets updated and kept in sync with network time based on time information pushed from the network. That means you do not need to use %XTIME and to manually keep track of the time in-between notifications.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE network time from nrf9160</title><link>https://devzone.nordicsemi.com/thread/180925?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2019 07:58:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45886ccf-2a6d-40c5-add5-65abf6b86527</guid><dc:creator>men</dc:creator><description>&lt;p&gt;Hi Terje,&lt;/p&gt;
&lt;p&gt;Okay, the network time doesn&amp;#39;t seem reliable. I will try to get the time using another method, eg. SNTP.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE network time from nrf9160</title><link>https://devzone.nordicsemi.com/thread/180802?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2019 14:03:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6d38edc-ad27-4efa-82eb-ec5a72b8e6b6</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We do have the %XTIME AT command, which enables time data notifications including UTC time. When enabled you will get a notification every time the network sends out time information. It is up to the network to decide when such information is pushed, and you can not request it from your device.&lt;/p&gt;
&lt;p&gt;You may or may not be better served using NTP, depending on what accuracy you need, and depending on whether you need to request the time data from your device and get an immediate result. (NTP gives worse accuracy over LTE than over a cabled Internet connection.)&lt;/p&gt;
&lt;p&gt;Edit: We will soon support the AT+CCLK command, which lets you read the time and date at any time. Time is updated and kept in sync with network time within the modem firmware. You can also set the time with the set command, for the situation where the network does not push any time information to the device.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>