<?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>Is there a way to disconnect from devices that have exceeded the maximum number of connections allowed?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89548/is-there-a-way-to-disconnect-from-devices-that-have-exceeded-the-maximum-number-of-connections-allowed</link><description>Is there a way to disconnect from devices that have exceeded the maximum number of connections allowed? 
 I am developing with nrf52832 (s132 v7.0.1, SDK v17.0.0) as a peripheral device. 
 The s132 can connect up to 20 devices. I currently have &amp;quot;NRF_SDH_BLE_PERIPHERAL_LINK_COUNT</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Jul 2022 07:46:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89548/is-there-a-way-to-disconnect-from-devices-that-have-exceeded-the-maximum-number-of-connections-allowed" /><item><title>RE: Is there a way to disconnect from devices that have exceeded the maximum number of connections allowed?</title><link>https://devzone.nordicsemi.com/thread/375674?ContentTypeID=1</link><pubDate>Wed, 06 Jul 2022 07:46:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66abf03b-06de-44f7-9ba2-d6aa11c986db</guid><dc:creator>sdi_kei</dc:creator><description>&lt;p&gt;Hello.&lt;/p&gt;
&lt;p&gt;I was just looking at the GUI and it looked like it was possible to connect, but in reality it is not possible to connect without receiving an advertisement.&lt;/p&gt;
&lt;p&gt;Thank you very much. It helped me a lot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to disconnect from devices that have exceeded the maximum number of connections allowed?</title><link>https://devzone.nordicsemi.com/thread/375241?ContentTypeID=1</link><pubDate>Mon, 04 Jul 2022 06:01:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fb498af-0813-4eba-91fd-c09c1a390341</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="sdi_kei"]However, if I do a Scan with nRF Connect, I can connect to the device that has previously advertised to me.[/quote]
&lt;p&gt;No, that is not possible. However, the&amp;nbsp; GUI may make it seem like it is possible as you can select to connect, and then it will wait for the peripheral to advertise so that it can connect (a connection can only be established in a short time window immediately following an advertising packet). If it does not, it will block until it times out. Note that the way connections are established is defined by the Bluetooth specification, and it is simply not possible to connect to a device that is not currently advertising.&lt;/p&gt;
[quote user="sdi_kei"]Can I disconnect from the 9th device that I am trying to connect to from nRF Connect at this time?[/quote]
&lt;p&gt;There is nothing you can do on the peripheral to change this behavior, as it resides entirely in the central. There is no connection active in the case you described, it is just that the central is waiting for the opportunity to connect. You can verify that no connection is initiated by checking with a sniffer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to disconnect from devices that have exceeded the maximum number of connections allowed?</title><link>https://devzone.nordicsemi.com/thread/375228?ContentTypeID=1</link><pubDate>Mon, 04 Jul 2022 00:28:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa1ec0a5-ba47-4f1b-87fa-70dd624dce8a</guid><dc:creator>sdi_kei</dc:creator><description>&lt;p&gt;Hello.&lt;/p&gt;
&lt;p&gt;I try to stop adverting when I am able to connect with 8 units. Therefore, it should not be possible to connect with the 9th device.&lt;br /&gt;However, if I do a Scan with nRF Connect, I can connect to the device that has previously advertised to me.&lt;br /&gt;Can I disconnect from the 9th device that I am trying to connect to from nRF Connect at this time?&lt;/p&gt;
&lt;p&gt;Thank you in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a way to disconnect from devices that have exceeded the maximum number of connections allowed?</title><link>https://devzone.nordicsemi.com/thread/375080?ContentTypeID=1</link><pubDate>Fri, 01 Jul 2022 11:58:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cb28353-8373-44d1-8dae-616bc09f5ffc</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I would suggest to handle this before the issue occurs. If you only support 8 connections, then it does not make sense to use connectable advertising when you already have 8 connections. So I suggest only advertise connectable with up to 7 connections, and either don&amp;#39;t advertise or advertise non-connectable when you have 8 connections (depending on what makes sense for your use case).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>