<?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>BLE_GATTC_EVT_TIMEOUT - Holding up Scan</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40556/ble_gattc_evt_timeout---holding-up-scan</link><description>I am trying to test out the whitelist that I have created for the nrf52832 client. I have edited the whitelist so it will only allow one device to be bonded and added to the whitelist. I also have a scanning filter added which filters based off the Nordic</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Jan 2019 10:18:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40556/ble_gattc_evt_timeout---holding-up-scan" /><item><title>RE: BLE_GATTC_EVT_TIMEOUT - Holding up Scan</title><link>https://devzone.nordicsemi.com/thread/165912?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 10:18:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48244929-d2f4-496c-84b7-24cc064c134d</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Mia, I apologize for the late reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes,&amp;nbsp; a&amp;nbsp;&lt;span&gt;BLE_GAP_EVT_TIMEOUT&amp;nbsp;event with the source set to&amp;nbsp;BLE_GAP_TIMEOUT_SRC_SCAN will be generated when scanning times out, see the event structure for the timeout event below.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/**@brief Event structure for @ref BLE_GAP_EVT_TIMEOUT. */
typedef struct
{
  uint8_t src;                                  /**&amp;lt; Source of timeout event, see @ref BLE_GAP_TIMEOUT_SOURCES. */
  union
  {
    ble_data_t adv_report_buffer;               /**&amp;lt; If source is set to @ref BLE_GAP_TIMEOUT_SRC_SCAN, the released
                                                     scan buffer is contained in this field. */
  } params;                                     /**&amp;lt; Event Parameters. */
} ble_gap_evt_timeout_t;

/**@defgroup BLE_GAP_TIMEOUT_SOURCES GAP Timeout sources
 * @{ */
