<?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>Erroneous results during service discovery of custom UUIDs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47425/erroneous-results-during-service-discovery-of-custom-uuids</link><description>Hi there, 
 Background: 
 I have set-up a gap peripheral device (nRF52832 / SDK 15.0.0) with 1 service with 2 characteristics, each having its own custom 128 bit UUID. i can connect to the peripheral with nRF Connect App and exchange characteristic data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Jun 2019 07:46:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47425/erroneous-results-during-service-discovery-of-custom-uuids" /><item><title>RE: Erroneous results during service discovery of custom UUIDs</title><link>https://devzone.nordicsemi.com/thread/192568?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2019 07:46:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:096190b5-2c64-4919-964d-1b94a7df7283</guid><dc:creator>Userta</dc:creator><description>&lt;p&gt;Much thanks for your inputs. I will shortly get to try out these things.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Erroneous results during service discovery of custom UUIDs</title><link>https://devzone.nordicsemi.com/thread/191973?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 09:02:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:802d309b-fc50-4b3b-bc38-7d070ba259a0</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Tejinder,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The db_discovery module should work with custom UUID as you can see in the ble_app_uart_c example.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To increase the speed of service discovery, please make sure you have low connection interval. The fastest connection interval is 7.5ms.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you can capture &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Sniffer"&gt;a sniffer trace&lt;/a&gt; of the process, it would be easier to identify if there is any other reason why it&amp;#39;s slow.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Erroneous results during service discovery of custom UUIDs</title><link>https://devzone.nordicsemi.com/thread/191269?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 08:55:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d46362c-b3e5-4f5b-bb29-8c390ab64e46</guid><dc:creator>Userta</dc:creator><description>&lt;p&gt;Hi Hung Bui, thanks for your inputs. good to know about the private mode.&lt;/p&gt;
&lt;p&gt;My problem is this: i have used by-the-book implementation i.e., the standard GATT procedures as described in the&amp;nbsp; SDK mesage sequence charts and i have tried to use sd_ble_uuid_vs_add(), whereever possible. But i still have the problem. I will have a look into my source code again and confirm about sd_ble_uuid_vs_add() once again. An additional problem is that the service discovery&amp;nbsp; of a single service lasts about 8-10 seconds, not sure why it&amp;#39;s taking so long (could it be that mulitple GATT read prcoedures done with &amp;quot;sd_ble_gattc_read()&amp;quot;&amp;nbsp; for custom UUIDs contribute hugely to the time needed to conclude the discovery procedure?)&lt;/p&gt;
&lt;p&gt;i have been using the standard service and discovery API&amp;#39;s from the Nordic SDK. i am aware that there is also &amp;quot;db_discovery&amp;quot; library module offered in SDK. but i am not sure if this could also work for GATT structure with custom UUIDs. could you pls suggest, if the db_discovery module can be use for custom UUIDs and is it preferable over the standard API&amp;#39;s (from the sequence charts above)?&lt;/p&gt;
&lt;p&gt;Much thanks for your time!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Erroneous results during service discovery of custom UUIDs</title><link>https://devzone.nordicsemi.com/thread/191168?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2019 15:01:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35351b85-9775-4b1a-93e7-295042ec0c2e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi&amp;nbsp; Tejinder,&lt;/p&gt;
&lt;p&gt;If you need to upload confidential code, you can convert the case to private case. Please click on &amp;quot;Go Private&amp;quot; button above.&lt;/p&gt;
&lt;p&gt;Please try to test with one single service and one characteristic first.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I had a look at your code and&amp;nbsp;could be a little bit hard to understand fully because I&amp;#39;m not very familiar with the code you provided.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please be aware that&amp;nbsp;sd_ble_uuid_vs_add() should only be called to add the UUID base into the database, and it&amp;#39;s important to use&amp;nbsp;corresponding&amp;nbsp;ble_uuid.type when calling&amp;nbsp;sd_ble_gattc_primary_services_discover() or&amp;nbsp;sd_ble_gattc_characteristics_discover().&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Make sure you call&amp;nbsp;&lt;span&gt;sd_ble_uuid_vs_add() for all of the 128 bit UUID base you plan to disconver, prior to the service discovery.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please follow these message sequence chart for &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.1.1/group___b_l_e___g_a_t_t_c___p_r_i_m___s_r_v_c___d_i_s_c___m_s_c.html?cp=3_4_1_1_2_2_3_10"&gt;service discover&lt;/a&gt;y and &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.1.1/group___b_l_e___g_a_t_t_c___c_h_a_r___d_i_s_c___m_s_c.html?cp=3_4_1_1_2_2_3_1"&gt;characteristic discovery.&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Erroneous results during service discovery of custom UUIDs</title><link>https://devzone.nordicsemi.com/thread/188321?ContentTypeID=1</link><pubDate>Tue, 21 May 2019 14:33:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3ef4784-bef2-4be8-b28f-2654bea71571</guid><dc:creator>Userta</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;much thanks for your prompt response. I will get back to you tomorrow with my source-code. Till then,&lt;/p&gt;
&lt;p&gt;kind regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Erroneous results during service discovery of custom UUIDs</title><link>https://devzone.nordicsemi.com/thread/188013?ContentTypeID=1</link><pubDate>Mon, 20 May 2019 15:02:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb01eb18-bf5d-41f9-9d59-671ba1c886c6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Tejinder,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We need to have you code to know what could be wrong. Also please provide information about your 128 bit UUIDs.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would suggest you to test with 1 service and 1 characteristic first before testing with multiple characteristics. You can refer to the ble_app_uart_c&amp;nbsp;for reference&lt;/p&gt;
&lt;p&gt;Note that the uuid-type (equivalent to our uuid_type in our code I assume) is the index of your base UUID in the UUID database inside softdevice.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When you register your first 128 bit UUID base you will have uuid_type = 2 (Vendor begin)&lt;/p&gt;
&lt;p&gt;When you register your 2nd 128bit UUID base, you will have uuid_type =3 for that UUID base. And so on for next UUID bases.&lt;/p&gt;
&lt;p&gt;You would need to register the UUID base you are expecting to discover on the peer device in advance. Otherwise you would need to do extra step to read the UUID value. It&amp;#39;s not covered in the discovery library.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>