<?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>Add CTS current time service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14711/add-cts-current-time-service</link><description>Hi all, 
 i want to add a cts service to my project.
i started with ble_cts example of sdk 11.0, but it&amp;#39;s not clear what is the correct procedure to do it.
I add the service in service init and the db_ event_handler and cts_event_handler in my project</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Jun 2016 11:57:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14711/add-cts-current-time-service" /><item><title>RE: Add CTS current time service</title><link>https://devzone.nordicsemi.com/thread/56123?ContentTypeID=1</link><pubDate>Tue, 28 Jun 2016 11:57:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10ced367-a924-4d90-9049-5d55b47b2747</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Hi Kristin,
can you give me a suggestion about how modify the source file of nRFGO tools to add the cts service.
Thanks.&lt;/p&gt;
&lt;p&gt;N.b. I open a new discussion about this &lt;a href="https://devzone.nordicsemi.com/question/84891/add-cts-service-to-nrfgo/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add CTS current time service</title><link>https://devzone.nordicsemi.com/thread/56122?ContentTypeID=1</link><pubDate>Fri, 24 Jun 2016 10:17:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eac86426-4661-479a-868d-9423c6b17d2d</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;I would think that the glucose measurement profile in the nRF Toolbox does only look for the UUIDs contained in the Glucose profile. The nRF Toolbox is open source, so you can modify the glucose measurement profile to look for the CTS profile as well. The source code for the nRF Toolbox can be found from this page&lt;a href="https://www.nordicsemi.com/eng/Products/Nordic-mobile-Apps/nRF-Toolbox-App"&gt;here&lt;/a&gt;. The source code for nRF Master Control panel is not available, but it comes with an API, the API can be found from &lt;a href="https://www.nordicsemi.com/eng/Products/Nordic-mobile-Apps/nRF-Master-Control-Panel-application"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add CTS current time service</title><link>https://devzone.nordicsemi.com/thread/56121?ContentTypeID=1</link><pubDate>Fri, 24 Jun 2016 09:29:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce65d74a-462c-4ed9-9fab-bd34dbfbfe82</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Thank you so much for the support!!!&lt;/p&gt;
&lt;p&gt;Now I have a new issue, with master control panel it&amp;#39;s works and print data.
If i use nRFtoolbox, because i want use a glucose measurement profile, the current service profile is not found. With master control panel i add manually the cts service.
Is There a similary procedure to add cts service for nRF toolbox??&lt;/p&gt;
&lt;p&gt;Thanks a lot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add CTS current time service</title><link>https://devzone.nordicsemi.com/thread/56120?ContentTypeID=1</link><pubDate>Fri, 24 Jun 2016 07:58:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49a9012f-de42-406b-8412-c6f886f900aa</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Good that you were able to solve the problem!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add CTS current time service</title><link>https://devzone.nordicsemi.com/thread/56126?ContentTypeID=1</link><pubDate>Fri, 24 Jun 2016 07:53:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8939efb-a0f0-4656-883f-34cfc3e88221</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;I use nRF52-DK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add CTS current time service</title><link>https://devzone.nordicsemi.com/thread/56119?ContentTypeID=1</link><pubDate>Fri, 24 Jun 2016 07:52:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1592a248-c741-4cf2-8acf-6bcafb8f3408</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;I understand what happens. I don&amp;#39;t start the db_discovery_manager (ble_db_discovery_start), that is implemented in the device_manager but not in peer_manager. I add it and now seems that it works... Thank you!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add CTS current time service</title><link>https://devzone.nordicsemi.com/thread/56125?ContentTypeID=1</link><pubDate>Fri, 24 Jun 2016 07:51:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba887540-6d89-45e8-9400-4a28b142949d</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Do you have an extra nRF51-DK or a nRF51-Dongle? If so, could you use &lt;a href="https://www.nordicsemi.com/eng/nordic/download_resource/26386/14/65517724"&gt;the sniffer&lt;/a&gt; to check how/if the service/characteristic discovery takes place?   And upload then sniffer trace here?&lt;/p&gt;
&lt;p&gt;The sniffer should be used with Wireshark, and it works best with version 1.10, not one of the newer versions. Wireshark can be downloaded here:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.wireshark.org/download/win32/all-versions/"&gt;www.wireshark.org/.../&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.wireshark.org/download/win64/"&gt;www.wireshark.org/.../&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add CTS current time service</title><link>https://devzone.nordicsemi.com/thread/56118?ContentTypeID=1</link><pubDate>Fri, 24 Jun 2016 07:13:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d2ab276-4ea0-4fb1-bea6-122566ae58ac</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;Hy Krisitin,&lt;/p&gt;
&lt;p&gt;thank you for the answer.
I add all things about the service:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;initialization of service cts in service_init();&lt;/li&gt;
&lt;li&gt;initialization of db disc discovery in my main();&lt;/li&gt;
&lt;li&gt;add db_disc_handler&lt;/li&gt;
&lt;li&gt;Add  ble_conn_state_on_ble_evt and ble_cts_c_on_ble_evt in my ble_evt_dispatch&lt;/li&gt;
&lt;li&gt;Finally the on_cts_c_evt().&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I debug the example ble_app_cts_c and i see that after the connection softdevice send event BLE_GATTC_EVT_CHAR_DISC_RSP  to db_discovery_on_ble_evt. The problem is that MY progect this events not oocurs... And i don&amp;#39;t know why. It&amp;#39;s not clear how the sfotdevice send a events that are processed from ble_evt_dispatch...&lt;/p&gt;
&lt;p&gt;One different from my project and ble_app_cts_c is that i use a peer manager and in the example use a device_manager_init.&lt;/p&gt;
&lt;p&gt;Thank you,
Anna&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add CTS current time service</title><link>https://devzone.nordicsemi.com/thread/56124?ContentTypeID=1</link><pubDate>Fri, 24 Jun 2016 05:37:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe80a174-1d12-4216-87de-ccb06ce30d96</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;In general, when adding a service, what you need to add is everything that is specific for that service. From looking at ble_app_cts_c, it should a least be the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Services_init()&lt;/li&gt;
&lt;li&gt;The discovery module:&lt;/li&gt;
&lt;li&gt;db_discovery_init()&lt;/li&gt;
&lt;li&gt;db_disc_handler(..)&lt;/li&gt;
&lt;li&gt;ble_db_discovery_on_ble_evt(..): should be added in ble_evt_dispatch(..)&lt;/li&gt;
&lt;li&gt;ble_cts_c_on_ble_evt(..): should bed added in ble_evt_dispatch(..)&lt;/li&gt;
&lt;li&gt;on_cts_c_evt() :&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Functions that you may consider to take a look at:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;on_ble_evt(..)&lt;/li&gt;
&lt;li&gt;current_time_print()&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Let me know if it still doesn&amp;#39;t work after adding everything from the above list.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add CTS current time service</title><link>https://devzone.nordicsemi.com/thread/56117?ContentTypeID=1</link><pubDate>Thu, 23 Jun 2016 13:13:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73887bf1-6e06-497d-a60e-55d6e44502ac</guid><dc:creator>annapalu</dc:creator><description>&lt;p&gt;I don&amp;#39;t understand if it&amp;#39;s necessary to add a characteristics gatt or not. Because in the example don&amp;#39;t use it.
Also, i use a peer manager for the connection and not device_manager.
Regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>