<?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>questions on how to implement the current time service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1963/questions-on-how-to-implement-the-current-time-service</link><description>I&amp;#39;m working on an implementation of the Current Time Service specified by the Bluetooth SIG (I&amp;#39;m happy to share it). 
 where I am so far: 
 
 The service and the caracteristics are set up and working correctly. 
 I can initialise the value attribute</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Jun 2017 09:40:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1963/questions-on-how-to-implement-the-current-time-service" /><item><title>RE: questions on how to implement the current time service</title><link>https://devzone.nordicsemi.com/thread/8437?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2017 09:40:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98a83ee2-1c50-4206-b5ac-ef949fb96613</guid><dc:creator>Amy</dc:creator><description>&lt;p&gt;Thanks, it useful.
I use iOS version 10, it connects to CTS client well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: questions on how to implement the current time service</title><link>https://devzone.nordicsemi.com/thread/8440?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2017 07:05:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df4a7e97-9014-4779-a82c-1965b132f009</guid><dc:creator>zhu.ky</dc:creator><description>&lt;p&gt;Hello, I faced the same situation  ,do you have smartphone&amp;#39;s time server?how to get it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: questions on how to implement the current time service</title><link>https://devzone.nordicsemi.com/thread/8439?ContentTypeID=1</link><pubDate>Thu, 25 May 2017 08:01:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a6514a0-f48b-4521-89a8-e93e476d0030</guid><dc:creator>Valer_I</dc:creator><description>&lt;p&gt;As far as I know the iOS has enabled CTS by default from version 10. And modern WIN10 API make it possibe to configure this service with software.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: questions on how to implement the current time service</title><link>https://devzone.nordicsemi.com/thread/8438?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 09:37:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfd6e7ad-2e2a-4d3a-a3bf-ea956c2ad16b</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Well I guess you need to write it on target mobile platform and load as custom app.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: questions on how to implement the current time service</title><link>https://devzone.nordicsemi.com/thread/8436?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 09:17:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e412b53-76ba-4c5a-95e2-bf64d0eb62d2</guid><dc:creator>Amy</dc:creator><description>&lt;p&gt;Hello, I faced the same situation with Valer_I, Does anyone know how to use CTS client with the smartophone or a laptop?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: questions on how to implement the current time service</title><link>https://devzone.nordicsemi.com/thread/8435?ContentTypeID=1</link><pubDate>Thu, 02 Feb 2017 13:57:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11dd4e65-18d9-4bae-bb1b-d3455b13d9a5</guid><dc:creator>Valer_I</dc:creator><description>&lt;p&gt;Hello, I tried to run CTS client example on the DK and tested with Windows 10, Android 6 and iOS 10 and in all cases I received &amp;quot;Current Time Service is not discovered.&amp;quot; . After googling a while I did not find any information that CTS server ran by default at any OS I&amp;#39;ve tried.
So how to use CTS client with the smartophone or a laptop?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: questions on how to implement the current time service</title><link>https://devzone.nordicsemi.com/thread/8434?ContentTypeID=1</link><pubDate>Tue, 14 Oct 2014 07:47:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04380bc0-cd3b-4657-8058-4d04b14605dd</guid><dc:creator>Richard</dc:creator><description>&lt;p&gt;Hello,Mike, could you please share  Demo exmaple of CTS?  Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: questions on how to implement the current time service</title><link>https://devzone.nordicsemi.com/thread/8433?ContentTypeID=1</link><pubDate>Wed, 28 May 2014 16:33:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39abab87-69da-4168-963c-d206312ac500</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Hello Kris, sorry for the late response. You can find the code here: &lt;a href="https://github.com/klinkling/nordic-semi-nRF51x-cts"&gt;github.com/.../nordic-semi-nRF51x-cts&lt;/a&gt;
@ nordic: I read some question on the forum concerning the licensing and what I did should be fine. In case there is anything wrong with the licensing contact me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: questions on how to implement the current time service</title><link>https://devzone.nordicsemi.com/thread/8432?ContentTypeID=1</link><pubDate>Fri, 09 May 2014 00:08:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d9f8e96-4db9-40bb-bc14-47a645f85db8</guid><dc:creator>Kris </dc:creator><description>&lt;p&gt;Hello Mike ,
Could you please share your implementation of the CTS ?
Thanks ,
/k&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: questions on how to implement the current time service</title><link>https://devzone.nordicsemi.com/thread/8430?ContentTypeID=1</link><pubDate>Tue, 01 Apr 2014 20:32:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8697e373-5c7b-479d-bbbc-a17284bf9a32</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Thank you Ole!
Yes, trough the CTS you can&amp;#39;t set the time. But I want to enable the user to find out what time is set on the device now. And I will also implement a time client as proposed by you compensate the drift automatically once in a while. Let&amp;#39;s see how good that will work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: questions on how to implement the current time service</title><link>https://devzone.nordicsemi.com/thread/8431?ContentTypeID=1</link><pubDate>Fri, 28 Mar 2014 10:36:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:829ae4a7-c640-41bd-b3a0-d10584952409</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;The Time Service isn&amp;#39;t meant to be used for setting time, it is for a Time Client to get the current time from a Time Server, without user interaction. Hence, in your case, I&amp;#39;d still recommend you to implement a Time Client on your device, that will request a time update from any connected Time Server.&lt;/p&gt;
&lt;p&gt;However, to answer your questions: authorization will not affect the peer device in any noticeable way. Except for precision, there should be no problem with using a soft implementation based on the internal RTC. It will however drift quite significantly, even with a 20 ppm crytsal about 10 minutes a year, which is why I think it would make sense to have a Time Client on your device to get accurate time from a connected smart phone.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: questions on how to implement the current time service</title><link>https://devzone.nordicsemi.com/thread/8429?ContentTypeID=1</link><pubDate>Thu, 27 Mar 2014 12:18:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28c21b4b-bd57-4ae1-ad0e-7e27007c51d9</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Thanks for your explanations Ole,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m implementing a Time Server. My device needs accurate time and as it is head-less I must give an option to the user the verify, that the time is set correctly.&lt;/p&gt;
&lt;p&gt;The advice with the &amp;quot;GATTS Read Request with Authorization&amp;quot; might suit my application. Just to confirm: Will the communication be any different from the peer devices perspective when using authorization? Just to be sure to comply with the SIG specs.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t like the idea of an external time keeping device as it costs money, consumes power and needs space. Do you see any problems in a soft RTC implementation based on nrf51822&amp;#39;s RTC0/RTC1 value and/or interrupts?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: questions on how to implement the current time service</title><link>https://devzone.nordicsemi.com/thread/8428?ContentTypeID=1</link><pubDate>Mon, 24 Mar 2014 10:09:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa5c8918-3fa0-4733-8ef6-91b5b8e0c8a7</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Are you implementing the Time Server or the Time Client? I suppose the most common application would be to have the nRF51822 be a Time Client to a smart phone&amp;#39;s Time Server, that can get the current time from GPS and/or the phone network. In this case, the nRF51822 would be a GATT Client, and reading the current time from the phone&amp;#39;s GATT Server, to be used locally.&lt;/p&gt;
&lt;p&gt;However, if you for some reason are implementing a Time Server on the nRF51, I&amp;#39;d suppose you have some external time keeping device, that you can read to get a proper time for your server. If you want to know when a characteristic is read, you can enable authorization for it, which will give you the events as shown &lt;a href="https://devzone.nordicsemi.com/documentation/nrf51/5.2.0/html/a00876.html"&gt;here&lt;/a&gt;. Authorization can be enabled by setting the rd_auth flag in the ble_gatts_attr_md_t struct when initializing the characteristic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>