<?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>[nRF Connect SDK]How to accept new incoming connection and disconnect existing connection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91623/nrf-connect-sdk-how-to-accept-new-incoming-connection-and-disconnect-existing-connection</link><description>Target nRF52832(nrf52dk_nrf52832) SDK NCS v2.0.0 
 One of my customer expects such a scenario. 1) BLE accept first connection. 2) If BLE have another connection, BLE disconnect previous connection, so that BLE have one connection. (always have last connection</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Sep 2022 07:09:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91623/nrf-connect-sdk-how-to-accept-new-incoming-connection-and-disconnect-existing-connection" /><item><title>RE: [nRF Connect SDK]How to accept new incoming connection and disconnect existing connection</title><link>https://devzone.nordicsemi.com/thread/388259?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2022 07:09:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38435ca6-2a3d-4355-ae5a-ef2beb002dca</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;I could accept new incoming referring&amp;nbsp;peripheral_hids_keyboard sample.&lt;br /&gt;&lt;br /&gt;Thank you.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK]How to accept new incoming connection and disconnect existing connection</title><link>https://devzone.nordicsemi.com/thread/387789?ContentTypeID=1</link><pubDate>Mon, 26 Sep 2022 01:09:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:961cdda9-9ddc-4e69-94a4-be356674ab8a</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;I have just found&amp;nbsp;bt_conn_unref(current_conn)&amp;nbsp;is related this issue.&lt;br /&gt;I will do some test with&amp;nbsp;NCS200\v2.0.0\nrf\samples\bluetooth\peripheral_uart then do some test my target project.&lt;br /&gt;&lt;br /&gt;Then I&amp;#39;ll update this case. &lt;br /&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK]How to accept new incoming connection and disconnect existing connection</title><link>https://devzone.nordicsemi.com/thread/387784?ContentTypeID=1</link><pubDate>Mon, 26 Sep 2022 00:39:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af8ff459-6175-4dd9-9e30-353186cbf1bc</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;Hello.&lt;br /&gt;&lt;br /&gt;In my test, although&amp;nbsp;&lt;span&gt;CONFIG_BT_MAX_CONN is 3 and&amp;nbsp;&lt;/span&gt;bt_le_adv_start() was called with no error when disconnected, Nordic did not start advertising&amp;nbsp;until all connections are removed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK]How to accept new incoming connection and disconnect existing connection</title><link>https://devzone.nordicsemi.com/thread/387615?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2022 07:37:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d52c649-8e01-437d-a12d-bf8c6062ca56</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;As a test, can you try to increase CONFIG_BT_MAX_CONN to &amp;#39;3&amp;#39; and comment the call to bt_le_adv_start() inside the disconnected callback?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK]How to accept new incoming connection and disconnect existing connection</title><link>https://devzone.nordicsemi.com/thread/387596?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2022 03:57:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a890fa6-7f22-4540-b26f-147995784392</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;Can you please update it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK]How to accept new incoming connection and disconnect existing connection</title><link>https://devzone.nordicsemi.com/thread/386984?ContentTypeID=1</link><pubDate>Tue, 20 Sep 2022 05:31:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2454f035-072f-42db-9cce-53bffca71db3</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/rttLog.txt"&gt;devzone.nordicsemi.com/.../rttLog.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;sample:&amp;nbsp;d:\NCS200\v2.0.0\nrf\samples\bluetooth\peripheral_uart&lt;/p&gt;
&lt;p&gt;Test step&lt;br /&gt;1. Prepare two Android: EF550, HF550 (Bluebird Android handset. Qualcomm AP)&lt;br /&gt;2. Connect EF550 from Android (Nordic app): connected&lt;br /&gt;3. Connect HF550&lt;span&gt;from Android (Nordic app)&lt;/span&gt;: connected&lt;br /&gt;3. Disconnect EF550: disconnected&lt;br /&gt;4. Disconnect HF550: disconnected&lt;br /&gt;5. &lt;span&gt;Connect EF550 from Android (Nordic app): connected&lt;/span&gt;&lt;br /&gt;6. HF550 and All another Android cannot scan Nordic BLE&lt;br /&gt;(No pairing)&lt;br /&gt;&lt;br /&gt;changes&lt;br /&gt;CONFIG_BT_MAX_CONN=2&lt;br /&gt;CONFIG_BT_MAX_PAIRED=2&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/peripheral_5F00_uart.0.7z"&gt;devzone.nordicsemi.com/.../peripheral_5F00_uart.0.7z&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I add bt_le_adv_start() when disconnected, it was not effective for me.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:312px;max-width:384px;" height="312" src="https://devzone.nordicsemi.com/resized-image/__size/768x624/__key/communityserver-discussions-components-files/4/pastedimage1663651685116v1.png" width="384" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BTW, When I disconnect all connection, Advertisement was resumed.&lt;br /&gt;&lt;br /&gt;Do you have any idea?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK]How to accept new incoming connection and disconnect existing connection</title><link>https://devzone.nordicsemi.com/thread/386068?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2022 23:42:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:747d9efd-eca6-4805-be29-ab91fb5783f5</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;Thanks for updating. I&amp;#39;ll test it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK]How to accept new incoming connection and disconnect existing connection</title><link>https://devzone.nordicsemi.com/thread/385908?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2022 09:54:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db2cab02-0cb4-42ec-bc5d-7b6581e2c60f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Does your application start connectable advertising again after disconnecting from phone A?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK]How to accept new incoming connection and disconnect existing connection</title><link>https://devzone.nordicsemi.com/thread/385825?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2022 00:03:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10530fdb-b3ff-4cd9-880f-cfc300af5e97</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;(Sep&amp;nbsp;8&amp;nbsp;~ Sep 12 was holiday season in South Korea so that I cannot answer your mention.)&lt;br /&gt;&lt;br /&gt;1) Android A connect to&amp;nbsp;BLE.&lt;br /&gt;&lt;span&gt;2) Android&amp;nbsp;B connect to&amp;nbsp;BLE.&amp;nbsp;Android A is disconnected.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;3) Android A try to connect to&amp;nbsp;BLE again,&amp;nbsp;but no connection was made with any log.&lt;br /&gt;&lt;br /&gt;This is what I&amp;#39;m experiencing.&lt;br /&gt;I thought Android A, Android B can connect BLE sequentially.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK]How to accept new incoming connection and disconnect existing connection</title><link>https://devzone.nordicsemi.com/thread/385224?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 10:17:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab58434b-4684-429f-9af8-46782b373840</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You will not be able to establish a third connection if CONFIG_BT_MAX_CONN==2. But is that what you want? You indicated earlier that you only needed 2.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK]How to accept new incoming connection and disconnect existing connection</title><link>https://devzone.nordicsemi.com/thread/384696?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2022 06:31:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39759253-68fc-449c-a9c6-686f9152b6b8</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;Thanks for reply.&lt;br /&gt;&lt;br /&gt;I could manage to get second connection.&lt;br /&gt;&lt;br /&gt;In this time, I cannot make third connection. Nordic log did not show any incoming connection.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I disconnect existing connection when new connection is made. Is it right scenario?&lt;br /&gt;&lt;br /&gt;Can I have another option to disconnect existing connection smoothly?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK]How to accept new incoming connection and disconnect existing connection</title><link>https://devzone.nordicsemi.com/thread/384625?ContentTypeID=1</link><pubDate>Mon, 05 Sep 2022 14:16:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0327e5d5-d8b9-4140-9086-0ab772c7f8dd</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;This should not be a problem to do. What happens when you try to disconnect, do you get an error?&lt;/p&gt;
&lt;p&gt;Relevant APIs:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/zephyr/connectivity/bluetooth/api/connection_mgmt.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/zephyr/connectivity/bluetooth/api/connection_mgmt.html&lt;/a&gt; &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></channel></rss>