<?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>Bonding error 132 with HID example.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51187/bonding-error-132-with-hid-example</link><description>Hello, 
 I am trying to add bonding functionality with a passkey to HID device, and use for this ble_app_gls_pca10040_s132 example as basic project. 
 But it don`t want to connect as primary example. It no asking a passkey from phone. Just appeared for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Aug 2019 11:11:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51187/bonding-error-132-with-hid-example" /><item><title>RE: Bonding error 132 with HID example.</title><link>https://devzone.nordicsemi.com/thread/205551?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2019 11:11:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56f7a029-1004-440c-b437-4c3ccee1ea94</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;In case anyone has a similar issue later, the issue was found and it turns out that Android assumes that a device has keyboard input as long as the appearance is set to&amp;nbsp;BLE_APPEARANCE_HID_KEYBOARD even if the IO capabilities of the peripheral is set to display only. So the fix, in this case, was to change the appearance to something else.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding error 132 with HID example.</title><link>https://devzone.nordicsemi.com/thread/205241?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 09:23:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd3aba7d-6a48-419d-9673-18ab9d3c5bcc</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Perfect. I will test and get back to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding error 132 with HID example.</title><link>https://devzone.nordicsemi.com/thread/205225?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 08:58:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ad222af-d35e-4413-ba84-26c35f3e5a1e</guid><dc:creator>NamoAton</dc:creator><description>[quote userid="7377" url="~/f/nordic-q-a/51187/bonding-error-132-with-hid-example/205220"]Does it run on the DK?[/quote]
&lt;p&gt;yes it run on dk. I created..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding error 132 with HID example.</title><link>https://devzone.nordicsemi.com/thread/205220?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 08:52:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9c1ed82-0c4f-4a8b-a736-02eb770a27c1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, that could be useful. Please make a new private question and refer to this thread, and upload your code there. Please upload the complete project so that I can drop t in the SDK and build it out of the box. Does it run on the DK? Also, please specify SDK version and a simple test procedure.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding error 132 with HID example.</title><link>https://devzone.nordicsemi.com/thread/205162?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 05:05:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ecce462-4e9e-4f28-b17b-1f81826f9968</guid><dc:creator>NamoAton</dc:creator><description>[quote userid="7377" url="~/f/nordic-q-a/51187/bonding-error-132-with-hid-example/205050"]which version of Android does it use?[/quote]
&lt;p&gt;Samsung S9, Android 9. &lt;br /&gt;I can send you code in pm. Maybe this would be useful to resolve porblem..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding error 132 with HID example.</title><link>https://devzone.nordicsemi.com/thread/205050?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 13:09:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e0b991a-b1d1-4fa6-a22c-93cdb159ec6a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="NamoAton"]When I try&amp;nbsp; the same procedure with my &amp;quot;HID&amp;quot; device, the pop-up window appeared for a second with no line for passkey, but with numbers instead.[/quote]
&lt;p&gt;That is odd. When the initiator (phone) supports display and keyboard and the responder (nRF) supports display only, the MITM protection should always be in the form of passkey entry where the responder displays the key and it is input on the initiator. This is the same for both &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.1.1/group___b_l_e___g_a_p___p_e_r_i_p_h___b_o_n_d_i_n_g___p_k___p_e_r_i_p_h___m_s_c.html?cp=3_4_3_1_2_1_3_10_7_2"&gt;LE legacy&lt;/a&gt; and &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.1.1/group___b_l_e___g_a_p___p_e_r_i_p_h___l_e_s_c___b_o_n_d_i_n_g___p_k_e___p_d___m_s_c.html?cp=3_4_3_1_2_1_3_10_6_2"&gt;LE secure&lt;/a&gt; pairing.&lt;/p&gt;
&lt;p&gt;The fact that you see numbers instead, could be that it is for numeric comparison. Is there also a Yes/No button there? However, if you really set the IO capabilities to&amp;nbsp; BLE_GAP_IO_CAPS_DISPLAY_ONLY, then the numeric comparison is not possible per Bluetooth specification. The error&amp;nbsp;132 (0x84) is&amp;nbsp;BLE_GAP_SEC_STATUS_CONFIRM_VALUE, which typically indicates that the wrong passkey was entered or that the numeric comparison was rejected (pressed no). In any case, numeric comparison should not be an option in this setup. Which phone model are you testing with, and which version of Android does it use?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding error 132 with HID example.</title><link>https://devzone.nordicsemi.com/thread/205031?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 12:43:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b031226-41fe-4e94-a47a-0f33d87172a4</guid><dc:creator>NamoAton</dc:creator><description>&lt;p&gt;Ok. I take for a base glucose app. When I tried to connect to nrf52 device from android phone. I got pop-up window with line for&amp;nbsp; passkey enter.&lt;br /&gt;When I try&amp;nbsp; the same procedure with my &amp;quot;HID&amp;quot; device, the pop-up window appeared for a second with no line for passkey, but with numbers instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding error 132 with HID example.</title><link>https://devzone.nordicsemi.com/thread/205024?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 12:34:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99df7055-821c-4948-9de7-0cbb42266341</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is it so that your HID device has a display (or another method to display the passkey)? That is what you have specified (BLE_GAP_IO_CAPS_DISPLAY_ONLY), but I just want to be sure.&lt;/p&gt;
[quote user=""]But it&amp;nbsp; don`t want to connect as primary&amp;nbsp; example. It no asking a passkey from&amp;nbsp; phone. Just appeared for a second.[/quote]
&lt;p&gt;It is not clear to me what is happening. Can you elaborate on the problem?&lt;/p&gt;
&lt;p&gt;Also, it would be interesting to know more about your implementation. As you can see from the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/ble_sdk_app_gls.html?cp=5_1_4_2_2_11"&gt;Glucose Application&lt;/a&gt;&amp;nbsp;(which use passkey), there is not much you need to do other than configuring the IO capabilities and MITM as you have, and display the passkey when you get a&amp;nbsp;BLE_GAP_EVT_PASSKEY_DISPLAY event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>