<?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 UTC into ble_date_time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10148/how-to-get-utc-into-ble_date_time</link><description>Hi, 
 I am trying to get date and time on my nrf51822 but struggling a bit. I would like the nrf to receive the time over BLE and then increment it internally using the RTC. When the nrf next connects to another device it should automatically update</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Nov 2015 06:29:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10148/how-to-get-utc-into-ble_date_time" /><item><title>RE: How to get UTC into ble_date_time</title><link>https://devzone.nordicsemi.com/thread/37632?ContentTypeID=1</link><pubDate>Thu, 19 Nov 2015 06:29:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e565cef-81cc-4ac7-9a01-8add6a4a3d37</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;As you can see in case BLE_CTS_C_EVT_CURRENT_TIME (main.c line:303). We only print the current time once received. In your case you have to store this value. I would suggest using current_time_char_t. Then you use the rtc timer to update this value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get UTC into ble_date_time</title><link>https://devzone.nordicsemi.com/thread/37633?ContentTypeID=1</link><pubDate>Tue, 17 Nov 2015 17:56:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9e4075d-6a28-44d9-ac14-cfb858fae5f5</guid><dc:creator>RPDben</dc:creator><description>&lt;p&gt;I have looked at that and understand how the RTC module is working. However, and forgive me if I am being rather ignorant here, I cannot see how you set say RTC2 to know the current time.&lt;/p&gt;
&lt;p&gt;My application basically needs to store the current time &amp;amp; date when an event has finished. The soft device uses RTC0, my application timers use RTC1 so I would like RTC2 to keep track of the time and then store it (using pstorage) when requested. Apologies again if I am missing some blindingly obvious point.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get UTC into ble_date_time</title><link>https://devzone.nordicsemi.com/thread/37631?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2015 19:36:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fb6805d-8544-4f42-83b2-e02cbf736545</guid><dc:creator>run_ar</dc:creator><description>&lt;ol&gt;
&lt;li&gt;The current time is read using ble_cts_c_current_time_read(). this function is called from the bsp_event_handler.&lt;/li&gt;
&lt;li&gt;Use the current time to sync your local time. This means that you should also have a local time that you update based on the RTC. To see how to use the RTC you can look at nRF51_SDK_10.0.0_dc26b5e\examples\peripheral\rtc\&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get UTC into ble_date_time</title><link>https://devzone.nordicsemi.com/thread/37630?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2015 13:03:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1a0ca72-2610-49f3-bcf5-499d5e00f00f</guid><dc:creator>RPDben</dc:creator><description>&lt;p&gt;Thanks for this, I am looking through the example now. Two things I cannot work out:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;What function do I call to get the time&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;How do I append this to the RTC?&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get UTC into ble_date_time</title><link>https://devzone.nordicsemi.com/thread/37629?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2015 10:26:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3650f8f4-3172-4ec4-b5b0-ee77ffcbfdd9</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Did you look at the current time service in our sdk: nRF51_SDK_9.0.0_2e23562\examples\ble_peripheral\ble_app_cts_c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>