<?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>Connecting a device with a bonding key and a device without a bonding key</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53753/connecting-a-device-with-a-bonding-key-and-a-device-without-a-bonding-key</link><description>SDK: 15.3.0 Example: ble_app_multirole_lesc DeviceA: EYSHJNZWZ (nRF52832) DeviceB: Smartphone (iPhone) 
 DeviceA has a bonding key. DeviceB does not have a bonding key. When DeviceA and DeviceB try to connect, a security error occurs. At that time, DeviceA</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 31 Oct 2019 11:58:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53753/connecting-a-device-with-a-bonding-key-and-a-device-without-a-bonding-key" /><item><title>RE: Connecting a device with a bonding key and a device without a bonding key</title><link>https://devzone.nordicsemi.com/thread/217743?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2019 11:58:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:040fbb0c-8577-46d3-a637-5814393a3cef</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you follow the instructions in the&amp;nbsp;&lt;a title="Experimental: LE Secure Connections Multirole Example" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/ble_sdk_app_multirole_lesc.html?cp=5_5_0_4_2_1_3"&gt;LE Secure Connections Multirole Example&lt;/a&gt;&amp;nbsp;page to test nRF connect,&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Verify that the passkey in nRF Connect and the passkey logged on UART are identical.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;You would get the detail from the nRF Connect UART log.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting a device with a bonding key and a device without a bonding key</title><link>https://devzone.nordicsemi.com/thread/217635?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2019 23:24:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d37579d2-b212-4d97-a16a-c257ae1b7649</guid><dc:creator>takashina hiroki</dc:creator><description>&lt;p&gt;I understand the cause of this anomaly and how to deal with it.&lt;/p&gt;
