<?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 prevent Windows automatic reconnection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102418/how-to-prevent-windows-automatic-reconnection</link><description>Hi, 
 We have a device running an nRF52832 as a peripheral, we use LESC with Just Works in some cases, and with MITM protection in other cases (different firmware versions). The other side is a Windows PC where we run software that connects to the device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Sep 2023 13:50:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102418/how-to-prevent-windows-automatic-reconnection" /><item><title>RE: How to prevent Windows automatic reconnection</title><link>https://devzone.nordicsemi.com/thread/444536?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2023 13:50:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06427fa7-1e8d-4bae-9b03-47137b5ad4d1</guid><dc:creator>Federico</dc:creator><description>&lt;p&gt;Hi susheel,&lt;/p&gt;
&lt;p&gt;Thanks for the answer! Your workaround might work for this specific case with the Glucose example, but our system always has the &amp;quot;allow_repairing&amp;quot; flag in true, and we still see this behavior from time to time, and in such cases erasing the bond info has no effect.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Is there anyway to prevent an external device from spamming with connection attempts? We&amp;#39;ve tried the blacklist but it&amp;#39;s not exactly what we&amp;#39;re looking for, because the external device connects and then it&amp;#39;s kicked out. This still consumes resources on the nRF side. We&amp;#39;d like a way to ignore the connection requests from a given MAC address, for example. Is this possible?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Thanks!&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to prevent Windows automatic reconnection</title><link>https://devzone.nordicsemi.com/thread/442293?ContentTypeID=1</link><pubDate>Mon, 21 Aug 2023 12:11:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19b5924b-4f66-43af-9957-06109be46edd</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I think the main issue here is that when you delete the bond information in the windows, the bond information in the nRF device still remains. When the windows device is trying to connect to your glucose device again, windows wants sees this device as new (since we removed the pairing information). But to the nRF Glucose device, which did not delete its bond information, it sees the windows machine as a trusted paired device. This is causing both the devices to act differently.&lt;/p&gt;
&lt;p&gt;When you remove the pairing information in the windows, you should somehow communicate this to the nRF device and call&amp;nbsp;delete_bonds(). In the Glucose example, we can delete the bonds in the nRF when you reboot the chip while pressing button 4 (delete bonds button).&lt;/p&gt;
&lt;p&gt;So try to reproduce the issue again with the steps you mentioned and after that reboot the nRF device with button 4 pressed. That will erase the bond info on nRF as well and both devices now see each other as untrusted and initiate meaningful procedures to gain trust. So you should find a suitable place in your application where you call&amp;nbsp;delete_bonds(); when the Windows delete its bond information (maybe in the disconnected event based on the disconnect reason)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to prevent Windows automatic reconnection</title><link>https://devzone.nordicsemi.com/thread/442029?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2023 08:11:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57ce6b92-dd48-4ad5-9fab-0999edaae593</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Federico, Most of us are back from Summer vacation on Monday, sorry for the delays it caused. I will try to reproduce this on Monday. It is not usual in normal (non holidays) period that we take this time reproduce. I appreciate your patience. You will hear from me early next week on my observations.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to prevent Windows automatic reconnection</title><link>https://devzone.nordicsemi.com/thread/441416?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2023 14:10:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff02b1ae-0f00-4b47-97f3-30e8be3c69c5</guid><dc:creator>Federico</dc:creator><description>&lt;p&gt;Hi Susheel, do you have any updates? Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to prevent Windows automatic reconnection</title><link>https://devzone.nordicsemi.com/thread/440742?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2023 12:50:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73f12fd7-4034-432d-b1b5-031897402f58</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I am sorry for delays Federico, I did not manage to work on reproducing it this week. I will be away for a week and will request one of my colleagues to see if they can reproduce it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to prevent Windows automatic reconnection</title><link>https://devzone.nordicsemi.com/thread/440147?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2023 14:09:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95fe4607-ae06-4174-aeb5-08f056609a4a</guid><dc:creator>Federico</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;/p&gt;
&lt;p&gt;Just to post a few updates. We were able to narrow down a couple of things:&lt;/p&gt;
&lt;p&gt;1) All our issues can be reproduced with the Glucose example from the SDK17&lt;/p&gt;
&lt;p&gt;2) To reproduce issue 1) from the OP, just search for bluetooth devices from the Bluetooth window, pair and wait for the status to change from &amp;quot;Connected&amp;quot; to &amp;quot;Paired&amp;quot;. Then press &amp;quot;Remove Device&amp;quot;. You can see on the nRF log that windows triggered a connection and pairing. It&amp;#39;s not obvious on the PC because this pairing has actually failed. To see the user prompt, modify the Glucose example to &amp;quot;allow_repairing=true&amp;quot;. This will cause a pop-up to show on the PC when removing. This does not happen for other BLE devices, how could we prevent this? What triggers this?&lt;/p&gt;
&lt;p&gt;3) We were also able to reproduce the connection loop on Windows. It&amp;#39;s fairly simple actually, just pair with the Glucose example as-is, with allow_repairing in FALSE. Then remove the device and then pair again. The nRF will refuse the pairing and windows will keep on reconnecting, and failing, in the background, non-stop. This looks like a windows bug really, but is there anything we can do to prevent this? We can set allow_repairing to TRUE, but it looks like other errors during a pairing sequence will trigger this as well, so it&amp;#39;s not a complete solution. The black list doesn&amp;#39;t really solve it, it will just kick the PC out but it&amp;#39;s still taking up resources for a while. This behavior is really taxing on our system from the point of view of power draw and connection availability to other devices. Is there anything we can do?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We&amp;#39;re working on Windows 10 with integrated Intel BLE/Wifi chips.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to prevent Windows automatic reconnection</title><link>https://devzone.nordicsemi.com/thread/439894?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2023 11:26:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0e35378-a4da-41db-a4aa-57554639e988</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;We were a bit understaffed due to summer holidays, Sorry for the late reply,&amp;nbsp;&lt;br /&gt;I got assigned to this case and will respond to your queries at most on Monday. Thanks for your patience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>