<?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>Pairing on demand &amp;amp; Automatic bonding</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73283/pairing-on-demand-automatic-bonding</link><description>Hi Folks, 
 I am just asking general information (explanation and/or code samples examples) to set up a secured BLE connection between multiple centrals towards one peripheral working as BLE uart. 
 Her are my concerns for the moment: 
 I plan to use</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Jun 2021 12:38:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73283/pairing-on-demand-automatic-bonding" /><item><title>RE: Pairing on demand &amp; Automatic bonding</title><link>https://devzone.nordicsemi.com/thread/317236?ContentTypeID=1</link><pubDate>Fri, 25 Jun 2021 12:38:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c33d3ff8-29d7-484b-af97-cb9c0dc4087e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Edvin is out of office for the time being. This case is also rather old, so if you have any further questions I would suggest making a new DevZone ticket and rather link to this one if relevant.&lt;/p&gt;
&lt;p&gt;As for the question on whitelisting, it does indeed seem like you understand the behavior correctly. Devices that are not whitelisted will not be able to connect to a central that is scanning for specific whitelisted devices, and new devices must be added on the central side.&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><item><title>RE: Pairing on demand &amp; Automatic bonding</title><link>https://devzone.nordicsemi.com/thread/316783?ContentTypeID=1</link><pubDate>Wed, 23 Jun 2021 14:30:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:123220a8-5543-432a-bfef-734f183573d4</guid><dc:creator>Sebastien DRI</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Sorry for the late response.&lt;/p&gt;
&lt;p&gt;Today I am back to close this chapter on bonding &amp;amp; Whitelist. So as far as I understand, once bonding is done, peer is automatically registered into whitelist as long as we do not remove it.&lt;/p&gt;
&lt;p&gt;My concern was about ensuring when we advertise&amp;nbsp;/ scan with whitelist that no other device could be bonded (so added to the whitelist) when running in that mode.&lt;/p&gt;
&lt;p&gt;Consequently I suppose no more bonding could be allowed while adverstising/scanning with whitelist since the purpose is to restrict new entrant.&lt;/p&gt;
&lt;p&gt;Is it the normal behaviour? Do I understand well?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing on demand &amp; Automatic bonding</title><link>https://devzone.nordicsemi.com/thread/303103?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 10:51:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99f2b47a-4d5f-41f1-b02f-99add0649e8d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I suggest you look at how the examples implement this. Look at the ble_app_gls example from the SDK, and how it uses a button press to open for new bonds.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="sebastopolix"]&lt;p&gt;-I have a whitelist of 8 elements and for example one bonded and connected central in the whitelist.&lt;/p&gt;
&lt;p&gt;How do I prevent from a new authorized peer (by the mean of LESC) to bond and thus registered into the current whitelist?&lt;/p&gt;
&lt;p&gt;I want him to be bond once I manually open the whitelist to a new peer.&lt;/p&gt;[/quote]
&lt;p&gt;&amp;nbsp;I don&amp;#39;t understand what you mean. Do you want to differ between adding devices to the whitelist and bonding? In that case, that is not the typical use case, and you would have to change the implementation of the peer manager. But ask yourself what you really want to achieve by doing this and whether it is the intended behavior. I don&amp;#39;t understand why you would want to do that. Are you really sure you need the whitelist at all in that case? Do you know what the whitelist is used for?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I asked you earlier, but I don&amp;#39;t think you answered. Is the whitelist intended for advertising or scanning? And are you going to connect to the devices in the whitelist?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing on demand &amp; Automatic bonding</title><link>https://devzone.nordicsemi.com/thread/302782?ContentTypeID=1</link><pubDate>Wed, 31 Mar 2021 14:54:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99151977-d977-4dbd-8d2c-c6ed8bdb351a</guid><dc:creator>Sebastien DRI</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Everything become&amp;nbsp;more evident now.&lt;/p&gt;
&lt;p&gt;One final question about advertising with whitelist:&lt;/p&gt;
&lt;p&gt;-I have a whitelist of 8 elements and for example one bonded and connected central in the whitelist.&lt;/p&gt;
&lt;p&gt;How do I prevent from a new authorized peer (by the mean of LESC) to bond and thus registered into the current whitelist?&lt;/p&gt;
&lt;p&gt;I want him to be bond once I manually open the whitelist to a new peer.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you again&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing on demand &amp; Automatic bonding</title><link>https://devzone.nordicsemi.com/thread/302381?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 13:26:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19c8f77d-629a-4247-828b-bec5bdcba14c</guid><dc:creator>Edvin</dc:creator><description>[quote user="sebastopolix"]What happens if the central device static adress changes after an established connection? Does it delete the bond between the two?&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;No, it doesn&amp;#39;t. Not unless you tell it to, but then how would you know what device to delete from the whitelist if a new random address appears?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Either way, the nRF&amp;#39;s come with a preprogrammed address, that doesn&amp;#39;t change during the lifetime of the nRF. However, if you for some reason need to do so, you can change the address manually, but unless you do this, the address will not change.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="sebastopolix"]I do not plan to perform such a kind of scenario but it was just in the goal to better understand on which elements are based the bond information when random static addressing is used.[/quote]
&lt;p&gt;&amp;nbsp;The bonding information is built on the address. It is the address that is used in the whitelist, and paired with the peer ID.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing on demand &amp; Automatic bonding</title><link>https://devzone.nordicsemi.com/thread/302352?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 11:32:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b6867e3-26d8-47f5-aaa0-bcf387612a70</guid><dc:creator>Sebastien DRI</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank u again for your answer.&lt;/p&gt;
&lt;p&gt;I am planning to connect on another embedded device. More precisely, I use a NUS central/peripheral implementation.&lt;/p&gt;
&lt;p&gt;I am asking about&amp;nbsp;&lt;span&gt;private resolvable address since IRK is related to that concept but our actual need is to evaluate the best solution for securising the link between centrals and peripheral.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I understand the privacy concept behind this type of addressing and we do not need that so Random Static address will be convenient. My only concern was to check what information to store in Whitelist and in flash memory since we want to reconnect automatically upon new start up.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So in fact our needs is to set up various central static adresses that will remain unchanged with time and to keep bonding track on those adresses even if &amp;micro;C restart.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/73283/pairing-on-demand-automatic-bonding/302338#302338"]I suppose that bond must be ko if a central or peripheral random static adress changes.[/quote]
&lt;p&gt;I was asking that question for a current alive connection between two paired devices. What happens if the central device static adress changes after an established connection? Does it delete the bond between the two?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I do not plan to perform such a kind of scenario but it was just in the goal to better understand on which elements are based the bond information when random static addressing is used.&lt;/p&gt;
&lt;p&gt;Thank you again for your time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing on demand &amp; Automatic bonding</title><link>https://devzone.nordicsemi.com/thread/302338?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 10:23:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21651699-45cd-4657-ba10-5bc9be8e7aa4</guid><dc:creator>Edvin</dc:creator><description>[quote user="sebastopolix"]IRK adress is only existing for private static resolvable adress, not static, right?[/quote]
&lt;p&gt;&amp;nbsp;IRKs are used for&amp;nbsp;&lt;strong&gt;Random Private Resolvable Addresses&lt;/strong&gt;. &amp;quot;static&amp;quot; would indicate that the address is not changing. &amp;quot;resolvable&amp;quot; indicates that it is possible to use an IRK key to find the owner of the address. A private non-resolvable address would indicate that it is changing to completely random addresses.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Tell me, what are you actually trying to connect to? Is it a phone? Computer? Or another embedded device? The reason I ask is that typically, you don&amp;#39;t have to think about these address types. I rarely see questions about it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Or are you actually trying to implement a random private resolvable address on the nRF? If so, why?&lt;/p&gt;
&lt;p&gt;Or did we just start barking up the address type tree for no apparent reason?&lt;/p&gt;
&lt;p&gt;I just wanted to let you know that if you start changing your address on the nRF, which by default uses a random static address, then this will be considered a new unbonded device (to all previously bonded devices). The reason I pointed this out was that you wrote:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I suppose that bond must be ko if a central or peripheral random static adress changes.[/quote]
&lt;p&gt;&amp;nbsp;What do you mean by this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing on demand &amp; Automatic bonding</title><link>https://devzone.nordicsemi.com/thread/302194?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 15:21:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eca94913-2762-4535-b71f-91a405315845</guid><dc:creator>Sebastien DRI</dc:creator><description>&lt;p&gt;Thank you very much for your fast answer.&lt;/p&gt;
&lt;p&gt;Could you please clarify the last point ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;IRK adress is only existing for private static resolvable adress, not static, right? Do you suggest to use private resolvable adressing?&lt;/p&gt;
&lt;p&gt;So if I am changing a random static key after bonding, does it suppress automatically the bond, meaning I must perform a renew the pairing?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you again Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing on demand &amp; Automatic bonding</title><link>https://devzone.nordicsemi.com/thread/302179?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 14:54:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24c2d7ea-b974-4bc2-a941-edb71857d612</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You can initiate this on a hardware event. Usually, it is initiated by the connection event, but you can do it in any event. I believe the ble_app_hrs_c example initiates bonding, so you can look at that example for reference.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Could you please me orientate toward sample code within SdK who do the job?[/quote]
&lt;p&gt;&amp;nbsp;You can check out the ble_app_gls, which has the passkey implementation.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]peripheral random static adress changes. Consequenly, I plan to keep both bond information in the whitelist &amp;amp; original random static keys in flash and reload them at start-up[/quote]
&lt;p&gt;&amp;nbsp;yes and no. If a device with a random static key changes the address, it will be seen as an unknown device. If a device has a resolvable address, it can change the address, because the IRK (Identity Resolution Key) can resolve the address, meaning it can check whether the address that is currently being used is one of the addresses in the whitelist &amp;quot;in disguise&amp;quot;.&amp;nbsp;&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>