<?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>How to get the current time (thingy91:nrf52840)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70298/how-to-get-the-current-time-thingy91-nrf52840</link><description>I want to get the current time on the nrf52840 side of thingy91. As an example, I think there is a method of obtaining the current time with AT+ CCLK on the nrf9160 side and sending it to the nrf52840 side by UART. Do you have any helpful samples? 
 Also</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Feb 2021 14:10:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70298/how-to-get-the-current-time-thingy91-nrf52840" /><item><title>RE: How to get the current time (thingy91:nrf52840)</title><link>https://devzone.nordicsemi.com/thread/292711?ContentTypeID=1</link><pubDate>Wed, 03 Feb 2021 14:10:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31a6c7ec-769f-4abd-9e40-8f0ca49b0fd8</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Not sure if its useful information but the date_time library works to get the current time based on NTP.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I got it working for Thingy91 so I thought it could be a possibility. Then you can send this data through UART to nrf52840 if that suits your usecase.&lt;/p&gt;
&lt;p&gt;p.s: just a suggestion &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt; based on what I understood.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adeel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get the current time (thingy91:nrf52840)</title><link>https://devzone.nordicsemi.com/thread/288706?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 15:24:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06662a56-2ef3-4fa7-b928-c436481ea122</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Best way would be&amp;nbsp;to request time from the nrf91 when the 52 see a UUID, you can check out the &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.4.0/nrf/samples/nrf9160/lte_ble_gateway/README.html"&gt;lte_ble_gateway&lt;/a&gt; example for som similar functionality.&amp;nbsp;&lt;br /&gt;We dont have a example that covers you specific use case at the moment but feel free to link to or share any solutions you make\have.&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: How to get the current time (thingy91:nrf52840)</title><link>https://devzone.nordicsemi.com/thread/288450?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2021 15:41:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9996f02-fb8b-4d5c-bfc2-93d0d78ec72e</guid><dc:creator>MakotoKoike</dc:creator><description>&lt;p&gt;Thank you for answering.&lt;/p&gt;
&lt;p&gt;Since nrf52840 and phone / tablet / pc are not always connected, it cannot be obtained from there.&lt;/p&gt;
&lt;p&gt;The scenario is as follows.&lt;/p&gt;
&lt;p&gt;1. Scan with BLE with nrf52840.&lt;/p&gt;
&lt;p&gt;2. Find a device and memorize the UUID and current time within a certain distance.&lt;/p&gt;
&lt;pre class="tw-data-text tw-text-large XcVN5d tw-ta" id="tw-target-text" dir="ltr"&gt;There is no sample that works with thingy91, so it would be nice if there was a reference sample.&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get the current time (thingy91:nrf52840)</title><link>https://devzone.nordicsemi.com/thread/288435?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2021 15:06:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29d81f2d-28e7-4860-b3c6-d9f17e47ed57</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Using the &lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/mob_termination_ctrl_status/cclk_read.html?cp=2_1_4_31_1"&gt;AT command&lt;/a&gt; to obtain the time is and send it over uart to the nrf52 should work, other option is to ask for the time from a phone\tablet\pc that the nrf52 is connected to.&amp;nbsp;&lt;br /&gt;What is the intended use case ? Might be easier to propose a solution if i know the use case\senario.&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></channel></rss>