<?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>Can&amp;#39;t get Just Works bonding between nRF5 SDK and nRF Connect SDK to work</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84682/can-t-get-just-works-bonding-between-nrf5-sdk-and-nrf-connect-sdk-to-work</link><description>Central nRF5 device connects to peripheral NCS and initiates bonding. 
 The peripheral reports that security failed with error code 4 (BT_SECURITY_ERR_AUTH_REQUIREMENT) &amp;quot;The requested security level could not be reached&amp;quot;. 
 Central nRF5 has these Peer</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Mar 2022 11:44:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84682/can-t-get-just-works-bonding-between-nrf5-sdk-and-nrf-connect-sdk-to-work" /><item><title>RE: Can't get Just Works bonding between nRF5 SDK and nRF Connect SDK to work</title><link>https://devzone.nordicsemi.com/thread/357382?ContentTypeID=1</link><pubDate>Thu, 10 Mar 2022 11:44:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:662743bb-ec6c-4fc7-a3b6-36de490f4146</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I assume you haven&amp;#39;t set the two devices to&amp;nbsp;bond using the same security levels. What kind of pairing are you looking to do? LESC Just Works, or something more secure? Implementing LESC has already been discussed in detail in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/77391/allow-lesc-just-works-pairing-bonding-with-nrf-connect-sdk-zephyr-after-pressing-button/336031#336031"&gt;this case&lt;/a&gt;, where they are eventually able to enable LESC paring for the peripheral_uart example project. Please give it a read and see if you missed any crucial steps.&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: Can't get Just Works bonding between nRF5 SDK and nRF Connect SDK to work</title><link>https://devzone.nordicsemi.com/thread/357193?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2022 13:56:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3869e2c4-295e-4c88-9092-af7337731687</guid><dc:creator>tyana</dc:creator><description>&lt;p&gt;Hello! Sorry it took this long to reply.&lt;/p&gt;
&lt;p&gt;For the sake of experiment&amp;nbsp;I&amp;nbsp;took a proper clean peripheral_uart example from NCS 1.8.0 and&amp;nbsp;also added bonding to ble_app_uart_c example from nRF5 SDK 15.3.0 basically by copying parts of ble_app_hrs_c into it.&lt;/p&gt;
&lt;p&gt;A simple&amp;nbsp;bonding between these works, but LESC doesn&amp;#39;t: with sec_param.lesc set to 1 in peer_manager_init in&amp;nbsp;&lt;span&gt;ble_app_uart_c&amp;nbsp;&lt;/span&gt;and the respective &lt;span&gt;conn_auth_callbacks set to NULL in peripheral_uart, the &amp;quot;security failed&amp;quot; with UNSPECIFIED error code at the peripheral device persist; judging by &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s140.api.v7.2.0%2Fgroup___b_l_e___g_a_p___c_e_n_t_r_a_l___b_o_n_d_i_n_g___j_w___m_s_c.html"&gt;this diagram&lt;/a&gt;&amp;nbsp;of LESC bonding, it fails at LESC authentication stage 1 just after DHKEY request&amp;nbsp;is handled by the central, since no requests come after that.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;nbsp;want to get LESC to work but can&amp;#39;t imagine what else is required for it to work.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m attaching the modified&amp;nbsp;ble_app_uart_c&amp;nbsp;project/source if you would like to reproduce this behavior.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_uart_5F00_c_5F00_with_5F00_lesc_5F00_bonding.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_uart_5F00_c_5F00_with_5F00_lesc_5F00_bonding.zip&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get Just Works bonding between nRF5 SDK and nRF Connect SDK to work</title><link>https://devzone.nordicsemi.com/thread/353541?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2022 09:49:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59d67985-475d-49ff-8fd3-c8ee4bdd65b0</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Have you enabled the CONFIG_BT_NUS_SECURITY_ENABLED config in the peripheral_uart function? Unfortunately the UNSPECIFIED error could be a lot of things, as it points to that pairing failed, but that the reason could not be specified. For the AUTH_REQUIREMENT error, that points to the requested security level not being reached, which means the central and peripheral is likely not requesting the same security levels.&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: Can't get Just Works bonding between nRF5 SDK and nRF Connect SDK to work</title><link>https://devzone.nordicsemi.com/thread/353330?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 11:48:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3a71ab2-329d-4586-9e3e-ca19802dac1a</guid><dc:creator>tyana</dc:creator><description>&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;&lt;span&gt;conn_auth_callbacks&amp;nbsp;that should be set as NULL are all set as NULL at peripheral.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I can&amp;#39;t say for sure my nRF5 SDK project is based on any example, but when I was adding peer manager to the project I used HRS Central example as a reference. So I just&amp;nbsp;copied&amp;nbsp;peer manager init (but with security settings as in my post above)&amp;nbsp; and pm_evt_handler from that and added a&amp;nbsp;pm_conn_secure call to the discovery complete event in my service event handler.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;With that, I got&amp;nbsp;BT_SECURITY_ERR_AUTH_REQUIREMENT error on the peripheral.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;ve figured out the NRF_ERROR_INVALID_ADDR&amp;nbsp;that appeared when I tried to have LESC, I didn&amp;#39;t have it enabled in peer manager (didn&amp;#39;t set PM_LESC_ENABLED). This is no longer as issue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Now when I set&amp;nbsp;sec_param.lesc to true on the central, I get&amp;nbsp;BT_SECURITY_ERR_UNSPECIFIED error on the peripheral instead.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get Just Works bonding between nRF5 SDK and nRF Connect SDK to work</title><link>https://devzone.nordicsemi.com/thread/352804?ContentTypeID=1</link><pubDate>Mon, 14 Feb 2022 07:37:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98279b10-e4f6-4f4d-a925-6c6700322988</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;sd_ble_gap_sec_params_reply returning an NRF_ERROR_INVALID_ADDR means that an invalid pointer has been supplied. Have you seen the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.2.0/group___b_l_e___g_a_p___c_e_n_t_r_a_l___b_o_n_d_i_n_g___j_w___m_s_c.html"&gt;message sequence chart for &amp;quot;just works Bonding&amp;quot;&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;How does the peripheral side&amp;#39;s conn_auth_callbacks look? Have you made sure to set passkey_display, passkey_confirm, and pairing_confim to NULL in your conn_auth_callbacks? What central example application is your nRF5 SDK central project based on exactly?&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></channel></rss>