<?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>disconnect time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28316/disconnect-time</link><description>Hi. I&amp;#39;m using nRF52832, SDK13.0.0 as peripheral. 
 When I want to disconnect central, I&amp;#39;m using sd_ble_gap_disconnect function as below. 
 err_code = sd_ble_gap_disconnect(conn_handle_val, BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);
	APP_ERROR_CHECK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Dec 2017 23:22:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28316/disconnect-time" /><item><title>RE: disconnect time</title><link>https://devzone.nordicsemi.com/thread/111795?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2017 23:22:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39480d99-d5b1-4857-9ea4-51d9348a31fc</guid><dc:creator>roger.k</dc:creator><description>&lt;p&gt;Thank you very much for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: disconnect time</title><link>https://devzone.nordicsemi.com/thread/111796?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2017 16:23:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c92c8be-1e82-4a21-a5a0-e5237fc35213</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Roger,&lt;/p&gt;
&lt;p&gt;You may want to capture a sniffer trace when the issue happens and see check why the link was not terminated immediately.&lt;/p&gt;
&lt;p&gt;My understanding is that the connection terminate request has to be ACKed before the BLE_GAP_EVT_DISCONNECTED can come. So there is a chance that the central didn&amp;#39;t ACK the request and simply stop sending data after that. This will end up BLE_GAP_EVT_DISCONNECTED comes after 10 seconds because of timeout. You can check the disconnect reason to see if it&amp;#39;s a timeout or it&amp;#39;s user terminates connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>