<?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>Supervision timeout issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21695/supervision-timeout-issue</link><description>I&amp;#39;m having a strange problem where the Supervision timeout does not seem to work right at the point the connection is initiated (sd_ble_gap_connect() was called but BLE_GAP_EVT_CONNECTED is not yet received). At any other point during the connection,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Jun 2018 21:15:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21695/supervision-timeout-issue" /><item><title>RE: Supervision timeout issue</title><link>https://devzone.nordicsemi.com/thread/135014?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2018 21:15:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7e8d466-f553-4478-8321-8fa4f242d768</guid><dc:creator>dbuijsma</dc:creator><description>&lt;p&gt;It&amp;#39;s been a while, but&amp;nbsp;I wanted to close this out. In short, mea culpa:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ble_gap_scan_params_t is passed to sd_ble_gap_scan_start() to scan for advertisements:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;ble_gap_scan_params_t scan_params = {
        0,                      // Active scanning not set (we don&amp;#39;t care about scan responses at this point).
        0,                      // Selective scanning not set.
        0,                      // White-list not set.
        BLE_SCAN_INTERVAL,      // Scan interval.
        BLE_SCAN_WINDOW,        // Scan window.
        0                       // Never stop scanning unless explicitly asked to.
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When we want to connect to a device, we call&amp;nbsp;sd_ble_gap_connect() and&amp;nbsp;we passed the same scan_params[] structure which still has &amp;quot;timeout&amp;quot; set to 0 (= timeout disabled).&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Supervision timeout issue</title><link>https://devzone.nordicsemi.com/thread/85203?ContentTypeID=1</link><pubDate>Fri, 05 May 2017 11:46:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b8c8e29-2d37-4ba5-b817-643ae0425aa1</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Are you sure the connection was actually established? If it&amp;#39;s not you will scan for the device until the scan_params timeout is reached.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>