<?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>Speed up DB Discovery</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21883/speed-up-db-discovery</link><description>Hi, 
 I have a device in the central role that connects to a device with a specific name. I then do a db_discovery_start to get the handles of two of the characteristics. However, it takes a while for the BLE_DB_DISCOVERY_COMPLETE to be triggered (approx</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Aug 2017 13:55:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21883/speed-up-db-discovery" /><item><title>RE: Speed up DB Discovery</title><link>https://devzone.nordicsemi.com/thread/85917?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2017 13:55:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61255503-4d8e-4d1a-98af-44318a47c6c0</guid><dc:creator>Andrzej Kuros</dc:creator><description>&lt;p&gt;You can set connection timing parameters to small values (smallest compilant with BLE spec), do db discovery, and then go back to your desired timing.&lt;/p&gt;
&lt;p&gt;You can also give up with SDK&amp;#39;s db discovery module and do discovery on your own by directly calling SoftDevice&amp;#39;s API functions. See sd_ble_gattc_descriptors_discover and related diagrams. It won&amp;#39;t be as easy as using db discovery module, but as you know UUIDs it can be faster.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Speed up DB Discovery</title><link>https://devzone.nordicsemi.com/thread/85916?ContentTypeID=1</link><pubDate>Wed, 10 May 2017 10:29:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b80173e1-0ef1-42c0-99f5-8560f37ac053</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Guess I should add a comment and point out that if you are bond to the peer you, can use service changed indications to get an indication if the attribute table change.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Speed up DB Discovery</title><link>https://devzone.nordicsemi.com/thread/85914?ContentTypeID=1</link><pubDate>Wed, 10 May 2017 10:09:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:189cf595-5392-47d5-9b72-ccd7b6ee60a3</guid><dc:creator>RPDben</dc:creator><description>&lt;p&gt;Thanks, I will hard code the handles and ensure that there are no updates for the time being.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Speed up DB Discovery</title><link>https://devzone.nordicsemi.com/thread/85912?ContentTypeID=1</link><pubDate>Wed, 10 May 2017 09:34:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c69ff17-9fd9-4cb1-a2c7-6a776f860eb7</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;I guess the main problem with hardcoding the handles would be if you do DFU and the attribute table change. e.g. you change SD version like in &lt;a href="https://devzone.nordicsemi.com/question/135144/any-way-to-delete-central-address-resolution-characteristic/"&gt;this case&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Speed up DB Discovery</title><link>https://devzone.nordicsemi.com/thread/85913?ContentTypeID=1</link><pubDate>Wed, 10 May 2017 09:11:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:607f8584-8724-4150-82c1-33b5b92ee0e6</guid><dc:creator>RPDben</dc:creator><description>&lt;p&gt;Hi run,&lt;/p&gt;
&lt;p&gt;I think I will have to use the handles directly. I do control all of the devices but it feels slightly wrong hard-coding the handle.  I have the connection interval as fast as it can be and it is discovering as soon as it receives the connected event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Speed up DB Discovery</title><link>https://devzone.nordicsemi.com/thread/85915?ContentTypeID=1</link><pubDate>Wed, 10 May 2017 09:04:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5899b439-8071-42da-99f3-b7c906873290</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;If you control the device on the other side, and you make sure the attribute table doesn&amp;#39;t change. You can use the handles directly without doing service discovery. Other than that I assume you are starting the discovery after receiving the connected event. So as soon as possible. Would be possible to speed things up uf you use a faster connection interval.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>