<?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>How to disconnect and enter to advertising without reconnecting to latest device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55152/how-to-disconnect-and-enter-to-advertising-without-reconnecting-to-latest-device</link><description>Hi, On a button press I need to enter to disconnect from the currently connected device and then start advertising in order to allow a new device to connect. I manage to disconnect and put the device in FAST_ADV but when the master device detects it,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Dec 2019 07:52:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55152/how-to-disconnect-and-enter-to-advertising-without-reconnecting-to-latest-device" /><item><title>RE: How to disconnect and enter to advertising without reconnecting to latest device</title><link>https://devzone.nordicsemi.com/thread/223481?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2019 07:52:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b66729f3-b101-44ac-a005-e21ad03e3f4f</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;&lt;span&gt;Unfortunately, we don&amp;#39;t have a blacklist feature, only the whitelist. If you need to blacklist a device the only option I see is to check the address on the connected event, and disconnect if it is the blacklisted device. After x amount of tries, the peripheral should inevitably connect to the second master instead of the initial master device. What kind of filter did you have in mind?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you are developing the master side of this application as well, you can, for example, set a delay after a disconnect before it starts scanning again. This should give your advertising device a few seconds to advertise to any other scanners before it is connected to the initial master again.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disconnect and enter to advertising without reconnecting to latest device</title><link>https://devzone.nordicsemi.com/thread/223414?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2019 17:02:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6d26493-1f1a-45b0-a47b-7c615bf4561c</guid><dc:creator>Tarik</dc:creator><description>&lt;p&gt;This means, I have to turn off the bluetooth on the master device if I want to be able to connect to a new master. there is no black list nor filters on the softdevice nor SDK, &lt;br /&gt;is there in theory at least a way to implement such a black list or filter ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disconnect and enter to advertising without reconnecting to latest device</title><link>https://devzone.nordicsemi.com/thread/223355?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2019 13:43:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1923fd13-11ba-4ade-9561-c97db873df68</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You can&amp;#39;t stop a peripheral from connecting to a master in BLE. If the slave receives a connection request it will automatically connect, so you&amp;#39;ll have to find a way to stop the advertising device from getting that connection request in the first place if you want it to connect to another master.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This issue has come up before and is discussed in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/4490/selectively-connecting-to-devices"&gt;this thread&lt;/a&gt;. Additional things you can do to discover the other device is to lower the TX power of the advertising device so that it will only discover devices in close proximity of itself.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>