<?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 disconnection does not finish</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24532/ble-disconnection-does-not-finish</link><description>Hi,
I am working on the latest version of SDK (v14) and SoftDevice(v5) on nRF52382. When I call the sd_gap_disconnect it returns NRF_SUCCESS. However the BLE_GAP_DISCONNECT event is not called and the system resets. I checked the reset reason in the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Aug 2017 14:20:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24532/ble-disconnection-does-not-finish" /><item><title>RE: BLE disconnection does not finish</title><link>https://devzone.nordicsemi.com/thread/96568?ContentTypeID=1</link><pubDate>Wed, 23 Aug 2017 14:20:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e3a7bdb-22ea-4db1-ac48-c00b05180faf</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Would ble_conn_params_stop() or ble_conn_params_change_conn_params() cover your use case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE disconnection does not finish</title><link>https://devzone.nordicsemi.com/thread/96567?ContentTypeID=1</link><pubDate>Wed, 23 Aug 2017 13:58:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:074f8b1c-9ffd-41fa-9847-98217a48c645</guid><dc:creator>Siddhesh</dc:creator><description>&lt;p&gt;It is a part of a series of steps such as re-enabling the stack, initializing the gap parameters, advertising data etc. which are performed when the board wakes up or when it enters pairing mode. So the parameters were re-initialized every time when the board entered pairing mode. As I said earlier, this worked in the previous SDK, however the new one doesn&amp;#39;t allow so because the change in the new SDK is that the timer in ble_conns_params_init is being called inside a loop.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE disconnection does not finish</title><link>https://devzone.nordicsemi.com/thread/96569?ContentTypeID=1</link><pubDate>Wed, 23 Aug 2017 13:01:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99cee120-46c3-4ec3-96e0-138a61324545</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry, I don&amp;#39;t know the details behind this change. Could you explain a bit more about what you want to achieve by calling it twice?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE disconnection does not finish</title><link>https://devzone.nordicsemi.com/thread/96570?ContentTypeID=1</link><pubDate>Tue, 22 Aug 2017 20:49:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2b6c244-00a9-44b3-b6c8-456ce4a1501c</guid><dc:creator>Siddhesh</dc:creator><description>&lt;p&gt;Could you give any clarification as to why the params_init function should be only called once. The re-initialization worked in the previous SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE disconnection does not finish</title><link>https://devzone.nordicsemi.com/thread/96571?ContentTypeID=1</link><pubDate>Tue, 22 Aug 2017 20:47:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e2e3cf7-529a-4837-8590-bad14d83db4d</guid><dc:creator>Siddhesh</dc:creator><description>&lt;p&gt;The cause for the reset was an Internal error. This error came from the ble_conn_params.c file. The function which returned this error is ble_conn_params_init. The timer at the end is initialized once at the beginning and fails the next time we call the params_init function. Handling the internal error fixed the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE disconnection does not finish</title><link>https://devzone.nordicsemi.com/thread/96566?ContentTypeID=1</link><pubDate>Tue, 22 Aug 2017 15:15:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45256425-861e-4d2b-bd71-672722d4243c</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Have you tried to put a breakpoint in the error handler? If yo get an error it will reset the device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>