<?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>Re-bonding with Android HID</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84021/re-bonding-with-android-hid</link><description>Hello. 
 nRF52832 
 nRF5_SDK_17.1.0_ddde560 
 target ble_app_hids_keyboard 
 
 1. I made bonding between nRF52 and Android. and connected. 
 2. I remove bonding in nRF52. 
 3. Reboot nRF52 
 4. Android connect to nRF52 but failed to connect 
 5. If Android</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Jan 2022 00:38:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84021/re-bonding-with-android-hid" /><item><title>RE: Re-bonding with Android HID</title><link>https://devzone.nordicsemi.com/thread/349655?ContentTypeID=1</link><pubDate>Wed, 26 Jan 2022 00:38:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6b1db86-689f-426f-a598-61d52dcc6a10</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;It worked !!&lt;/p&gt;
&lt;p&gt;Thanks a lot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Re-bonding with Android HID</title><link>https://devzone.nordicsemi.com/thread/349602?ContentTypeID=1</link><pubDate>Tue, 25 Jan 2022 15:13:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adccc1e0-0dcc-4028-97bc-920df2aa838c</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;From the error code I can find:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define PM_CONN_SEC_ERROR_PIN_OR_KEY_MISSING (PM_CONN_SEC_ERROR_BASE + 0x06) /**&amp;lt; @brief Encryption failed because the peripheral has lost the LTK for this bond. See also @ref BLE_HCI_STATUS_CODE_PIN_OR_KEY_MISSING and Table 3.7 (&amp;quot;Pairing Failed Reason Codes&amp;quot;) in the Bluetooth Core Specification 4.2, section 3.H.3.5.5 (@linkBLEcore). */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;suspect you are calling&amp;nbsp;pm_handler_disconnect_on_sec_failure() in&amp;nbsp;pm_evt_handler(), this will automatically disconnect on failure. I suggest to comment out that &lt;span&gt;pm_handler_disconnect_on_sec_failure().&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Re-bonding with Android HID</title><link>https://devzone.nordicsemi.com/thread/349411?ContentTypeID=1</link><pubDate>Tue, 25 Jan 2022 06:03:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d305218-b62d-4da0-a1d6-21fcea6a9b48</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;PM_EVT_CONN_SEC_CONFIG_REQ is 5.&lt;/p&gt;
&lt;p&gt;Android try to connect but no pm 5 was found.&lt;/p&gt;
&lt;p&gt;static void pm_evt_handler(pm_evt_t const * p_evt)&lt;br /&gt;{&lt;br /&gt;...&lt;br /&gt; NRF_LOG_INFO(&amp;quot;pm %x&amp;quot;, p_evt-&amp;gt;evt_id);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app_timer: RTC: initialized.&lt;br /&gt;&amp;lt;info&amp;gt; app: HID Keyboard example started.&lt;br /&gt;&amp;lt;info&amp;gt; app: m_whitelist_peer_cnt 1, MAX_PEERS_WLIST 8&lt;br /&gt;&amp;lt;info&amp;gt; app: Fast advertising.&lt;br /&gt;&amp;lt;info&amp;gt; app: pm 1&lt;br /&gt;&amp;lt;info&amp;gt; app: Connected&lt;br /&gt;&amp;lt;info&amp;gt; app: pm 2&lt;br /&gt;&amp;lt;info&amp;gt; peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Encryption, error: 4102&lt;br /&gt;&amp;lt;warning&amp;gt; peer_manager_handler: Disconnecting conn_handle 0.&lt;br /&gt;&amp;lt;info&amp;gt; app: pm 4&lt;br /&gt;&amp;lt;info&amp;gt; app: Fast advertising.&lt;br /&gt;&amp;lt;info&amp;gt; app: Disconnected&lt;br /&gt;&amp;lt;info&amp;gt; app: pm 1&lt;br /&gt;&amp;lt;info&amp;gt; app: Connected&lt;br /&gt;&amp;lt;info&amp;gt; app: pm 2&lt;br /&gt;&amp;lt;info&amp;gt; peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Encryption, error: 4102&lt;br /&gt;...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Re-bonding with Android HID</title><link>https://devzone.nordicsemi.com/thread/349410?ContentTypeID=1</link><pubDate>Tue, 25 Jan 2022 05:52:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dba861ca-a60a-4698-813d-1af7f1dd6917</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;Thanks for your update.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I already test it but It was not effective at all.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Re-bonding with Android HID</title><link>https://devzone.nordicsemi.com/thread/349409?ContentTypeID=1</link><pubDate>Tue, 25 Jan 2022 05:49:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:652eda7f-a99a-4cfd-9d2c-e26041f6b606</guid><dc:creator>Eugene Yu</dc:creator><description>&lt;p&gt;Hello Tim,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You need to configure the Peer manager to allow the repairing.&lt;/p&gt;
&lt;p&gt;Please refer to the below ticket.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/51274/bonding-doesn-t-work-after-deleting-bond-info-on-nrf-connect/205461#205461"&gt;(+) bonding doesn&amp;#39;t work after deleting bond info on NRF Connect - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>