#define BLE_GAP_TIMEOUT_SRC_SCAN                       0x01 /**&amp;lt; Scanning timeout. */
#define BLE_GAP_TIMEOUT_SRC_CONN                       0x02 /**&amp;lt; Connection timeout. */
#define BLE_GAP_TIMEOUT_SRC_AUTH_PAYLOAD               0x03 /**&amp;lt; Authenticated payload timeout. */
/**@} */&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_GATTC_EVT_TIMEOUT - Holding up Scan</title><link>https://devzone.nordicsemi.com/thread/163094?ContentTypeID=1</link><pubDate>Thu, 27 Dec 2018 21:44:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1869233-b1f2-47f3-ad3b-9eb434198cd1</guid><dc:creator>Mia</dc:creator><description>&lt;p&gt;Hi Bjorn,&lt;/p&gt;
&lt;p&gt;I found that the timeout happened each time the scanning of the whitelist timed out. Changing the parameter&amp;nbsp;SCAN_DURATION_WHITELIST changed how often this timeout occurred.&lt;/p&gt;
&lt;p&gt;Do you know how these are linked?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mia&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_GATTC_EVT_TIMEOUT - Holding up Scan</title><link>https://devzone.nordicsemi.com/thread/158982?ContentTypeID=1</link><pubDate>Mon, 26 Nov 2018 09:58:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fce0d268-c219-4196-97ed-c1acb44c8f15</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;I am afraid that I do not know of any mobile apps that can capture BLE sniffer traces.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;OK, good to know that you have a viable workaround.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Its hard to say what the cause for the&amp;nbsp;&lt;span&gt;BLE_GAP_EVT_TIMEOUT is without the sniffer trace.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Bjørn&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_GATTC_EVT_TIMEOUT - Holding up Scan</title><link>https://devzone.nordicsemi.com/thread/158981?ContentTypeID=1</link><pubDate>Mon, 26 Nov 2018 09:58:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:593f5297-3ac6-4d39-944a-dab12e09858f</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;I am afraid that I do not know of any mobile apps that can capture BLE sniffer traces.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;OK, good to know that you have a viable workaround.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Its hard to say what the cause for the&amp;nbsp;&lt;span&gt;BLE_GAP_EVT_TIMEOUT is without the sniffer trace.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Bjørn&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_GATTC_EVT_TIMEOUT - Holding up Scan</title><link>https://devzone.nordicsemi.com/thread/158944?ContentTypeID=1</link><pubDate>Mon, 26 Nov 2018 04:23:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be3c80d0-6cf0-4c40-a97a-88c053a3f4a1</guid><dc:creator>Mia</dc:creator><description>&lt;p&gt;I wanted to add that adding int he scan_start after the &lt;span&gt;BLE_GAP_EVT_TIMEOUT event is seen&amp;nbsp;&lt;/span&gt;solved my issue for allowing the phone connect again.&amp;nbsp;However, I&amp;#39;m still not sure why the&amp;nbsp;&lt;span&gt;BLE_GAP_EVT_TIMEOUT event is happening in the first place.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_GATTC_EVT_TIMEOUT - Holding up Scan</title><link>https://devzone.nordicsemi.com/thread/158943?ContentTypeID=1</link><pubDate>Mon, 26 Nov 2018 04:20:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5955cc93-09fc-40b2-869f-6d9bf911d267</guid><dc:creator>Mia</dc:creator><description>&lt;p&gt;Let me see what I can do. My only issue is I would need a 3rd controller to build that sniffer as I am currently using the two that I have, one as the client and one to spoof the UUID.&lt;/p&gt;
&lt;p&gt;Any suggestions on apps that can achieve the same goal?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_GATTC_EVT_TIMEOUT - Holding up Scan</title><link>https://devzone.nordicsemi.com/thread/158012?ContentTypeID=1</link><pubDate>Mon, 19 Nov 2018 14:47:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70ff4c02-ea1a-4258-95d8-5c659f22f6a9</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;I cant think of any reason for not sending scan requests to devices should lead to the SoftDevice locking up.&amp;nbsp;&lt;br /&gt;Could you capture a trace of the on air packets using the &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF-Sniffer"&gt;nRF Sniffer v2&amp;nbsp;&lt;/a&gt;? It would make it easier to debug the issue.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_GATTC_EVT_TIMEOUT - Holding up Scan</title><link>https://devzone.nordicsemi.com/thread/157787?ContentTypeID=1</link><pubDate>Fri, 16 Nov 2018 16:56:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d93f7e2b-5a59-41f9-ad73-28af4c81c612</guid><dc:creator>Mia</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry. I highlighted the wrong event to copy over. It is BLE_GAP_EVT_TIMEOUT&lt;span&gt; that is issued.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am not sure what I would be missing in my whitelist set up. I have my scanner set up as inactive, for reasons that I dont want the device sending scan requests to all devices. Would this have an effect possibly?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_GATTC_EVT_TIMEOUT - Holding up Scan</title><link>https://devzone.nordicsemi.com/thread/157710?ContentTypeID=1</link><pubDate>Fri, 16 Nov 2018 12:34:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1209b351-3a83-4511-a4d1-948538c07ee1</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Mia,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the&amp;nbsp;BLE_GATTC_EVT_TIMEOUT is issued when a GATT procedure, i.e. writing or reading an Attribute times out, see&amp;nbsp;&lt;a class="el" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.0.0/group___b_l_e___g_a_t_t_c___t_i_m_e_o_u_t___m_s_c.html"&gt;GATTC Timeout&lt;/a&gt;.&amp;nbsp;&amp;nbsp;Its not related to the connection timing out which will be signaled with a&amp;nbsp;&lt;span&gt;BLE_GAP_EVT_TIMEOUT event. Hence, you need to look at the peripheral you&amp;#39;re communicating with as it is not responding to the ATT packet sent by your central.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Yes, scanning must be restarted as it is stopped when you call&amp;nbsp;sd_ble_gap_connect(), so you should restart scanning when you get the BLE_GAP_EVT_TIMEOUT&lt;span&gt;&amp;nbsp;event.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If the whitelist is set up correctly then you should only get&amp;nbsp;BLE_GAP_EVT_ADV_REPORT events from devices that are in the whitelist. Advertisment packets from Non- whitelisted devices are ignored at the Link layer.&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bj&amp;oslash;rn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>