<?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>LESEC without bonding</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98175/lesec-without-bonding</link><description>Hi 
 I&amp;#39;m using 
 
 s140 
 SDK 17.1.0 
 Nrf52840 
 Role: peripheral 
 
 I&amp;#39;ve managed to configure the software in order to achieve a 
 
 just-works pairing 
 lesec 
 &amp;quot;automatic&amp;quot; bonding, by setting the security-param (pm_sec_params_set) accordingly. 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 May 2023 06:39:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98175/lesec-without-bonding" /><item><title>RE: LESEC without bonding</title><link>https://devzone.nordicsemi.com/thread/423109?ContentTypeID=1</link><pubDate>Mon, 01 May 2023 06:39:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22288c2c-833b-4ad5-83e1-0767813d7332</guid><dc:creator>M. David.</dc:creator><description>&lt;p&gt;Thank you for your response. I&amp;#39;m aware of the different pairing methods, however they are not applicable to my needs.&lt;/p&gt;
[quote userid="9456" url="~/f/nordic-q-a/98175/lesec-without-bonding/423070"]If you want to go with this option, please let me know and I can check for sure.[/quote]
&lt;p&gt;I think this would be the approach I&amp;#39;d like to choose under the circumstances.&lt;/p&gt;
[quote userid="9456" url="~/f/nordic-q-a/98175/lesec-without-bonding/423070"]This has the side effect of the rejected peer keeping an invalid bond data.[/quote]
&lt;p&gt;I fail to see what would be the difference, in regard of the remote peer, when doing a bonding and later revoke it or doing the bonding after &amp;quot;higher&amp;quot; application checks. By my understanding of the pairing and bonding process, the remote peer does not know, whether I do a bonding or not. But please, let me know if there would be any issues, for the rejected peer to retry the pairing/bonding. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LESEC without bonding</title><link>https://devzone.nordicsemi.com/thread/423070?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2023 21:02:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:817e14bb-117e-4254-b5f8-ad2939f8422b</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi M. David.,&lt;/p&gt;
&lt;p&gt;My apology for the wait. Our team has been facing high loading due to some unavailability, one of which is Susheel being on a business trip. I will support you in his absence.&lt;/p&gt;
[quote user="M. David."]when I want to use the PeerManager, it is not possible to do the bonding as an additional/optional step (triggered by the application) at a later point in time after the pairing?[/quote]
&lt;p&gt;You should be able to perform the bond at a later point. At the very least, you should be able to create your own handling of the key&amp;nbsp;and manage it from the moment the peers pair till the moment they are clear to bond. After that, the Peer Manager module actually&amp;nbsp;lets you add that data and then helps you manage it. See &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_pm_usage.html?cp=9_1_3_2_7_2_3#lib_pm_usage_data"&gt;Peer Manager &amp;gt; Usage &amp;gt; Storing Data&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I am not sure whether the Peer Manager can also support the &amp;quot;later-bonding&amp;quot; that you require; but I don&amp;#39;t have the capacity needed to look into this at the moment. My apology for this inconvenience.&lt;/p&gt;
&lt;p&gt;Please do&amp;nbsp;review the different pairing method to see if one of them already satisfies your need to authenticate the devices before bonding. If that is possible, it&amp;nbsp;should make the process simpler.&lt;/p&gt;
&lt;p&gt;The pairing methods are discussed in &lt;a href="https://academy.nordicsemi.com/lessons/lesson-5-bluetooth-le-security-fundamentals/"&gt;Lesson 5 of Nordic&amp;#39;s Bluetooth Low Energy Fundamentals&lt;/a&gt;.&lt;/p&gt;
[quote user="M. David."]&lt;p&gt;would the following approach be appropriate or is there a better way?&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Configure the security-parameter to also do the bonding&lt;/li&gt;
&lt;li&gt;if the Application (after pairing and bonding) deems the connection to be unsuitable it will disconnect and delete the bonding.&lt;/li&gt;&lt;/ol&gt;[/quote]
&lt;p&gt;This has the side effect of the rejected peer keeping an invalid bond data. It might cause some&amp;nbsp;minor inconvenience if the peer later needs to bond. &lt;em&gt;If I remember correctly&lt;/em&gt;, pairing would be impossible unless that peer&amp;#39;s application can realize the problem and delete the invalid bond data. If you want to go with this option, please let me know and I can check for sure.&lt;/p&gt;
&lt;p&gt;Please excuse our slow response in the coming days&amp;nbsp;due to the aforementioned temporary&amp;nbsp;staffing issue and a holiday.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LESEC without bonding</title><link>https://devzone.nordicsemi.com/thread/421985?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2023 09:28:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4697931-8c3b-4ec9-af0e-a2a19bb2b439</guid><dc:creator>M. David.</dc:creator><description>&lt;p&gt;Hello Susheel&lt;/p&gt;
&lt;p&gt;Thank you for your response, I&amp;#39;ve also been absent for some time, thus the late followup question.&lt;/p&gt;
&lt;p&gt;From your response I conclude that, when I want to use the PeerManager, it is not possible to do the bonding as an additional/optional step (triggered by the application) at a later point in time after the pairing?&lt;/p&gt;
&lt;p&gt;If the above question is yes and I&amp;#39;d still want to have a similar behavior then would the following approach be appropriate or is there a better way?&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Configure the security-parameter to also do the bonding&lt;/li&gt;
&lt;li&gt;if the Application (after pairing and bonding) deems the connection to be unsuitable it will disconnect and delete the bonding.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LESEC without bonding</title><link>https://devzone.nordicsemi.com/thread/419460?ContentTypeID=1</link><pubDate>Sun, 09 Apr 2023 14:05:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aff25c2b-224e-4c40-a069-6ec65f9ba15d</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user="M. David."]Which function should I use to do the bonding at a later step &amp;quot;manually&amp;quot;?[/quote]
&lt;p&gt;Thanks for your patience, David.&lt;br /&gt;The events exchanged and the API used in the bonding sequence can be seen in the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s140.api.v7.3.0%2Fgroup___b_l_e___g_a_p___p_e_r_i_p_h___l_e_s_c___m_s_c.html&amp;amp;cp=5_7_4_1_2_1_5_10_6"&gt;MSC&lt;/a&gt;(Message Sequence Charts). The application has the responsibility of storing the keys persistently if it is not using the peer manager to handle to bonding. You can use &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Flib_fds.html"&gt;FDS&lt;/a&gt;&amp;nbsp;for storing the keys. One the first bonding is performed (manually), then you can use this procedure to &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s140.api.v7.3.0%2Fgroup___b_l_e___g_a_p___p_e_r_i_p_h___l_e_s_c___m_s_c.html&amp;amp;cp=5_7_4_1_2_1_5_10_6"&gt;establish the encryption with stored keys &lt;/a&gt;next time.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="M. David."]Where do I get the required information exchanged during the paring from, to be stored as bonding information?[/quote]
&lt;p&gt;The MSC charts should give you details on this, please let me know if those charts are not clear.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LESEC without bonding</title><link>https://devzone.nordicsemi.com/thread/418735?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2023 06:05:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a957e536-a4c0-4a04-bdd9-7332df457c53</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Susheel is out of office for the Easter holiday, and will get back to you on April 11th. Thank you for your patience!&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: LESEC without bonding</title><link>https://devzone.nordicsemi.com/thread/417856?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2023 11:13:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38a30405-b1e6-4270-861d-3e8c3813369b</guid><dc:creator>M. David.</dc:creator><description>&lt;p&gt;Thank you for the link.&lt;/p&gt;
&lt;p&gt;This however only covers part of my problem, which I&amp;#39;ve already figured out. As I&amp;#39;ve mentioned I&amp;#39;d like to do the bonding later after additional checks by the application.&lt;/p&gt;
&lt;p&gt;So my question remains:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Which function should I use to do the bonding at a later step &amp;quot;manually&amp;quot;?&lt;/li&gt;
&lt;li&gt;Where do I get the required information exchanged during the paring from, to be stored as bonding information?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LESEC without bonding</title><link>https://devzone.nordicsemi.com/thread/417844?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2023 09:51:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3bab8ec-86b9-4902-8073-7b64657ef40a</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;This question has been &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/64735/lesc-mitm-without-bonding"&gt;asked before&lt;/a&gt;. It is possible to pair only using LESC without bonding, but the given link shows the way&amp;nbsp;with the peer manager library.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>