<?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 &amp;amp; Bonding issue with concurrent peripheral + central app</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78295/pairing-bonding-issue-with-concurrent-peripheral-central-app</link><description>Hi 
 I am developing a concurrent central + peripheral application, in which central application connects to other external peripheral side, which uses static passkey ,pairing ,bonding and its working fine . The security parameters for peripheral and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Aug 2021 13:24:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78295/pairing-bonding-issue-with-concurrent-peripheral-central-app" /><item><title>RE: Pairing &amp; Bonding issue with concurrent peripheral + central app</title><link>https://devzone.nordicsemi.com/thread/324677?ContentTypeID=1</link><pubDate>Thu, 12 Aug 2021 13:24:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:562dcc60-932f-41fb-b621-9f83fcadafc7</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Seems&amp;nbsp;&lt;span&gt;BLE_GAP_IO_CAPS_KEYBOARD_ONLY or BLE_GAP_IO_CAPS_KEYBOARD_DISPLAY can get the BLE_GAP_EVT_AUTH_KEY_REQUEST event. See this&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;a title="Bonding: Passkey Entry with static passkey" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.2.0/group___b_l_e___g_a_p___p_e_r_i_p_h___b_o_n_d_i_n_g___s_t_a_t_i_c___p_k___m_s_c.html?cp=4_7_3_2_2_1_5_10_7_1"&gt;Passkey Entry with static passkey&lt;/a&gt;&amp;nbsp;MSC.&amp;nbsp;&lt;/span&gt;&lt;span&gt;Then static passkey cannot use the same security parameter for&amp;nbsp;SEC_PARAMS_IO_CAPABILITIES on multirole. If you want to use the same&amp;nbsp;security parameters on&amp;nbsp;multirole, you could take a look at this&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_multirole_lesc.html"&gt;LE Secure Connections Multirole Example&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing &amp; Bonding issue with concurrent peripheral + central app</title><link>https://devzone.nordicsemi.com/thread/324500?ContentTypeID=1</link><pubDate>Wed, 11 Aug 2021 13:21:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83c598c5-1560-4a7d-8f6b-0caa74069283</guid><dc:creator>vineeth17</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for the response.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When&amp;nbsp;I tried the &amp;quot;&amp;nbsp;#define SEC_PARAMS_IO_CAPABILITIES&amp;nbsp; &amp;nbsp;BLE_GAP_IO_CAPS_DISPLAY_YESNO&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;the pairing between the Device A and Device C works, but the pairing between the Device A and Device B failed, because&amp;nbsp;I didn&amp;#39;t&amp;nbsp;get the&amp;nbsp;BLE_GAP_EVT_AUTH_KEY_REQUEST in Device A.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing &amp; Bonding issue with concurrent peripheral + central app</title><link>https://devzone.nordicsemi.com/thread/324414?ContentTypeID=1</link><pubDate>Wed, 11 Aug 2021 09:35:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e322236-9daa-4515-992e-b6247acdcd4b</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Try to set&amp;nbsp;BLE_GAP_IO_CAPS_DISPLAY_YESNO for&amp;nbsp;&lt;span&gt;For the&amp;nbsp;Device A.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define SEC_PARAMS_IO_CAPABILITIES   BLE_GAP_IO_CAPS_DISPLAY_YESNO&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing &amp; Bonding issue with concurrent peripheral + central app</title><link>https://devzone.nordicsemi.com/thread/324322?ContentTypeID=1</link><pubDate>Tue, 10 Aug 2021 17:42:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4846a92-ef56-4ed0-8cfd-ba4e1a6ee6ac</guid><dc:creator>vineeth17</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for the response.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We have 3 devices&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1) Simultaneous Central + Peripheral&amp;nbsp; side&amp;nbsp;&amp;nbsp;name it&amp;nbsp; as &amp;quot;Device A&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2)External Peripheral side&amp;nbsp;name it as&amp;nbsp; &amp;quot;Device B&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3)External Central Side&amp;nbsp;name it&amp;nbsp; as &amp;quot;Device C&amp;quot;(like NRF connect APP)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Yes, When&lt;span&gt;&amp;nbsp;I tried the&amp;nbsp;pairing and static passkey implementation with Device A and Device C .It just displays the&amp;nbsp; pass key, I can&amp;#39;t enter the passkey.(&amp;nbsp;parameters attached&amp;nbsp;below)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;But for the static passkey implementation with Device A and Device B,&amp;nbsp;I Used&amp;nbsp;the below parameters&amp;nbsp; and its working fine&lt;/strong&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So how to achieve&amp;nbsp;the&amp;nbsp;bonding , pairing and static passkey implementation with the Device A and Device C&amp;nbsp;using&amp;nbsp;&amp;nbsp;the same parameters (Attached below) ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For the&amp;nbsp;Device A&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define SEC_PARAM_BOND                  1                                           /**&amp;lt; Perform bonding. */
