<?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>Setting IO Capabilities with NCS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71884/setting-io-capabilities-with-ncs</link><description>I&amp;#39;ve tried searching for some documentation on pairing IO capabilities with NCS/Zephyr but can&amp;#39;t find any. I&amp;#39;m trying to modify the peripheral_hids_keyboard example to use &amp;quot;just works&amp;quot; pairing (no input no output device). Looking at the docs for bt_conn_auth_cb</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Mar 2021 10:59:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71884/setting-io-capabilities-with-ncs" /><item><title>RE: Setting IO Capabilities with NCS</title><link>https://devzone.nordicsemi.com/thread/300076?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 10:59:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6749e2b-432f-446a-a566-26eb22c0fc7b</guid><dc:creator>nrbrook</dc:creator><description>&lt;p&gt;I managed to get it working.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# this can be left enabled
CONFIG_BT_HIDS_DEFAULT_PERM_RW_ENCRYPT=y
# we are using unauthenticated pairing
CONFIG_BT_HIDS_DEFAULT_PERM_RW_AUTHEN=n
# we do not want to enforce MITM as this requires authenticated pairing
CONFIG_BT_SMP_ENFORCE_MITM=n
# we want to overwrite old bonds from the same device (optional, security risk)
CONFIG_BT_SMP_ALLOW_UNAUTH_OVERWRITE=y&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting IO Capabilities with NCS</title><link>https://devzone.nordicsemi.com/thread/300070?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 10:47:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:689906a0-1c4d-4992-8956-025085b12808</guid><dc:creator>nrbrook</dc:creator><description>&lt;p&gt;I still get the same error.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The HID over GATT spec states:&lt;/p&gt;
&lt;p&gt;The HID Device shall use LE Security Mode 1 and either Security Level 2 or 3. All supported characteristics specified by the HID Service shall be set to Security Mode 1 and either Security Level 2 or 3.&lt;/p&gt;
&lt;p&gt;The Bluetooth spec defines this as:&lt;/p&gt;
&lt;p&gt;10.2.1 LE security mode 1&lt;br /&gt;LE security mode 1 has the following security levels:&lt;br /&gt;1. No security (No authentication and no encryption)&lt;br /&gt;2. Unauthenticated pairing with encryption&lt;br /&gt;3. Authenticated pairing with encryption&lt;br /&gt;4. Authenticated LE Secure Connections pairing with encryption using a 128- bit strength encryption key.&lt;/p&gt;
&lt;p&gt;So they do require pairing, but not authentication. With the nRF5 SDK this works correctly. Is unauthenticated pairing not supported in the nRF connect SDK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting IO Capabilities with NCS</title><link>https://devzone.nordicsemi.com/thread/298181?ContentTypeID=1</link><pubDate>Fri, 05 Mar 2021 16:59:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75dcc105-2566-46a5-a306-42c01bd6a4d4</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It seems that encryption is allowed with just works, authentication is what requires higher security.&lt;/p&gt;
&lt;p&gt;Can you check if&amp;nbsp;CONFIG_BT_HIDS_DEFAULT_PERM_RW_AUTHEN is &amp;quot;y&amp;quot;, if yes can you set it to &amp;quot;n&amp;quot;?&lt;/p&gt;
&lt;p&gt;Also be aware that authentication is required in HID over GATT profile, so probably your phone, or whatever you are connecting with is enforcing that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting IO Capabilities with NCS</title><link>https://devzone.nordicsemi.com/thread/297817?ContentTypeID=1</link><pubDate>Thu, 04 Mar 2021 13:24:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4df34ad-bd4b-411f-b5db-689c71972b67</guid><dc:creator>nrbrook</dc:creator><description>&lt;p&gt;No, unfortunately the result is the same&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting IO Capabilities with NCS</title><link>https://devzone.nordicsemi.com/thread/297778?ContentTypeID=1</link><pubDate>Thu, 04 Mar 2021 12:19:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0552f0c6-76c1-481c-9af0-ddaa4278379f</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It might be related to the CONFIG_BT_HIDS_DEFAULT_PERM_RW_ENCRYPT.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you try setting this to &amp;quot;n&amp;quot; in addition to the changes you already made and see what happens?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting IO Capabilities with NCS</title><link>https://devzone.nordicsemi.com/thread/297023?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 22:12:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efbf78a9-6851-4248-9535-a26a0bb1ec42</guid><dc:creator>nrbrook</dc:creator><description>&lt;p&gt;Hi, do you have any more suggestions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting IO Capabilities with NCS</title><link>https://devzone.nordicsemi.com/thread/295863?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 14:27:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4bfd7e6-f81d-408c-a83b-6978882e14fb</guid><dc:creator>nrbrook</dc:creator><description>&lt;p&gt;That suggests I was correct in thinking that setting passkey_* and pairing_confirm callbacks to NULL would be sufficient, but then why does pairing fail with error 4? Error 4 is:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/** The requested security level could not be reached. */
	BT_SECURITY_ERR_AUTH_REQUIREMENT,&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting IO Capabilities with NCS</title><link>https://devzone.nordicsemi.com/thread/295849?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 13:58:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70ba94e8-eb4d-4298-91e7-f3774602e63f</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can read more about it &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/bluetooth/bluetooth-arch.html#security" rel="noopener noreferrer" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>