<?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>Issue discovering services using discovery module</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42403/issue-discovering-services-using-discovery-module</link><description>Good afternoon, 
 I have been having issues discovering any service within a peer device which i have recently paired with. I am using Nordic SDK 15.2 and softdevice 6.1 on a nrf52840 development board. I am currently using the BLE_Central_multilink example</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Feb 2019 14:17:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42403/issue-discovering-services-using-discovery-module" /><item><title>RE: Issue discovering services using discovery module</title><link>https://devzone.nordicsemi.com/thread/169093?ContentTypeID=1</link><pubDate>Fri, 01 Feb 2019 14:17:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae4abad5-1aa0-4885-a09c-accdf5e12121</guid><dc:creator>Mario BG</dc:creator><description>&lt;p&gt;Hi Terje,&lt;/p&gt;
&lt;p&gt;What if I am trying to discover a custom service with a 128bit UUID, how can this be achieved?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;KR,&lt;/p&gt;
&lt;p&gt;Mario&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue discovering services using discovery module</title><link>https://devzone.nordicsemi.com/thread/167598?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 10:34:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e6a80cf-4bd3-4023-b618-25b3707bcde3</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If it is a 16 bit UUID then it must either be one of the &lt;a href="https://www.bluetooth.com/specifications/gatt/services"&gt;GATT Services&lt;/a&gt; specified by the Bluetooth SIG, or any of the &lt;a href="https://www.bluetooth.com/specifications/assigned-numbers/16-bit-uuids-for-members"&gt;16 Bit UUIDs For Members&lt;/a&gt;. 0x108A is neither.&lt;/p&gt;
&lt;p&gt;You can use &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Connect-for-desktop"&gt;nRF Connect for Desktop&lt;/a&gt; or &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Connect-for-mobile"&gt;nRF Connect for Mobile&lt;/a&gt; to connect to the device and investigate what services it offers (and see the UUIDs of those services.)&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue discovering services using discovery module</title><link>https://devzone.nordicsemi.com/thread/165271?ContentTypeID=1</link><pubDate>Fri, 11 Jan 2019 23:33:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33fab930-f5ba-465b-a068-98c3fcda0a09</guid><dc:creator>gdutk001</dc:creator><description>&lt;p&gt;I apologize for the for the lack of clarity. I do not know the base UUID for the peer device which i am paired with, however i do have access to some one of its services which i would like to discover using the&amp;nbsp;ble_db_discovery_start() function. Shortly after connecting(pairing) i call the&amp;nbsp;ble_db_discovery_start() function which returns the error&amp;nbsp;&lt;span&gt;BLE_DB_DISCOVERY_SRV_NOT_FOUND&lt;/span&gt;&amp;nbsp;within its handler. I believe i made a mistake earlier and that the previous code should be the following:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;ret_code_t err_code = ble_db_discovery_init(db_disc_handler);
APP_ERROR_CHECK(err_code);

ble_uuid_t BATTERY_SERVICE;
BATTERY_SERVICE.uuid = 0x108A;
BATTERY_SERVICE.type = 1; // since its a 16 bit UUID

uint32_t error_code = ble_db_discovery_evt_register(&amp;amp;BATTERY_SERVICE);
APP_ERROR_CHECK(error_code);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Do i still need to add the SIG UUID using&amp;nbsp;&lt;span&gt;sd_ble_uuid_vs_add() even though i do not have the base UUID of the peer device?&amp;nbsp; Is there a way for me to locate the base UUID of the peer device and add it to the ble stack table with&amp;nbsp;sd_ble_uuid_vs_add()&amp;nbsp;?&amp;nbsp; Even with the edited code it still returns the same error. Any help would be very much appreciated, thank you.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue discovering services using discovery module</title><link>https://devzone.nordicsemi.com/thread/165246?ContentTypeID=1</link><pubDate>Fri, 11 Jan 2019 16:56:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03887fb5-c8d3-45e4-8527-c15e9b9de978</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It is not clear to me what service UUID you are searching for. The line &amp;quot;BATTERY_SERVICE.type = 2;&amp;quot; could do anything, as the type field is an index into the SoftDevice&amp;#39;s table of vendor specific base UUIDs. If you have a look at the ble_app_multilink_central example, you will see an example of a service being initialized and the UUID for the service registered with the database discovery module, in the function ble_lbs_c_init() in ble_lbs_c.c. You will find that the base UUID is registered with the SoftDevice using sd_ble_uuid_vs_add(), and then the UUID type returend is used when registering the UUID with the database discovery module.&lt;/p&gt;
&lt;p&gt;Hopefully the above will lead you in the right direction.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue discovering services using discovery module</title><link>https://devzone.nordicsemi.com/thread/165219?ContentTypeID=1</link><pubDate>Fri, 11 Jan 2019 14:59:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6af5aea7-accc-4228-a660-a4bac5950d2d</guid><dc:creator>gdutk001</dc:creator><description>&lt;p&gt;thank you, i edited the post, do you have any input on how to possibly solve this issue?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue discovering services using discovery module</title><link>https://devzone.nordicsemi.com/thread/165073?ContentTypeID=1</link><pubDate>Fri, 11 Jan 2019 08:31:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7770ab3-b960-420d-a4fd-49c43f19930f</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;How to properly post source code:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6281._5F00_Insert-Code-_2D00_-Nordic.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>