<?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>sd_ble_gap_lesc_dhkey_reply&amp;#39;s error on &amp;quot;ble_app_multirole_lesc&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48232/sd_ble_gap_lesc_dhkey_reply-s-error-on-ble_app_multirole_lesc</link><description>I have a question about the sample project &amp;quot;ble_app_multirole_lesc(SDK V14.2.0)&amp;quot;. 
 ・ &amp;quot;Central&amp;quot;: iPhone 5s (iOS V11.2.2) ・ &amp;quot;Peripheral&amp;quot;: nRF52832(SDK V14.2.0, S132 V5.0.0) 
 When connecting both, &amp;quot;BLE_GAP_EVT_LESC_DHKEY_REQUEST&amp;quot; has occurred. After that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Jun 2019 23:43:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48232/sd_ble_gap_lesc_dhkey_reply-s-error-on-ble_app_multirole_lesc" /><item><title>RE: sd_ble_gap_lesc_dhkey_reply's error on "ble_app_multirole_lesc"</title><link>https://devzone.nordicsemi.com/thread/192180?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 23:43:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:020577b4-dce0-49d0-890e-6cd114f9a877</guid><dc:creator>takashina hiroki</dc:creator><description>&lt;p&gt;I have further questions in addition to the above.&lt;/p&gt;
