<?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>On PASSKEY re-input of LESC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39020/on-passkey-re-input-of-lesc</link><description>Hi, 
 I am developing software supporting LEsecure using SDK 12.3 with nRF 51822. 
 Please tell me what to do when incorrect data is entered in &amp;quot;Passkey entry&amp;quot;. 
 Currently we will send the input value again with sd_ble_gap_lesc_dhkey_reply, but it will</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Oct 2018 23:12:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39020/on-passkey-re-input-of-lesc" /><item><title>RE: On PASSKEY re-input of LESC</title><link>https://devzone.nordicsemi.com/thread/151551?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 23:12:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1173c507-5512-419d-9a1c-6d800c2780f4</guid><dc:creator>m-o</dc:creator><description>&lt;p&gt;thank you for your answer.&lt;/p&gt;
&lt;p&gt;Thanks for your explanation I understood.&lt;br /&gt;Thank you very much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: On PASSKEY re-input of LESC</title><link>https://devzone.nordicsemi.com/thread/151198?ContentTypeID=1</link><pubDate>Tue, 02 Oct 2018 10:52:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36f41776-7b21-438a-a0c5-f7ec27bfb382</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;You have to connect again. The devices disconnects after you tried to enter incorrect passkey in order to be more secure from brute-force attacks, if it had stayed connected the device would have been vulnerable to brute-force attacks.&lt;/p&gt;
&lt;p&gt;If you want to connect again use the &lt;strong&gt;sd_ble_gap_connect&lt;/strong&gt; API found in &lt;strong&gt;ble_gap.h&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;SVCALL(SD_BLE_GAP_CONNECT, uint32_t, sd_ble_gap_connect(ble_gap_addr_t const *p_peer_addr, ble_gap_scan_params_t const *p_scan_params, ble_gap_conn_params_t const *p_conn_params)); &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: On PASSKEY re-input of LESC</title><link>https://devzone.nordicsemi.com/thread/151185?ContentTypeID=1</link><pubDate>Tue, 02 Oct 2018 09:27:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5338236c-8c11-4706-a706-155c744a6ce9</guid><dc:creator>m-o</dc:creator><description>&lt;p&gt;thank you for your answer.&lt;/p&gt;
&lt;p&gt;I can not explain it well, I&amp;#39;m sorry.&lt;/p&gt;
&lt;p&gt;How can I get PASSKEY input again after incorrect data is entered and disconnected?&lt;/p&gt;
&lt;p&gt;After knowing the error, what API should I run?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I really appreciate any help or comment.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: On PASSKEY re-input of LESC</title><link>https://devzone.nordicsemi.com/thread/150973?ContentTypeID=1</link><pubDate>Mon, 01 Oct 2018 12:56:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e64ff390-6c3b-4e35-96a8-448ee7e5f819</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Have you looked at the Glucose Application example in the &lt;strong&gt;nRF5_SDK_12.3.0_d7731ad\examples\ble_peripheral\ble_app_gls&lt;/strong&gt; folder? This shows the code needed for passkey, and there is also an demonstration of the example &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/ble_sdk_app_gls.html"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When you tried to use &lt;strong&gt;sd_ble_gap_lesc_dhkey_reply &lt;/strong&gt;after you tried the incorrect passkey you get &lt;strong&gt;NRF_ERROR_INVALID_STATE&lt;/strong&gt; because you are disconnected from the device.&lt;/p&gt;
&lt;p&gt;You can read this in the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s130.api.v2.0.1%2Fgroup___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html&amp;amp;anchor=ga19708790e99e806a67cfb1e75b47bfd1"&gt;infocenter&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>