<?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>Issue in pairing in ble_app_hids_keyboard example code</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38346/issue-in-pairing-in-ble_app_hids_keyboard-example-code</link><description>I am working on ble_app_hids_keyboard example code. I downloaded the bin file in my eval kit and tried to connect the Nordic_keyboard device with my android device. Then, i forget the device while the eval kit is powered ON then after that now the device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Sep 2018 08:20:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38346/issue-in-pairing-in-ble_app_hids_keyboard-example-code" /><item><title>RE: Issue in pairing in ble_app_hids_keyboard example code</title><link>https://devzone.nordicsemi.com/thread/148740?ContentTypeID=1</link><pubDate>Fri, 14 Sep 2018 08:20:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd6f5abd-bf6a-412c-a167-36c8390b54d3</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;You where not able to connect? Did it work to press button 2 during reset ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue in pairing in ble_app_hids_keyboard example code</title><link>https://devzone.nordicsemi.com/thread/148412?ContentTypeID=1</link><pubDate>Wed, 12 Sep 2018 12:42:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:541cb205-b988-4c6b-a726-ad1c79400e43</guid><dc:creator>Vivek</dc:creator><description>&lt;p&gt;Same issue still persists even after adding the above code in pm_evt_handler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue in pairing in ble_app_hids_keyboard example code</title><link>https://devzone.nordicsemi.com/thread/148219?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 13:40:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:798f2234-c51d-4c6f-8b87-8e2f661b5d15</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Try adding the event for&amp;nbsp;&lt;span&gt;PM_EVT_CONN_SEC_CONFIG_REQ in your&amp;nbsp;pm_evt_handler(), and add the code I posted.&lt;/span&gt;&lt;/p&gt;
[quote userid="73728" url="~/f/nordic-q-a/38346/issue-in-pairing-in-ble_app_hids_keyboard-example-code/148139"]And when i have already unpaired the device then why it is not able to pair again[/quote]
&lt;p&gt;&lt;span&gt;As mentioned, the default behavior is to reject pairing request from an already bonded peer. From the nRF side, the phone is still bonded, but the phone don&amp;#39;t have the bond data anymore.&lt;/span&gt;&lt;/p&gt;
[quote userid="73728" url="~/f/nordic-q-a/38346/issue-in-pairing-in-ble_app_hids_keyboard-example-code/148139"]What happens after erase all command.[/quote]
&lt;p&gt;&lt;span&gt;If you erase the flash, the bond information about the phone stored on the nRF is also deleted. Note that if you reset the device while pressing Button 2, the bond information is also deleted.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue in pairing in ble_app_hids_keyboard example code</title><link>https://devzone.nordicsemi.com/thread/148139?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 08:00:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75146760-bc53-46fc-840d-5339a3db7f57</guid><dc:creator>Vivek</dc:creator><description>&lt;p&gt;Yes i am using SDK version 15 and there is no event of&amp;nbsp;PM_EVT_CONN_SEC_CONFIG_REQ type defined in&amp;nbsp;&lt;span&gt;pm_evt_handler(). And when i have already unpaired the device then why it is not able to pair again. What happens after erase all command.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue in pairing in ble_app_hids_keyboard example code</title><link>https://devzone.nordicsemi.com/thread/148076?ContentTypeID=1</link><pubDate>Mon, 10 Sep 2018 15:08:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a01663fc-7641-4a59-94bd-ded0ec370705</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I assume that you are using SDK version 15.0. The default behavior is to reject pairing request from an already bonded peer. You can change this by setting .allow_repairing to true. You need to do this in&amp;nbsp;pm_evt_handler() for the event&amp;nbsp;PM_EVT_CONN_SEC_CONFIG_REQ.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;        case PM_EVT_CONN_SEC_CONFIG_REQ:
        {
            //  pairing request from an already bonded peer.
            pm_conn_sec_config_t conn_sec_config = {.allow_repairing = true}; //Now changed from false to true.
            pm_conn_sec_config_reply(p_evt-&amp;gt;conn_handle, &amp;amp;conn_sec_config);
        } break;&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></channel></rss>