<?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>SDK config Pairing options explanation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85302/sdk-config-pairing-options-explanation</link><description>Hi everyone, I would like a bit more insight and recommendations around the following list of SDK_CONFIG options. The description is not clear enough and I don&amp;#39;t understand if the following settings might cause issues when pairing. 
 
 #ifndef BLE_NFC_SEC_PARAM_BOND</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Mar 2022 13:17:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85302/sdk-config-pairing-options-explanation" /><item><title>RE: SDK config Pairing options explanation</title><link>https://devzone.nordicsemi.com/thread/355831?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2022 13:17:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9d01722-cf95-4730-99d1-ce7066214b4c</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;For new development I strongly recommend to check out nRF Connect SDK instead:&lt;br /&gt;Development:&amp;nbsp;&lt;a href="https://webinars.nordicsemi.com/introducing-nrf-connect-for-vs-code-5"&gt;https://webinars.nordicsemi.com/introducing-nrf-connect-for-vs-code-5&lt;/a&gt;&amp;nbsp;&lt;br /&gt;(Installation video:&amp;nbsp;&lt;a href="https://www.youtube.com/playlist?list=PLx_tBuQ_KSqEt7NK-H7Lu78lT2OijwIMl"&gt;https://www.youtube.com/playlist?list=PLx_tBuQ_KSqEt7NK-H7Lu78lT2OijwIMl&lt;/a&gt;)&lt;br /&gt;BLE video:&amp;nbsp;&lt;a href="https://webinars.nordicsemi.com/developing-bluetooth-low-energy-6"&gt;https://webinars.nordicsemi.com/developing-bluetooth-low-energy-6&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;If you are familiar with the nRF5 SDK and BLE, you may find this useful:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/building-a-ble-application-on-ncs-comparing-and-contrasting-to-softdevice-based-ble-applications"&gt;https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/building-a-ble-application-on-ncs-comparing-and-contrasting-to-softdevice-based-ble-applications&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But to answer your error codes:&lt;/p&gt;
&lt;p&gt;4352 is in hex 0x1100, so likely from peer_manager_types.h:&lt;br /&gt;#define PM_CONN_SEC_ERROR_DISCONNECT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (PM_CONN_SEC_ERROR_BASE + 0x100) /**&amp;lt; @brief Pairing or encryption did not finish before the link disconnected for an unrelated reason. */&lt;/p&gt;
&lt;p&gt;4102 is in hex 0x1006, so likely&amp;nbsp;from&amp;nbsp;peer_manager_types.h:&lt;br /&gt;#define PM_CONN_SEC_ERROR_PIN_OR_KEY_MISSING (PM_CONN_SEC_ERROR_BASE + 0x06) &amp;nbsp;/**&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). &amp;nbsp;*/&lt;/p&gt;
&lt;p&gt;Not sure which example you are looking at, but you may find the hid keyboard or mouse example&amp;nbsp;reference for bonding support if you want to continue with the nRF5 SDK. Also check out documentation for peer manager if you haven&amp;#39;t:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_pm_usage.html"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_pm_usage.html&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>