<?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>multilink db discovery gives discovery response multiple times for 1st ble connection after reset.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33905/multilink-db-discovery-gives-discovery-response-multiple-times-for-1st-ble-connection-after-reset</link><description>hi, 
 i am doing a project where i have to discover custom services on connected ble nodes. 
 i am using nrf52832 as central device and thingy 52 as peripheral device i have used sdk 14.2.0 multilink central example and modified it to discover all custom</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 May 2018 12:22:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33905/multilink-db-discovery-gives-discovery-response-multiple-times-for-1st-ble-connection-after-reset" /><item><title>RE: multilink db discovery gives discovery response multiple times for 1st ble connection after reset.</title><link>https://devzone.nordicsemi.com/thread/130800?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 12:22:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36536bbb-3a39-4dcf-b8bc-00d9b7d6b237</guid><dc:creator>nikunj8086</dc:creator><description>&lt;p&gt;hi hung bui,&lt;/p&gt;
&lt;p&gt;hank you for your response now my problem is fixed.&lt;/p&gt;
&lt;p&gt;thnaks again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multilink db discovery gives discovery response multiple times for 1st ble connection after reset.</title><link>https://devzone.nordicsemi.com/thread/130797?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 12:15:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:866b12ef-8953-4752-aee2-74d4ac93b96b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Nikunj,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Actually it&amp;#39;s known bug. You can have a look at&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/27464/multiple-connect-discover-service-multiple-why"&gt;this case&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to find the fix.&lt;/p&gt;
&lt;p&gt;Sorry that I didn&amp;#39;t spot that at the beginning.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, it might not the direct cause of the error you see. But please apply the fix to main() and let me know if you still have the issue.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multilink db discovery gives discovery response multiple times for 1st ble connection after reset.</title><link>https://devzone.nordicsemi.com/thread/130664?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 17:46:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f62a5c40-4ba8-4c61-9996-d0dc45d544bf</guid><dc:creator>nikunj8086</dc:creator><description>&lt;p&gt;yes,&lt;/p&gt;
&lt;p&gt;in stock example i am getting 8 times response&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multilink db discovery gives discovery response multiple times for 1st ble connection after reset.</title><link>https://devzone.nordicsemi.com/thread/130648?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 15:52:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:979db4b9-5609-4dc4-a604-9aebd760dba4</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please answer my question, do you see the same problem when testing with the stock example ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multilink db discovery gives discovery response multiple times for 1st ble connection after reset.</title><link>https://devzone.nordicsemi.com/thread/130461?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 08:31:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dea5d55-5952-4e57-8e28-806b21f0dc4d</guid><dc:creator>nikunj8086</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;i have 8 connections,&lt;/p&gt;
&lt;p&gt;but i am sure i am only starting&amp;nbsp;&lt;span&gt;ble_db_discovery_start for connection handle 0 only.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;when i put a nrf log info in&amp;nbsp;BLE_GATTC_EVT_PRIM_SRVC_DISC_RSP and commented other process.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;i got this response on terminal&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;info&amp;gt; app: Multilink example started.
&amp;lt;info&amp;gt; app: Start scanning for device name Thingy.
&amp;lt;info&amp;gt; app: Connection 0x0 established, starting DB discovery.
&amp;lt;info&amp;gt; app: Start scanning for device name Thingy.
&amp;lt;info&amp;gt; ble_db_disc: connection handle 0 service found 0x1800
&amp;lt;info&amp;gt; ble_db_disc: connection handle 0 service found 0x1800
&amp;lt;info&amp;gt; ble_db_disc: connection handle 0 service found 0x1800
&amp;lt;info&amp;gt; ble_db_disc: connection handle 0 service found 0x1800
&amp;lt;info&amp;gt; ble_db_disc: connection handle 0 service found 0x1800
&amp;lt;info&amp;gt; ble_db_disc: connection handle 0 service found 0x1800
&amp;lt;info&amp;gt; ble_db_disc: connection handle 0 service found 0x1800
&amp;lt;info&amp;gt; ble_db_disc: connection handle 0 service found 0x1800&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;when i connected 4 nodes following response i got&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: Connection 0x3 established, starting DB discovery.
&amp;lt;info&amp;gt; app: Start scanning for device name Thingy.
&amp;lt;info&amp;gt; ble_db_disc: connection handle 0 service found 0x1800
&amp;lt;info&amp;gt; ble_db_disc: connection handle 1 service found 0x1800
&amp;lt;info&amp;gt; ble_db_disc: connection handle 2 service found 0x1800
&amp;lt;info&amp;gt; ble_db_disc: connection handle 3 service found 0x1800
&amp;lt;info&amp;gt; ble_db_disc: connection handle 0 service found 0x1800
&amp;lt;info&amp;gt; ble_db_disc: connection handle 0 service found 0x1800
&amp;lt;info&amp;gt; ble_db_disc: connection handle 0 service found 0x1800
&amp;lt;info&amp;gt; ble_db_disc: connection handle 0 service found 0x1800&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;when i connected 8 nodes i got following response&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: Connection 0x7 established, starting DB discovery.
&amp;lt;info&amp;gt; ble_db_disc: connection handle 0 service found 0x1800
&amp;lt;info&amp;gt; ble_db_disc: connection handle 1 service found 0x1800
&amp;lt;info&amp;gt; ble_db_disc: connection handle 2 service found 0x1800
&amp;lt;info&amp;gt; ble_db_disc: connection handle 3 service found 0x1800
&amp;lt;info&amp;gt; ble_db_disc: connection handle 4 service found 0x1800
&amp;lt;info&amp;gt; ble_db_disc: connection handle 5 service found 0x1800
&amp;lt;info&amp;gt; ble_db_disc: connection handle 6 service found 0x1800
&amp;lt;info&amp;gt; ble_db_disc: connection handle 7 service found 0x1800&lt;/pre&gt;&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 tell me what is happening here. either way i am getting 8 times response&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;is this problem with softdevice or my code.?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multilink db discovery gives discovery response multiple times for 1st ble connection after reset.</title><link>https://devzone.nordicsemi.com/thread/130449?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 08:02:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c9af468-0b81-406c-90c4-2d32c72c8a82</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Error code 0x11 (17 decimal = NRF_ERROR_BUSY) with&amp;nbsp;sd_ble_gattc_read() telling that&amp;nbsp;there is other client process underway.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that for every central link you have, there will be a lbs client being created. Are you sure you are not calling&amp;nbsp;ble_db_discovery_start() for all of the clients you have, regardless how many connection you actually have ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you see the same error when you test with unmodified multilink central example ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multilink db discovery gives discovery response multiple times for 1st ble connection after reset.</title><link>https://devzone.nordicsemi.com/thread/130426?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 06:22:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a1aa3d9-2632-48b6-946d-a15782ca6c5a</guid><dc:creator>nikunj8086</dc:creator><description>&lt;p&gt;hi hung bui,&lt;/p&gt;
&lt;p&gt;so i am getting error code&amp;nbsp;0x00000011 by calling api &amp;quot;sd_ble_gattc_read&amp;quot; to read full 128-bit base uuid.&lt;/p&gt;
&lt;p&gt;basically i am doing full db discovery by providing argument ble_uuid_t const *p_srvc_uuid = NULL in&amp;nbsp;sd_ble_gattc_primary_services_discover API.&lt;/p&gt;
&lt;p&gt;but my question is that why i am getting number of&amp;nbsp; BLE_GATTC_EVT_PRIM_SRVC_DISC_RSP event same as number of&amp;nbsp;NRF_SDH_BLE_CENTRAL_LINK_COUNT.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;so in default ble_central_multilink example&amp;nbsp;NRF_SDH_BLE_CENTRAL_LINK_COUNT is 8 so i am getting&amp;nbsp;&lt;span&gt;BLE_GATTC_EVT_PRIM_SRVC_DISC_RSP event 8 times.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;but if&amp;nbsp;BLE_GATTC_EVT_PRIM_SRVC_DISC_RSP is 1 my program works fine.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;is there any way to reduce&amp;nbsp;BLE_GATTC_EVT_PRIM_SRVC_DISC_RSP to 1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multilink db discovery gives discovery response multiple times for 1st ble connection after reset.</title><link>https://devzone.nordicsemi.com/thread/130284?ContentTypeID=1</link><pubDate>Mon, 30 Apr 2018 12:48:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2793160-9e4d-4973-8598-306e0d1d8d99</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Nikunj,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you point to the exact place that the error&amp;nbsp;was thrown ?&amp;nbsp; Which function ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have the same issue when you test with 2 peripheral + 1 central running lbs service ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>