#define SEC_PARAM_MITM                  1                                           /**&amp;lt; Man In The Middle protection not required. */
#define SEC_PARAM_LESC                  0                                           /**&amp;lt; LE Secure Connections not enabled. */
#define SEC_PARAM_KEYPRESS              0                                           /**&amp;lt; Keypress notifications not enabled. */
#define SEC_PARAM_IO_CAPABILITIES       BLE_GAP_IO_CAPS_KEYBOARD_DISPLAY                       /**&amp;lt; No I/O capabilities. */
#define SEC_PARAM_OOB                   0                                           /**&amp;lt; Out Of Band data not available. */
#define SEC_PARAM_MIN_KEY_SIZE          7                                           /**&amp;lt; Minimum encryption key size in octets. */
#define SEC_PARAM_MAX_KEY_SIZE          16                                          /**&amp;lt; Maximum encryption key size in octets. */
#define SCAN_DURATION_WITELIST          0  &lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For the&amp;nbsp;Device B&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define SEC_PARAM_BOND                      1                                       /**&amp;lt; Perform bonding. */
#define SEC_PARAM_MITM                      1                                       /**&amp;lt; Man In The Middle protection not required. */
#define SEC_PARAM_LESC                      0                                       /**&amp;lt; LE Secure Connections enabled. */
#define SEC_PARAM_KEYPRESS                  0                                       /**&amp;lt; Keypress notifications not enabled. */
#define SEC_PARAM_IO_CAPABILITIES           BLE_GAP_IO_CAPS_DISPLAY_ONLY                    /**&amp;lt; No I/O capabilities. */
#define SEC_PARAM_OOB                       0                                       /**&amp;lt; Out Of Band data not available. */
#define SEC_PARAM_MIN_KEY_SIZE              7                                       /**&amp;lt; Minimum encryption key size. */
#define SEC_PARAM_MAX_KEY_SIZE              16   &lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing &amp; Bonding issue with concurrent peripheral + central app</title><link>https://devzone.nordicsemi.com/thread/324200?ContentTypeID=1</link><pubDate>Tue, 10 Aug 2021 10:58:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69308667-cae5-4b0c-bb3b-e2a9ca4da6ec</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think it should also work in the&amp;nbsp;&lt;span&gt;peripheral. Do you see any issues?&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing &amp; Bonding issue with concurrent peripheral + central app</title><link>https://devzone.nordicsemi.com/thread/324006?ContentTypeID=1</link><pubDate>Mon, 09 Aug 2021 12:36:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:078b6f82-33cf-4c8a-bc3c-5132cbaa3aae</guid><dc:creator>vineeth17</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for the response.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We have 3 devices&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1) Simultaneous Central + Peripheral Role Device&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2)External Peripheral side&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3)External Central Side&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I want to pair/bond other peers in the ( central + peripheral ) (concurrent).&lt;/p&gt;
&lt;p&gt;I have already done the bonding , pairing and static passkey implementation in the concurrent central (to another peripheral device). I would like to do the same for the concurrent peripheral as well. The parameters set for the central + peripheral and external peripheral side are already shared above.&lt;/p&gt;
&lt;p&gt;Is it possible to do the &lt;span&gt;&amp;nbsp;bonding , pairing and static passkey implementation&lt;/span&gt; in the concurrent peripheral side with external central(Like NRF connect) using the same parameters and peer manager. Please note that I have already set the parameters for the central side in peer manager. Does this limit me from doing the same in peripheral ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing &amp; Bonding issue with concurrent peripheral + central app</title><link>https://devzone.nordicsemi.com/thread/323983?ContentTypeID=1</link><pubDate>Mon, 09 Aug 2021 11:41:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a5be4f4-0798-4b75-a5fa-2fc62a269444</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The Paired devices can be bonded. This means that they store the keys that have already been exchanged when they are paired and use those again the next time they connect. it cannot only do bonding without pairing.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;See this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/11939/connecting-bonding-pairing-and-whitelists/45217#45217"&gt;post&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing &amp; Bonding issue with concurrent peripheral + central app</title><link>https://devzone.nordicsemi.com/thread/323839?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 16:37:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5aafc6b-8072-493f-9b11-46f56f7dbfc9</guid><dc:creator>vineeth17</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for the response.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Is there any other way to achieve this?&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;want to do the bonding and pairing in concurrent central side with external peripheral(Already done using peer manager) and bonding only with the concurrent peripheral side with external central(like NRF connect ).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pairing &amp; Bonding issue with concurrent peripheral + central app</title><link>https://devzone.nordicsemi.com/thread/323811?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 15:03:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c875275-e844-428e-865c-cd4bed561744</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]I would like to know Is it possible to achieve the bonding without pairing here using the same parameters which I have been used already for the other side using peer manager?.[/quote]
&lt;p&gt;The peer manager (PM) doesn&amp;#39;t support that because PM initiates pairing first, encrypts the link, then bonds (could be optional).&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>