<?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>Issue with connection kick</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70215/issue-with-connection-kick</link><description>Hello, 
 
 I have a security issue with a product with nr52840 because if a hacker connect to my device with nrf toolbox for example, when i stop the bluetooth connexion on my device, it will reconnect automatically so i can&amp;#39;t communicate with the device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Jan 2021 15:10:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70215/issue-with-connection-kick" /><item><title>RE: Issue with connection kick</title><link>https://devzone.nordicsemi.com/thread/288002?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2021 15:10:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c9f7063-42c5-4d3b-acfa-ed6579cbe42d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Yes. That is in fact the common way to do that. But note that whitelisting is &lt;strong&gt;typically&amp;nbsp;&lt;/strong&gt;used together with bonding (storing connection encryption for future use). If you want to try it out, you can try to connect to the ble_app_gls example example from SDK17.0.2\examples\ble_peripheral\ble_app_gls folder. Note that the first time you connect, you need to enter a 6-digit passkey that is printed in the log from the nRF, while the next time you don&amp;#39;t need to do that. After entering this passkey, only the bonded device will be able to connect, unless you press the button2 on the DK with a long press. Look at the implementation of the&amp;nbsp;BSP_EVENT_WHITELIST_OFF.&lt;/p&gt;
&lt;p&gt;Alternatively you can delete the bonding information by holding button 2 is held while you power on or reset the device (or erase the flash on the nRF).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with connection kick</title><link>https://devzone.nordicsemi.com/thread/287981?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2021 14:38:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90b8f129-87ca-4ece-8a8a-20f969e3c168</guid><dc:creator>MarcAntoineProtiere</dc:creator><description>&lt;p&gt;Okay thank you Edvin this is really helpful,&lt;/p&gt;
&lt;p&gt;Is it possible that the program runs without a whitelist on the beginning and that we set a whitelist after when all the devices adresses authorized are known by the device ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with connection kick</title><link>https://devzone.nordicsemi.com/thread/287979?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2021 14:31:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29892bd4-4ca6-45e8-a68c-5807eacafc17</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;There is no such thing as a blacklist in BLE. However, you can check the BLE address of the connected device (which I assume is what you mean by MAC address) in the connection event. If this is not the device you want to connect to, you can disconnect from the device from within this event.&lt;/p&gt;
&lt;p&gt;There is however something called whitelisting in BLE. This is usually used together with something called bonding. But this would require you to know what device you want to connect to, by knowing the BLE address of that device. If so, you can add this address to the whitelist, and the peripheral will only accept connection requests from devices in the whitelist.&lt;/p&gt;
&lt;p&gt;If you do not use a whitelist when you advertise, then anyone can connect to the device, so the peripheral will have to decide whether or not to disconnect after the connection event.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>