&lt;p&gt;The problem now is that DeviceB cannot detect security anomalies.&lt;br /&gt;I want to know the cause and countermeasures.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting a device with a bonding key and a device without a bonding key</title><link>https://devzone.nordicsemi.com/thread/217535?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2019 12:56:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc973d84-f0b3-4f8d-b133-bc304ca5ee63</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Disconnect reason 0x16 means&amp;nbsp;&lt;a title="BLE_HCI_LOCAL_HOST_TERMINATED_CONNECTION" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s340.api.v6.1.1/group___b_l_e___h_c_i___s_t_a_t_u_s___c_o_d_e_s.html?cp=3_5_7_0_2_1_0_9#ga0b7bcbe31925c6d2c305ba4f0ff9889b"&gt;BLE_HCI_LOCAL_HOST_TERMINATED_CONNECTION&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Error 4102 is the same as&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Fgroup___p_m___s_e_c___e_r_r_o_r_s.html&amp;amp;cp=5_1_6_2_15_3_2&amp;amp;anchor=ga3475d3ceef0d21e6f940f5a6fb4c2832"&gt;PM_CONN_SEC_ERROR_PIN_OR_KEY_MISSING&lt;/a&gt;&lt;span&gt;. It means that encryption failed because the peripheral has lost the LTK for this bond. As indicated in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/38262/ble_app_template-connection-ecryption-error-in-sdk-15-1/148153#148153"&gt;this post&lt;/a&gt;, try to remove the bond on both sides of the link, and bond again.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting a device with a bonding key and a device without a bonding key</title><link>https://devzone.nordicsemi.com/thread/217412?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2019 23:52:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:941e75c9-2c94-43db-ad56-385929220be7</guid><dc:creator>takashina hiroki</dc:creator><description>&lt;p&gt;The DeviceA log is shown below.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: [r_ble_event] BLE_GAP_EVT_CONNECTED
&amp;lt;info&amp;gt; app: [r_bp_on_evt_connected] Peripheral connection
&amp;lt;info&amp;gt; app: [r_bs_pm_evt_handler] PM_EVT_CONN_SEC_PARAMS_REQ : bond=0, mitm=0, lesc=0, keypress=0, io_caps=0x0
&amp;lt;info&amp;gt; app: [r_bs_pm_evt_handler] PM_EVT_CONN_SEC_PARAMS_REQ : oob=0, min_key_size=0x4, max_key_size=0x0, kdist_own=0x20, kdist_peer=0x81
&amp;lt;info&amp;gt; app: [e_gatt_evt_handler] gatt event
&amp;lt;info&amp;gt; app: [r_gatt_event] NRF_BLE_GATT_EVT_ATT_MTU_UPDATED
&amp;lt;info&amp;gt; app: [r_gatt_event] 	central : 30, peripheral : 30
&amp;lt;info&amp;gt; app: [r_ble_event] BLE_GATTC_EVT_EXCHANGE_MTU_RSP
&amp;lt;info&amp;gt; app: [r_ble_on_evt_gattc_exchange_mtu_rsp] server_rx_mtu : 30
&amp;lt;info&amp;gt; app: [e_gatt_evt_handler] gatt event
&amp;lt;info&amp;gt; app: [r_gatt_event] NRF_BLE_GATT_EVT_DATA_LENGTH_UPDATED
&amp;lt;info&amp;gt; app: [r_gatt_event] 	conn_handle : 0x2, data_length : 34
&amp;lt;info&amp;gt; app: [r_ble_event] BLE_GAP_OPT_AUTH_PAYLOAD_TIMEOUT
&amp;lt;info&amp;gt; app: [r_ble_event] BLE_GAP_EVT_PHY_UPDATE_REQUEST
&amp;lt;info&amp;gt; app: [r_ble_on_evt_phy_update_req] tx_phys=3, rx_phys=3
&amp;lt;info&amp;gt; app: [r_ble_on_evt_phy_update_req] phy update start
&amp;lt;info&amp;gt; app: [r_ble_event] BLE_GAP_EVT_PHY_UPDATE
&amp;lt;info&amp;gt; app: [r_ble_on_evt_phy_update] status=0x0, tx_phy=2, rx_phy=2
&amp;lt;info&amp;gt; app: [r_bs_pm_evt_handler_device] PM_EVT_CONN_SEC_START : procedure=0x0
&amp;lt;info&amp;gt; peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x2, procedure: Encryption, error: 4102
&amp;lt;warning&amp;gt; peer_manager_handler: Disconnecting conn_handle 2.
&amp;lt;info&amp;gt; app: [r_bs_pm_evt_handler_device] PM_EVT_CONN_SEC_FAILED : error_src=0x0, error=0x1006, procedure=0x0
&amp;lt;info&amp;gt; app: [r_ble_event] BLE_GAP_EVT_SEC_INFO_REQUEST
&amp;lt;info&amp;gt; app: [r_bs_on_evt_sec_info_req] enc_info=1, id_info=0, sign_info=0
&amp;lt;info&amp;gt; app: [r_ble_event] BLE_GAP_EVT_PASSKEY_DISPLAY
&amp;lt;info&amp;gt; app: [r_bs_on_evt_passkey_display_main] passkey=&#x4;&amp;#176;/Opu match_req=1
&amp;lt;info&amp;gt; app: [r_bs_on_evt_passkey_display_main] Passkey display request
&amp;lt;info&amp;gt; app: [e_bp_adv_handler] BLE_ADV_EVT_FAST
&amp;lt;info&amp;gt; app: [r_ble_event] BLE_GAP_EVT_DISCONNECTED
&amp;lt;info&amp;gt; app: [r_bp_on_evt_disconnected_main] p_disconnected-&amp;gt;reason : 0x16&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting a device with a bonding key and a device without a bonding key</title><link>https://devzone.nordicsemi.com/thread/217309?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2019 12:00:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fecbc31b-cdae-4ab3-9f71-cd5a56ab89a0</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]When DeviceA and DeviceB try to connect, a security error occurs.[/quote]
&lt;p&gt;Could you provide the log or the error message?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>