<?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>Close the existing BLE connection.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/126151/close-the-existing-ble-connection</link><description>I use BLE for one-to-many connections. Usually, the peripheral device should first broadcast, then establish the connection for communication, and finally disconnect. However, at present, let&amp;#39;s assume that the Bluetooth parameters are incorrect, there</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Dec 2025 07:53:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/126151/close-the-existing-ble-connection" /><item><title>RE: Close the existing BLE connection.</title><link>https://devzone.nordicsemi.com/thread/557163?ContentTypeID=1</link><pubDate>Wed, 17 Dec 2025 07:53:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a2032a5-e2c3-4427-9050-5b5c534f9316</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for the update. Please create a separate thread about adjusting the connection parameters and include information about what you want to optimise for. When selecting connection parameters you usually&amp;nbsp;need to consider the tradeoffs (latency, power consumption, multi link scheduling, etc)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Close the existing BLE connection.</title><link>https://devzone.nordicsemi.com/thread/557161?ContentTypeID=1</link><pubDate>Wed, 17 Dec 2025 07:46:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e98a9264-b4bf-455c-9f34-4a5a5beb7b1f</guid><dc:creator>carefree</dc:creator><description>&lt;p&gt;Thank you. In fact, I also discovered that I had called the bt_conn_disconnect function multiple times, which triggered this issue.&lt;br /&gt;Additionally, I have a small issue. I found a code for multi-device connection, but this code is only for the central device side. Since I want to optimize my Bluetooth connection parameters, but I haven&amp;#39;t found the corresponding Bluetooth parameters for the peripheral devices, do you have any good suggestions?&lt;br /&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/v4.0.99-ncs1/samples/bluetooth/central_multilink"&gt;sdk-zephyr/samples/bluetooth/central_multilink at v4.0.99-ncs1 &amp;middot; nrfconnect/sdk-zephyr&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Close the existing BLE connection.</title><link>https://devzone.nordicsemi.com/thread/557159?ContentTypeID=1</link><pubDate>Wed, 17 Dec 2025 07:34:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0975276-bb6f-4227-a884-d81257c80ddd</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;In the central role, the application is responsible for releasing its connection object reference both on connection failure and on disconnect in order to allow the connection to be &amp;quot;released&amp;quot; after it has been terminated.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;bt_conn_unref() should only be called in these 2 places (assuming you don&amp;#39;t have any additional calls to&amp;nbsp;bt_conn_ref()):&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/09b89ef585d8ebba5fcb672b30cb670dd0f31772/samples/bluetooth/central_hr/src/main.c#L185"&gt;https://github.com/zephyrproject-rtos/zephyr/blob/09b89ef585d8ebba5fcb672b30cb670dd0f31772/samples/bluetooth/central_hr/src/main.c#L185&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/09b89ef585d8ebba5fcb672b30cb670dd0f31772/samples/bluetooth/central_hr/src/main.c#L222"&gt;https://github.com/zephyrproject-rtos/zephyr/blob/09b89ef585d8ebba5fcb672b30cb670dd0f31772/samples/bluetooth/central_hr/src/main.c#L222&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Close the existing BLE connection.</title><link>https://devzone.nordicsemi.com/thread/557005?ContentTypeID=1</link><pubDate>Mon, 15 Dec 2025 16:11:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95a37819-9711-459a-bbd9-56bfe29f37af</guid><dc:creator>carefree</dc:creator><description>&lt;p&gt;This situation occurs relatively infrequently, but once it happens, the peripheral device will be unable to reconnect. The code in this section is almost the same as what I asked about last time:&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/122698/ble-doesn-t-work"&gt;BLE doesn&amp;#39;t work. - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>