<?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>work around for NCSDK-14235: Timestamps that are sent in cloud messages drift over time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89669/work-around-for-ncsdk-14235-timestamps-that-are-sent-in-cloud-messages-drift-over-time</link><description>Hi Support, we had recently upgraded our firmware to nrf Connect sdk1.9.0. 
 i read the following known issue for 1.9.0 https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/known_issues.html?v=v1-9-0 . 
 please can you confirm us is there any</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Jun 2023 09:37:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89669/work-around-for-ncsdk-14235-timestamps-that-are-sent-in-cloud-messages-drift-over-time" /><item><title>RE: work around for NCSDK-14235: Timestamps that are sent in cloud messages drift over time</title><link>https://devzone.nordicsemi.com/thread/430165?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2023 09:37:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75d1d55e-aeab-48a0-9f1d-8bc4a9e10d5e</guid><dc:creator>Waqar Ahmed</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I opened up new Private ticket and mentioned you there.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: work around for NCSDK-14235: Timestamps that are sent in cloud messages drift over time</title><link>https://devzone.nordicsemi.com/thread/429805?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2023 13:47:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf849356-49b3-462e-8d25-74f2c40c059a</guid><dc:creator>Hakon</dc:creator><description>[quote user="Waqar Ahmed"]will you please help us to debug the issue?[/quote]