&lt;p&gt;The above log is a log when operating with the following device.&lt;br /&gt;・ &amp;quot;Central&amp;quot;: Google Pixel 3 (Android v9)&lt;/p&gt;
&lt;p&gt;I worked with the following device experimentally.&lt;br /&gt;・ &amp;quot;Central&amp;quot;: SH-03G (Android v7.0)&lt;br /&gt;In that case, &amp;quot;BLE_GAP_EVT_PASSKEY_DISPLAY&amp;quot; has occurred.&lt;br /&gt;It did not occur when trying with &amp;quot;Google Pixel 3&amp;quot;.&lt;br /&gt;When operating with &amp;quot;ble_app_multirole_lesc (SDK V15.3.0)&amp;quot;, &amp;quot;BLE_GAP_EVT_PASSKEY_DISPLAY&amp;quot; has occurred on both devices.&lt;br /&gt;Therefore, I think that it is correct that this event occurs.&lt;br /&gt;Why did we get this result by changing the device?&lt;br /&gt;Please tell me.&lt;br /&gt;The log at that time is shown below.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;//////////////////////////////////////////////////////&lt;br /&gt;&amp;lt;info&amp;gt; app: Initializing nrf_crypto.&lt;br /&gt;&amp;lt;info&amp;gt; app: Initialized nrf_crypto.&lt;br /&gt;&amp;lt;warning&amp;gt; nrf_sdh_ble: RAM starts at 0x20002C50, can be adjusted to 0x20002788.&lt;br /&gt;&amp;lt;warning&amp;gt; nrf_sdh_ble: RAM size can be adjusted to 0xD878.&lt;br /&gt;&amp;lt;info&amp;gt; app: Generating key-pair&lt;br /&gt;&amp;lt;info&amp;gt; app: Converting to raw type&lt;br /&gt;&amp;lt;info&amp;gt; app: Scanning&lt;br /&gt;&amp;lt;info&amp;gt; app: Advertising&lt;br /&gt;&amp;lt;info&amp;gt; app: LE Secure Connections example started.&lt;br /&gt;&amp;lt;info&amp;gt; app: PERIPHERAL: Connected, handle 0.&lt;br /&gt;&amp;lt;info&amp;gt; app: CENTRAL: BLE_GAP_EVT_SEC_PARAMS_REQUEST: bond=0x1, mitm=0x1, lesc=1, keypress=0x0, io_caps=0x4&lt;br /&gt;&amp;lt;info&amp;gt; app: CENTRAL: BLE_GAP_EVT_SEC_PARAMS_REQUEST: oob=0x0, min_key_size=0x0, max_key_size=0x10, kdist_own=0x4F, kdist_peer=0xBF&lt;br /&gt;&amp;lt;info&amp;gt; app: CENTRAL: BLE_GAP_EVT_LESC_DHKEY_REQUEST&lt;br /&gt;&amp;lt;info&amp;gt; app: Calling sd_ble_gap_lesc_dhkey_reply on conn_handle: 0&lt;br /&gt;&amp;lt;info&amp;gt; app: CENTRAL: BLE_GAP_EVT_PASSKEY_DISPLAY: passkey=174861 match_req=1&lt;br /&gt;&amp;lt;info&amp;gt; app: Press Button 1 to confirm, Button 2 to reject&lt;br /&gt;&amp;lt;info&amp;gt; app: Numeric Match. Conn handle: 0&lt;br /&gt;&amp;lt;info&amp;gt; app: CENTRAL: BLE_GAP_EVT_AUTH_STATUS: error_src=0x0&lt;br /&gt;&amp;lt;info&amp;gt; app: CENTRAL: BLE_GAP_EVT_AUTH_STATUS: status=0x8B bond=0x0 lv4: 0 kdist_own:0x0 kdist_peer:0x0&lt;br /&gt;&amp;lt;info&amp;gt; app: PERIPHERAL: Disconnected, handle 0, reason 0x28.&lt;br /&gt;//////////////////////////////////////////////////////&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_lesc_dhkey_reply's error on "ble_app_multirole_lesc"</title><link>https://devzone.nordicsemi.com/thread/191914?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 06:38:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e133c5d-0fb8-4d63-b55f-fd349e64deda</guid><dc:creator>takashina hiroki</dc:creator><description>&lt;p&gt;I confirmed the content of &amp;quot;sd_ble_gap_lesc_dhkey_reply&amp;quot;.&lt;br /&gt;I modified it to be executed in the &amp;quot;BLE_GAP_EVT_LESC_DHKEY_REQUEST&amp;quot; event.&lt;br /&gt;As a result, the error is gone.&lt;br /&gt;Indicates the content of the correction.&lt;/p&gt;
&lt;p&gt;////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;br /&gt;case BLE_GAP_EVT_LESC_DHKEY_REQUEST:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NRF_LOG_INFO (&amp;quot;% s: BLE_GAP_EVT_LESC_DHKEY_REQUEST&amp;quot;, nrf_log_push (roles_str [role]));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;on_dhkey_request (conn_handle, &amp;amp; p_ble_evt-&amp;gt; evt.gap_evt.params.lesc_dhkey_request, role);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;service_dhkey_requests ();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;break;&lt;br /&gt;&lt;span&gt;////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;But there is another problem.&lt;br /&gt;&amp;quot;Central&amp;quot; issues a request with &amp;quot;BLE_GAP_IO_CAPS_KEYBOARD_DISPLAY&amp;quot;.&lt;br /&gt;Since &amp;quot;Peripheral&amp;quot; is &amp;quot;BLE_GAP_IO_CAPS_DISPLAY_YESNO&amp;quot;, this request can not be accepted.&lt;br /&gt;After that, &amp;quot;BLE_GAP_SEC_STATUS_AUTH_REQ (Authentication requirements not met.)&amp;quot; Has occurred.&lt;br /&gt;As a result, pairing is not successful.&lt;br /&gt;Indicates the log at the time of occurrence.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/span&gt;&lt;br /&gt;&amp;lt;info&amp;gt; app: Initializing nrf_crypto.&lt;br /&gt;&amp;lt;info&amp;gt; app: Initialized nrf_crypto.&lt;br /&gt;&amp;lt;warning&amp;gt; nrf_sdh_ble: RAM starts at 0x20002C50, can be adjusted to 0x20002788.&lt;br /&gt;&amp;lt;warning&amp;gt; nrf_sdh_ble: RAM size can be adjusted to 0xD878.&lt;br /&gt;&amp;lt;info&amp;gt; app: Generating key-pair&lt;br /&gt;&amp;lt;info&amp;gt; app: Converting to raw type&lt;br /&gt;&amp;lt;info&amp;gt; app: Scanning&lt;br /&gt;&amp;lt;info&amp;gt; app: Advertising&lt;br /&gt;&amp;lt;info&amp;gt; app: LE Secure Connections example started.&lt;br /&gt;&amp;lt;info&amp;gt; app: PERIPHERAL: Connected, handle 0.&lt;br /&gt;&amp;lt;info&amp;gt; app: CENTRAL: BLE_GAP_EVT_SEC_PARAMS_REQUEST&lt;br /&gt;&amp;lt;info&amp;gt; app: CENTRAL: BLE_GAP_EVT_LESC_DHKEY_REQUEST&lt;br /&gt;&amp;lt;info&amp;gt; app: Calling sd_ble_gap_lesc_dhkey_reply on conn_handle: 0&lt;br /&gt;&amp;lt;info&amp;gt; app: CENTRAL: BLE_GAP_EVT_AUTH_STATUS: status = 0x83 bond = 0x0 lv4: 0 kdist_own: 0x0 kdist_peer: 0x0&lt;br /&gt;&lt;span&gt;////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please tell me the cause.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_lesc_dhkey_reply's error on "ble_app_multirole_lesc"</title><link>https://devzone.nordicsemi.com/thread/191761?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2019 02:19:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59dca231-2bd8-4712-abc4-e60359334989</guid><dc:creator>takashina hiroki</dc:creator><description>&lt;p&gt;Indicates a log when an error occurs.&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app: Initializing nrf_crypto.&lt;br /&gt;&amp;lt;info&amp;gt; app: Initialized nrf_crypto.&lt;br /&gt;&amp;lt;warning&amp;gt; nrf_sdh_ble: RAM starts at 0x20002C50, can be adjusted to 0x20002788.&lt;br /&gt;&amp;lt;warning&amp;gt; nrf_sdh_ble: RAM size can be adjusted to 0xD878.&lt;br /&gt;&amp;lt;info&amp;gt; app: Generating key-pair&lt;br /&gt;&amp;lt;info&amp;gt; app: Converting to raw type&lt;br /&gt;&amp;lt;info&amp;gt; app: Scanning&lt;br /&gt;&amp;lt;info&amp;gt; app: Advertising&lt;br /&gt;&amp;lt;info&amp;gt; app: LE Secure Connections example started.&lt;br /&gt;&amp;lt;info&amp;gt; app: PERIPHERAL: Connected, handle 0.&lt;br /&gt;&amp;lt;info&amp;gt; app: CENTRAL: BLE_GAP_EVT_SEC_PARAMS_REQUEST&lt;br /&gt;&amp;lt;info&amp;gt; app: CENTRAL: BLE_GAP_EVT_LESC_DHKEY_REQUEST&lt;br /&gt;&amp;lt;info&amp;gt; app: CENTRAL: BLE_GAP_EVT_AUTH_STATUS: status = 0x83 bond = 0x0 lv4: 0 kdist_own: 0x0 kdist_peer: 0x0&lt;br /&gt;&amp;lt;info&amp;gt; app: Calling sd_ble_gap_lesc_dhkey_reply on conn_handle: 0&lt;br /&gt;&amp;lt;error&amp;gt; app: ERROR 8 [NRF_ERROR_INVALID_STATE] at C: \ *** \ nRF5_SDK_14.2.0_17b948a \ examples \ ble_central_and_peripheral \ experimental \ ble_app_multirole_lesc \ main.c: 1437&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_lesc_dhkey_reply's error on "ble_app_multirole_lesc"</title><link>https://devzone.nordicsemi.com/thread/191759?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2019 02:17:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbf39cce-0771-42ab-98c9-e69eeed1202b</guid><dc:creator>takashina hiroki</dc:creator><description>&lt;p&gt;I tried using two boards.&lt;br /&gt;In that case, no abnormality occurs and it works normally.&lt;br /&gt;An error occurs only when I try with my smartphone.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_lesc_dhkey_reply's error on "ble_app_multirole_lesc"</title><link>https://devzone.nordicsemi.com/thread/191757?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2019 00:33:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e3309d9-e516-43a8-a0f2-76b5f4923bb0</guid><dc:creator>takashina hiroki</dc:creator><description>&lt;p&gt;I tried it with Google Pixel 3 (Bluetooth v5.0), but the same error occurred.&lt;br /&gt;I understand that it is compatible with the old version.&lt;br /&gt;Please tell me the cause.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_lesc_dhkey_reply's error on "ble_app_multirole_lesc"</title><link>https://devzone.nordicsemi.com/thread/191756?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2019 00:26:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8daef23d-e7db-4f19-8f72-fb18365ccc43</guid><dc:creator>takashina hiroki</dc:creator><description>&lt;p&gt;Thank you for answer.&lt;/p&gt;
&lt;p&gt;I did not confirm that.&lt;br /&gt;Thank you for teaching me.&lt;/p&gt;
&lt;p&gt;I will try it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_lesc_dhkey_reply's error on "ble_app_multirole_lesc"</title><link>https://devzone.nordicsemi.com/thread/191640?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2019 12:06:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:562c212c-e0ee-4686-8554-145477234230</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think the iPhone 5s support LESC as it came in Bluetooth 4.2 and &lt;a href="https://www.gsmarena.com/apple_iphone_5s-5685.php"&gt;iPhone 5s supports Bluetooth 4.0&lt;/a&gt;. You can confirm this by using &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/ble_sdk_app_multirole_lesc.html?cp=5_1_4_2_1_3"&gt;nRF Connect as a central instead,&lt;/a&gt; and see if it works.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>