<?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>nrf51822 bonding with &amp;quot;CSR demo PC software&amp;quot;  failed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58479/nrf51822-bonding-with-csr-demo-pc-software-failed</link><description>Hi everyone: 
 I was testing the bonding with passkey entry, but it seems failed. 
 The slave 51822 EVK board is set with &amp;quot;BLE_GAP_IO_CAPS_DISPLAY_ONLY&amp;quot; and &amp;quot;MITM = 1&amp;quot;. 
 When paring, the master device did not show any dialog for passkey entry, but the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Apr 2020 01:39:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58479/nrf51822-bonding-with-csr-demo-pc-software-failed" /><item><title>RE: nrf51822 bonding with "CSR demo PC software"  failed</title><link>https://devzone.nordicsemi.com/thread/244149?ContentTypeID=1</link><pubDate>Thu, 09 Apr 2020 01:39:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b64c2f0d-8df1-47b3-8f9f-e8ebe79062aa</guid><dc:creator>Yong.Xie</dc:creator><description>&lt;p&gt;Hi Einar：&lt;/p&gt;
&lt;p&gt;I patched the problem. The reason of bonding failed is that the CRS tool dose not support passkey entry.&lt;/p&gt;
&lt;p&gt;The patch is handle the BLE_GAP_EVT_SEC_PARAMS_REQUEST event. Source code is below.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;if(ble_cfg &amp;amp; BLE_CFG_MTD_PSK)
{
    if(p_ble_evt-&amp;gt;evt.gap_evt.params.sec_params_request.peer_params.io_caps == BLE_GAP_IO_CAPS_KEYBOARD_ONLY ||\
       p_ble_evt-&amp;gt;evt.gap_evt.params.sec_params_request.peer_params.io_caps == BLE_GAP_IO_CAPS_KEYBOARD_DISPLAY)
    {
        err_code = sd_ble_gap_sec_params_reply(p_ble_evt-&amp;gt;evt.gap_evt.conn_handle,
                                       BLE_GAP_SEC_STATUS_SUCCESS,
                                       &amp;amp;m_application_table[0].sec_param, 
                                       &amp;amp;keys_exchanged);
    }
    else
    {
        err_code = sd_ble_gap_sec_params_reply(p_ble_evt-&amp;gt;evt.gap_evt.conn_handle,
                                       BLE_GAP_SEC_STATUS_INVALID_PARAMS,
                                       &amp;amp;m_application_table[0].sec_param, 
                                       &amp;amp;keys_exchanged);
    }
    
}
else
{
    err_code = sd_ble_gap_sec_params_reply(p_ble_evt-&amp;gt;evt.gap_evt.conn_handle,
                                       BLE_GAP_SEC_STATUS_SUCCESS,
                                       &amp;amp;m_application_table[0].sec_param, 
                                       &amp;amp;keys_exchanged);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 bonding with "CSR demo PC software"  failed</title><link>https://devzone.nordicsemi.com/thread/237143?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2020 13:31:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19616769-c580-47e5-9488-e52f91fd55f3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]The slave 51822 EVK board is set with &amp;quot;BLE_GAP_IO_CAPS_DISPLAY_ONLY&amp;quot; and &amp;quot;MITM = 1&amp;quot;.[/quote]
&lt;p&gt;This look sensible, but I cannot say for sure without knowing more about your code. Are you using an SDK example? Which example from which SDK version? Which other modifications have you done?&lt;/p&gt;
[quote user=""]Is there any thing wrong? Or if the&amp;nbsp;&amp;quot;CSR demo PC software&amp;quot; is not support passkey , what will be happen?[/quote]
&lt;p&gt;I have no knowledge of this tool. Can you test with nRF Connect for Dekstop (if you have another nRF5 device), or alternatively nRF Connect for iOS or Android instead?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>