<?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>nRF5 SDK 17.1.0: Numeric Comparison pairing dialog on phone fails to dismiss after peripheral rejects pairing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/129130/nrf5-sdk-17-1-0-numeric-comparison-pairing-dialog-on-phone-fails-to-dismiss-after-peripheral-rejects-pairing</link><description>Hi DevZone, 
 My customer is using nRF5 SDK v17.1.0 with LESC Numeric Comparison pairing. They have encountered an issue during the pairing process: when the central (phone) initiates pairing, the 
 peripheral correctly displays the passkey. However,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Sep 2026 01:41:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/129130/nrf5-sdk-17-1-0-numeric-comparison-pairing-dialog-on-phone-fails-to-dismiss-after-peripheral-rejects-pairing" /><item><title>RE: nRF5 SDK 17.1.0: Numeric Comparison pairing dialog on phone fails to dismiss after peripheral rejects pairing</title><link>https://devzone.nordicsemi.com/thread/571510?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2026 01:41:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca7f7ec3-57e4-441b-9377-05d6a7d23ce2</guid><dc:creator>David Duan</dc:creator><description>&lt;p&gt;Thank you so much for the detailed explanation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK 17.1.0: Numeric Comparison pairing dialog on phone fails to dismiss after peripheral rejects pairing</title><link>https://devzone.nordicsemi.com/thread/571404?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2026 16:11:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07e44b5a-176a-4dda-882d-77d637187c21</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We can conclude then, that the reason for the missing SMP Pairing Failed packet from the peripheral, is the missing DHKey Check packet from the central. From what we can tell, this implementation of the peripheral is allowed by the Bluetooth Specification.&lt;/p&gt;
&lt;p&gt;The behavior seems to have changed for the SoftDevice Controller of nRF Connect SDK, which in turn has led to better interoperability with central devices not sending DHKey Check packets. The change will not be backported to the SoftDevices of nRF5 SDK. This means when they see this issue, the workaround is to close the pairing dialog manually at the central end or wait for a central side timeout.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK 17.1.0: Numeric Comparison pairing dialog on phone fails to dismiss after peripheral rejects pairing</title><link>https://devzone.nordicsemi.com/thread/571368?ContentTypeID=1</link><pubDate>Sun, 20 Sep 2026 05:32:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e010e05-6545-446b-ae8c-40aeaf0ffdad</guid><dc:creator>David Duan</dc:creator><description>&lt;p&gt;HI&amp;nbsp;&lt;span&gt;Terje&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp;&amp;nbsp;sd_ble_gap_auth_key_reply returns NRF_SUCCESS without any error messages, until the pairing response times out.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1789882212323v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1789882230664v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2.I have attached the Ellisys packet capture log above, and there is no DHKey Check packet.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1789882321407v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK 17.1.0: Numeric Comparison pairing dialog on phone fails to dismiss after peripheral rejects pairing</title><link>https://devzone.nordicsemi.com/thread/571357?ContentTypeID=1</link><pubDate>Fri, 18 Sep 2026 13:50:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:335d19f7-3150-4963-88ad-2c830b93b227</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We have investigated the issue, but here we see the peripheral sends a Pairing Failed (0x05) with reason Numeric Comparison Failed (0x0c), in response to a Pairing DHKey Check sent from the central. That Pairing DHKey Check is missing from the MSC, but that packet is essentially what the peripheral responds to. From what we can tell, this way of handing it is allowed by the Bluetooth specification.&lt;/p&gt;
&lt;p&gt;Therefore:&lt;br /&gt;1. Can we confirm the return value from sd_ble_gap_auth_key_reply(BLE_GAP_AUTH_KEY_TYPE_NONE, NULL)? (Should be NRF_SUCCESS. If something else, that error code would be important for figuring out what happens.)&lt;br /&gt;2. When we see the issue (dialogue on central does not go away), does the central send a Pairing DHKey Check packet?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK 17.1.0: Numeric Comparison pairing dialog on phone fails to dismiss after peripheral rejects pairing</title><link>https://devzone.nordicsemi.com/thread/571169?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2026 03:22:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56c1b9a9-349b-4056-be66-d7693d46c814</guid><dc:creator>David Duan</dc:creator><description>&lt;p&gt;HI Tesc&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;any update on this&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK 17.1.0: Numeric Comparison pairing dialog on phone fails to dismiss after peripheral rejects pairing</title><link>https://devzone.nordicsemi.com/thread/571077?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2026 01:39:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18d32844-c6ec-41dc-86c0-fdf27f322bc7</guid><dc:creator>David Duan</dc:creator><description>&lt;p&gt;HI&amp;nbsp; Tesc&amp;nbsp;&lt;/p&gt;
&lt;p&gt;my result is same customer,we both use ellisys to capture the data, we can&amp;#39;t see the&amp;nbsp;&lt;span&gt;sd_ble_gap_auth_key_reply()&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;below it is my snifer result.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/ellisys.png" /&gt;&lt;/p&gt;
&lt;p&gt;ellisys sniffer result:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/sniffer_5F00_result.btt"&gt;devzone.nordicsemi.com/.../sniffer_5F00_result.btt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;if you use my project with NRF52 DK, this can be easy to reproduce by any smart phone with nrf connect.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK 17.1.0: Numeric Comparison pairing dialog on phone fails to dismiss after peripheral rejects pairing</title><link>https://devzone.nordicsemi.com/thread/571063?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2026 13:42:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35425901-f2ae-417b-94e0-8817fd34be99</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]&lt;strong&gt;&lt;span style="background-color:rgba(255, 255, 0, 1);"&gt;Question:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="background-color:rgba(255, 255, 0, 1);"&gt;I would like to confirm whether the nRF5 SDK SoftDevice itself inherently does not support sending this SMP Pairing Failed command in this scenario?&lt;/span&gt;&lt;/strong&gt;[/quote]
&lt;p&gt;The SoftDevice should send the SMP Pairing failed command. The code that you shared looks correct. Setting&amp;nbsp;&lt;code&gt;key_type = BLE_GAP_AUTH_KEY_TYPE_NONE&lt;/code&gt; and sending that value in &lt;code&gt;sd_ble_gap_auth_key_reply()&lt;/code&gt; should lead to the SoftDevice sending SMP Pairing failed, as per the &lt;a href="https://docs.nordicsemi.com/r/bundle/s132_v5.0.0_api/page/group_b_l_e_g_a_p_p_e_r_i_p_h_l_e_s_c_b_o_n_d_i_n_g_n_c_m_s_c.html"&gt;Bonding: Numeric Comparison Message Sequence Chart&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I see from the logs that the error code returned by the SoftDevice from the call to &lt;code&gt;sd_ble_gap_auth_key_reply()&lt;/code&gt; is &lt;code&gt;NRF_SUCCESS&lt;/code&gt;, so if there is no SMP Pairing failed command sent then this looks like an issue with the SoftDevice. However I do not find any similar prior reports, and nRF5 SDK is several years old at this point. Are you able to confirm there is indeed no SMP Pairing failed command sent, by using a sniffer (such as for instance the nRF Sniffer)?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>