&lt;p&gt;Would you mind opening a new ticket for this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: work around for NCSDK-14235: Timestamps that are sent in cloud messages drift over time</title><link>https://devzone.nordicsemi.com/thread/428081?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 08:42:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fdeb347-26c6-4248-a48d-61297ae357f9</guid><dc:creator>Waqar Ahmed</dc:creator><description>&lt;p&gt;Hi JOHNATHAN,&lt;br /&gt;I have make changes as per above discussion. We are facing a strange issue on field deployed devices, like yesterday the timestamp we are getting suddenly drift from 29 may2023 to 23 may 2023.This device is running from 3 may without any reboot.&lt;/p&gt;
&lt;p&gt;After 2 to 3 hour. Its again reporting accurate timestamps.&lt;/p&gt;
&lt;p&gt;will you please help us to debug the issue?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: work around for NCSDK-14235: Timestamps that are sent in cloud messages drift over time</title><link>https://devzone.nordicsemi.com/thread/382029?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2022 12:23:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:088151f5-14f2-4d5a-8f7c-528ae69f36c1</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;The modem does not receive the network time the first time and then tried with NTP, which gives the wrong time. You can try setting &lt;span style="background-color:rgba(255, 255, 255, 1);color:rgba(36, 36, 36, 1);float:none;font-family:-apple-system, BlinkMacSystemFont, &amp;#39;Segoe UI&amp;#39;, system-ui, &amp;#39;Apple Color Emoji&amp;#39;, &amp;#39;Segoe UI Emoji&amp;#39;, &amp;#39;Segoe UI Web&amp;#39;, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0;text-transform:none;white-space:normal;"&gt;CONFIG_DATE_TIME_AUTO_UPDATE &lt;/span&gt;and not run&amp;nbsp;date_time_core_update_async(). If it doesn&amp;#39;t work, &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/ec486dab95df9d142a65000b0412b85e5ca5973c/lib/date_time/date_time_core.c#L124"&gt;try increasing the delay&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Also, the NTP server seems to be giving the wrong time, so it would be nice to have a modem trace to investigate this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: work around for NCSDK-14235: Timestamps that are sent in cloud messages drift over time</title><link>https://devzone.nordicsemi.com/thread/380825?ContentTypeID=1</link><pubDate>Tue, 09 Aug 2022 11:55:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2e5f448-e636-492d-aaf0-40c0f426b370</guid><dc:creator>Waqar Ahmed</dc:creator><description>&lt;p&gt;LTE cell changed: Cell ID: 38517279, Tracking area: 9010&lt;br /&gt;RRC mode: Connected&lt;br /&gt;Network registration status: Connected - roaming&lt;br /&gt;D: UpPSM parameter update: TAU: 4200, Active time: 60&lt;br /&gt;connection_poll_started&lt;br /&gt;Next connection retry in 30 seconds&lt;br /&gt;dating date time UTC...&lt;br /&gt;D: Date time never set&lt;br /&gt;D: Getting time from cellular network&lt;br /&gt;D: Modem has not got time from LTE network, so not using it&lt;br /&gt;D: Getting time from NTP server&lt;br /&gt;AWS_IOT_EVT_CONNECTING&lt;br /&gt;D: Connected to LTE, performing NTP UTC time update&lt;br /&gt;D: Date time never set&lt;br /&gt;D: Time obtained from cellular network (XTIME notification)&lt;br /&gt;D: System time updated: 2022-08-09 11:53:15&lt;br /&gt;DATE_TIME_OBTAINED_MODEM&lt;br /&gt;D: IPv4 Address found 54.194.240.240&lt;br /&gt;D: Time obtained from NTP server ntp.uio.no&lt;br /&gt;D: New date time update in: 14400 seconds&lt;br /&gt;D: System time updated: 1970-01-01 00:00:00&lt;br /&gt;DATE_TIME_OBTAINED_NTP&lt;br /&gt;D: Updating date time UTC...&lt;br /&gt;D: Using previously obtained time&lt;br /&gt;DATE_TIME_OBTAINED_NTP&lt;br /&gt;D: Using send socket timeout of 60 seconds&lt;br /&gt;D: AWS IoT broker connection request sent&lt;br /&gt;D: MQTT client connected!&lt;br /&gt;MQTT client connected!AWS_IOT_EVT_CONNECTED&lt;/p&gt;
&lt;p&gt;Current RSRP -125&lt;br /&gt;Publishing: {&lt;br /&gt;&amp;quot;state&amp;quot;:{&lt;br /&gt;&amp;quot;reported&amp;quot;:{&lt;br /&gt;&amp;quot;logging_interval&amp;quot;:300,&lt;br /&gt;&amp;quot;app_version&amp;quot;:&amp;quot;v2.0.0&amp;quot;,&lt;br /&gt;&amp;quot;ts&amp;quot;:16743,&lt;br /&gt;&amp;quot;battery&amp;quot;:3600,&lt;br /&gt;&amp;quot;psu&amp;quot;:0,&lt;br /&gt;&amp;quot;imei&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;&amp;quot;lat&amp;quot;:53.335768,&lt;br /&gt;&amp;quot;long&amp;quot;:-6.325005,&lt;br /&gt;&amp;quot;ttff&amp;quot;:0,&lt;br /&gt;&amp;quot;last_loc_update_time&amp;quot;:0,&lt;br /&gt;&amp;quot;current_network_mode&amp;quot;:&amp;quot;NBIOT&amp;quot;,&lt;br /&gt;&amp;quot;rsrp&amp;quot;:-125,&lt;br /&gt;&amp;quot;rsrq&amp;quot;:-12,&lt;br /&gt;&amp;quot;nbiot_rsrp&amp;quot;:-125,&lt;br /&gt;&amp;quot;lte_m_rsrp&amp;quot;:0&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;} to AWS IoT broker&lt;br /&gt;message length 356&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: work around for NCSDK-14235: Timestamps that are sent in cloud messages drift over time</title><link>https://devzone.nordicsemi.com/thread/380723?ContentTypeID=1</link><pubDate>Tue, 09 Aug 2022 05:46:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ece8b49a-ce60-49e1-81fc-de332a75b65f</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Can you enable CONFIG_DATE_TIME_LOG_LEVEL_DBG and provide the log. This should give us info on what exactly is going on. &lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: work around for NCSDK-14235: Timestamps that are sent in cloud messages drift over time</title><link>https://devzone.nordicsemi.com/thread/380107?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2022 11:48:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca8c1f65-2f12-499f-9a40-9e47f1a40bec</guid><dc:creator>Waqar Ahmed</dc:creator><description>&lt;p&gt;Hi Jonathan,&lt;/p&gt;
&lt;p&gt;I did make the changes according to this&amp;nbsp;&lt;a href="https://github.com/simensrostad/fw-nrfconnect-nrf/commit/5b3af2896a34640383cb159e8f478335447441d2"&gt;lib: date_time: Fix uptime to UTC time conversion &amp;middot; simensrostad/fw-nrfconnect-nrf@5b3af28 (github.com)&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;but&amp;nbsp;it give me wrong time stamp like&amp;nbsp;15278,&lt;/p&gt;
&lt;p&gt;even after getting the time from modem.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;the strange behave is that after 3 to 4 continuously publishing wrong timestamp when modem itself requested time from network then it start publishing timestamp.&lt;/p&gt;
&lt;p&gt;so the issue is in function&amp;nbsp;err = clock_gettime(CLOCK_REALTIME, &amp;amp;tp);&lt;/p&gt;
&lt;p&gt;I am getting right timestamp here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: work around for NCSDK-14235: Timestamps that are sent in cloud messages drift over time</title><link>https://devzone.nordicsemi.com/thread/376449?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2022 13:39:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f51d8cfa-e37f-42a2-b0f3-8346cb443a0f</guid><dc:creator>JONATHAN LL</dc:creator><description>[quote user=""]please can you confirm us is there any work around for the time drift problem in this sdk.[/quote]
&lt;p&gt;There is no workaround in NCS v1.9.X but you can cherry pick the commit from NCS v2.0.0&lt;br /&gt;&lt;br /&gt;&lt;a href="https://github.com/simensrostad/fw-nrfconnect-nrf/commit/5b3af2896a34640383cb159e8f478335447441d2"&gt;lib: date_time: Fix uptime to UTC time conversion · simensrostad/fw-nrfconnect-nrf@5b3af28 (github.com)&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;This will fix the issue.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: work around for NCSDK-14235: Timestamps that are sent in cloud messages drift over time</title><link>https://devzone.nordicsemi.com/thread/376255?ContentTypeID=1</link><pubDate>Fri, 08 Jul 2022 14:21:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae8ae6f5-c4a9-4996-8984-018d43b71584</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;&lt;span&gt;Due to summer holiday staffing is low and response time is slower than usual, pardon the inconvenience.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;We will get back to you as soon as we can.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Jonathan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>