<?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>SDK12.2 nRF52832 Central Connect and Disconnect Device Question</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20041/sdk12-2-nrf52832-central-connect-and-disconnect-device-question</link><description>Hi,
I use nRF52832 and SDK12.2
The Project is ble_central_and_peripheral and the link define is like below
#define CENTRAL_LINK_COUNT 4 
Here will connect 1 HR device and 3 CSC devices 
 #define PERIPHERAL_LINK_COUNT 1
Here is waiting for cell phone</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 Mar 2017 06:46:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20041/sdk12-2-nrf52832-central-connect-and-disconnect-device-question" /><item><title>RE: SDK12.2 nRF52832 Central Connect and Disconnect Device Question</title><link>https://devzone.nordicsemi.com/thread/78003?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2017 06:46:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07a36383-5688-440f-b120-ef495cbd61d7</guid><dc:creator>Vincent</dc:creator><description>&lt;p&gt;whenever call ble_db_discovery_start().&lt;/p&gt;
&lt;p&gt;call       memset(&amp;amp;m_ble_db_discovery,0,sizeof(m_ble_db_discovery));
before   ble_db_discovery_start()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK12.2 nRF52832 Central Connect and Disconnect Device Question</title><link>https://devzone.nordicsemi.com/thread/78002?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2017 13:13:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a004efc8-2ce6-47fe-a7d2-f52a6e261ed6</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I don&amp;#39;t understand it either. The line should be moved before the if, so from 229 to 224.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK12.2 nRF52832 Central Connect and Disconnect Device Question</title><link>https://devzone.nordicsemi.com/thread/77997?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2017 12:35:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f77cd1f-4b27-49cc-b1e5-14a4ed57a7f2</guid><dc:creator>Vincent</dc:creator><description>&lt;p&gt;Hi,
I do try the memset(&amp;amp;m_ble_db_discovery,0,sizeof(m_ble_db_discovery)); before ble_db_discovery_start()
and it work fine.
I try many time like below:
scan my target -&amp;gt; connect target -&amp;gt; disconnect target -&amp;gt; reconnect
but I dont understand another suggestion about &amp;quot;In ble_db_discovery.c move p_db_discovery-&amp;gt;curr_char_ind = 0; from line 237 to line 234.&amp;quot;&lt;/p&gt;
&lt;p&gt;If each device I only discovery main service what should I do about p_db_discovery-&amp;gt;curr_char_ind = 0;
Keep that is 0 or just mask this line.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK12.2 nRF52832 Central Connect and Disconnect Device Question</title><link>https://devzone.nordicsemi.com/thread/78001?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2017 12:03:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3839ebf1-b9b5-47cb-aa83-38b3087ff796</guid><dc:creator>Vincent</dc:creator><description>&lt;p&gt;Ok, I will take a look and let you know the result.
Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK12.2 nRF52832 Central Connect and Disconnect Device Question</title><link>https://devzone.nordicsemi.com/thread/78000?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2017 10:29:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2ed844f-0ab2-4d13-8f93-1947f26f88a1</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Ok, but have you tried to use the debugger to see what is happening inside the module? It could also be that you are hitting &lt;a href="https://devzone.nordicsemi.com/question/92452/nrf52-ble_db_discovery-failed-to-initialize-correctly-when-repeats-the-service-discovery/"&gt;this&lt;/a&gt; bug, you could try the fix.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK12.2 nRF52832 Central Connect and Disconnect Device Question</title><link>https://devzone.nordicsemi.com/thread/77999?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2017 01:34:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49a82154-f0af-4cc2-91e7-2eb2d7ced240</guid><dc:creator>Vincent</dc:creator><description>&lt;p&gt;I use PCA10040 EVB and I also enable nrf_log so after first time I connect to 4 devices and disconnect those devices.
I do connect again the UART port log just stop like below:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;BLE_DB_DISC:INFO:Starting discovery of service with UUID 0x180d for Connection handle 1
BLE_DB_DISC:INFO:Service UUID 0x180d Not found
BLE_DB_DISC:INFO:Starting discovery of service with UUID 0x1816 for Connection handle 1
BLE_DB_DISC:INFO:Found service UUID 0x1816
BLE_DB_DISC:INFO:Discovery of service with UUID 0x1816 completed with success for Connection handle 1
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and no more connect action.
If I press reset button then connect is fine but reconnect will stop like that.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK12.2 nRF52832 Central Connect and Disconnect Device Question</title><link>https://devzone.nordicsemi.com/thread/77998?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2017 12:06:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37fd338d-a679-490c-8fc3-2f63d1239bf7</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;With regards to the SoftDevice you don&amp;#39;t need to do anything else. What do you mean by stuck? Is ble_db_discovery_start() returning an error? If not, where is it &amp;quot;stuck&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>