<?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>Date and time calculation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44965/date-and-time-calculation</link><description>Hello I am using nrf52832 and I want to Calculate date and time at specific event periodically and save it to flash,so is it possible by using ble_app_cts_c example or any external hardware needed for it ,please help.?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Mar 2019 04:19:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44965/date-and-time-calculation" /><item><title>RE: Date and time calculation</title><link>https://devzone.nordicsemi.com/thread/178821?ContentTypeID=1</link><pubDate>Thu, 28 Mar 2019 04:19:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72a8e893-4841-47ee-9c24-3dabf4b42c21</guid><dc:creator>kiranj</dc:creator><description>&lt;p&gt;ok,thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date and time calculation</title><link>https://devzone.nordicsemi.com/thread/178760?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2019 16:01:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be61d198-6043-480e-9faf-da941cfe61cb</guid><dc:creator>awneil</dc:creator><description>[quote userid="68004" url="~/f/nordic-q-a/44965/date-and-time-calculation"]I want to Calculate date and time at specific event[/quote]
&lt;p&gt;Why?&lt;/p&gt;
&lt;p&gt;It is usually easier to just do a simple timestamp (eg, seconds past some datum) - and let a PC, Phone or other more capable &amp;quot;computer&amp;quot; do the conversion to date &amp;amp; time ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date and time calculation</title><link>https://devzone.nordicsemi.com/thread/178758?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2019 15:55:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:462b2e56-5f24-475d-b2aa-da84e2cb0c31</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;If you follow these steps in &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v14.0.0%2Fble_sdk_app_cts_c.html"&gt;this&lt;/a&gt; link:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;Open nRF Connect Desktop and the Bluetooth Low Energy app&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Plug in your nRF52 device and select it under &amp;quot;Select device&amp;quot;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;In nRF Connect, create the Current Time Service (CTS) server by performing the following steps:&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;In Server Setup, click the settings button and select &amp;quot;Load setup&amp;quot;.&lt;/li&gt;
&lt;li&gt;In the resulting window, navigate to the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;InstallFolder&amp;gt;\examples\ble_peripheral\ble_app_cts_c&lt;/code&gt;folder. Load the file&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;cts_central.ncs&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;Then you will see how the service looks like.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The next step is to implement the service on the android phone, and&amp;nbsp;&lt;a href="https://www.bignerdranch.com/blog/bluetooth-low-energy-part-1/"&gt;here&lt;/a&gt; is a BLE Android tutorial that will cover that.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date and time calculation</title><link>https://devzone.nordicsemi.com/thread/178042?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2019 10:04:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e66b5e6d-c26f-4f3b-9fa3-f581995635b7</guid><dc:creator>kiranj</dc:creator><description>&lt;p&gt;hello,can you please tell ,how to setup server for Current Time Service in android phone..?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date and time calculation</title><link>https://devzone.nordicsemi.com/thread/177070?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2019 14:11:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9432e7e8-25fa-44bd-846e-c0e5b4a0154f</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Have you followed the steps under &amp;quot;Testing&amp;quot;&amp;nbsp; in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v14.0.0%2Fble_sdk_app_cts_c.html"&gt;documentation&lt;/a&gt;?&amp;nbsp;You need an additional device (e.g. the computer), with the Current Time Service implemented. Then you can send the time through that service to the nRF52 chip. After receiving the timestamp, you can see the decoded time if you press button 1, and also save it to flash.&lt;/p&gt;
&lt;p&gt;If you have any issues following the steps, pleas ask and I will assist you.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>