<?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>Restart Scanning failed - SD140 6.1.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37541/restart-scanning-failed---sd140-6-1-0</link><description>Hi 
 I&amp;#39;m facing a problem since I&amp;#39;ve upgraded to SD140 6.1 . 
 I&amp;#39;m running as multilink central, and want to keep scanning even after connection. I scan with the following parameters: 
 
 I have a peripheral set to CODED who advertise with whitelist that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Aug 2018 14:43:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37541/restart-scanning-failed---sd140-6-1-0" /><item><title>RE: Restart Scanning failed - SD140 6.1.0</title><link>https://devzone.nordicsemi.com/thread/144580?ContentTypeID=1</link><pubDate>Thu, 16 Aug 2018 14:43:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad170168-7c6b-4092-8339-5c8e346de508</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I can see that you have already found the problem and the solution. Here you can find the message sequence chart for sd_ble_gap_connect():&lt;br /&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.0.0/group___b_l_e___g_a_p___c_e_n_t_r_a_l___c_o_n_n___m_s_c.html"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.0.0/group___b_l_e___g_a_p___c_e_n_t_r_a_l___c_o_n_n___m_s_c.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You will either get the BLE_GAP_EVT_CONNECTED or the BLE_GAP_EVT_TIMEOUT event, however if you set timeout to infinite (e.g.&amp;nbsp;.timeout = 0), then you may become stuck forever if the peripheral device is no longer present by the time you call&amp;nbsp;sd_ble_gap_connect(). So it is recommended to set a reasonable timeout (e.g. a few seconds to a minute) in case the peripheral device is no longer present.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Restart Scanning failed - SD140 6.1.0</title><link>https://devzone.nordicsemi.com/thread/144513?ContentTypeID=1</link><pubDate>Thu, 16 Aug 2018 11:35:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa6d468b-c8da-41ee-9abc-4ae9560bffc3</guid><dc:creator>lolek</dc:creator><description>&lt;p&gt;I found a solution for the problem above - I changed the Advertising timeout from infinite to 1 min.&lt;/p&gt;
&lt;p&gt;if the corrupted sensors tries to connect, after the advertising time out I get&amp;nbsp;BLE_GAP_TIMEOUT_SRC_CONN instead of&amp;nbsp;BLE_GAP_TIMEOUT_SRC_SCAN and then start scanning again.&lt;/p&gt;
&lt;p&gt;it seems like a bug...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>