<?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>How to enable Just Works pairing in peripheral_hids_mouse (NCS v3.0.2)?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124489/how-to-enable-just-works-pairing-in-peripheral_hids_mouse-ncs-v3-0-2</link><description>Hi, 
 I&amp;#39;m using the peripheral_hids_mouse example from NCS v3.0.2. What&amp;#39;s the correct way from SC(Secure Connections) to enable Just Works pairing ? 
 Thanks!</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Sep 2025 11:30:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124489/how-to-enable-just-works-pairing-in-peripheral_hids_mouse-ncs-v3-0-2" /><item><title>RE: How to enable Just Works pairing in peripheral_hids_mouse (NCS v3.0.2)?</title><link>https://devzone.nordicsemi.com/thread/549666?ContentTypeID=1</link><pubDate>Wed, 24 Sep 2025 11:30:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ec50dbf-f215-4e0c-9db2-4caaeca64c8f</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What is the peer device?&lt;br /&gt;If for instance it is the Bluetooth Low Energy app in nRF Connect for Desktop, then you can control the security parameters from the drop-down menu on the cogwheel of the connectivity device:&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/pastedimage1758713320569v1.png" alt=" " /&gt;&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: How to enable Just Works pairing in peripheral_hids_mouse (NCS v3.0.2)?</title><link>https://devzone.nordicsemi.com/thread/549481?ContentTypeID=1</link><pubDate>Tue, 23 Sep 2025 01:45:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79101d70-5760-4fdb-b315-a23c15e4b9c7</guid><dc:creator>Ozzy</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the suggestion! Unfortunately, those parameter settings still didn&amp;rsquo;t achieve what I need. I&amp;rsquo;ve attached a screenshot of the capture I took with Ellisys Bluetooth Analyzer. My goal is to force the SC bit to 0 so I can analyze the data without having to enter the SC LTK for decryption every time.&lt;/p&gt;
&lt;p&gt;Looking forward to your reply!&lt;/p&gt;
&lt;p&gt;Best regards, &lt;br /&gt;Ozzy&lt;br /&gt;&lt;br /&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/pastedimage1758591939651v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable Just Works pairing in peripheral_hids_mouse (NCS v3.0.2)?</title><link>https://devzone.nordicsemi.com/thread/549468?ContentTypeID=1</link><pubDate>Mon, 22 Sep 2025 18:24:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7838e75d-9c7e-459a-ad86-c08b8df667c9</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;LE Secure Connections (LESC) is forced if either &lt;code&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_BT_SMP_SC_ONLY"&gt;CONFIG_BT_SMP_SC_ONLY&lt;/a&gt;=y&lt;/code&gt; or &lt;code&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_BT_SMP_SC_PAIR_ONLY"&gt;CONFIG_BT_SMP_SC_PAIR_ONLY&lt;/a&gt;=y&lt;/code&gt;. Setting them both to &lt;code&gt;n&lt;/code&gt; makes it possible to connect without LESC. Then, when connecting from e.g. the nRF Connect for Desktop BLE app, make sure to not enable LESC and the connection will use legacy pairing.&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: How to enable Just Works pairing in peripheral_hids_mouse (NCS v3.0.2)?</title><link>https://devzone.nordicsemi.com/thread/549358?ContentTypeID=1</link><pubDate>Sat, 20 Sep 2025 02:03:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:375a1ae8-fe28-4b6e-9ca3-9aa8b490cadd</guid><dc:creator>Ozzy</dc:creator><description>&lt;p&gt;Thanks again for your quick and clear guidance!&lt;/p&gt;
&lt;p&gt;One more question: for debugging purposes I&amp;rsquo;d like to **disable Secure Connections completely**&amp;nbsp;&lt;br /&gt;This makes it possible to follow the packets with a plain BLE-sniffer that does not support SC.&lt;/p&gt;
&lt;p&gt;Could you point out the minimal Kconfig / code changes that **force Legacy pairing only** (no SC at all) in the *peripheral_hids_mouse* sample?&lt;/p&gt;
&lt;p&gt;Thank you very much!&lt;br /&gt;Ozzy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable Just Works pairing in peripheral_hids_mouse (NCS v3.0.2)?</title><link>https://devzone.nordicsemi.com/thread/549337?ContentTypeID=1</link><pubDate>Fri, 19 Sep 2025 15:34:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be3b92a7-7cde-4487-b196-c7dda73e896e</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;quot;Just Works&amp;quot; is one of the key generation methods in BLE pairing. What key generation method is used, depend on the IO capabilities of the devices. Therefore, the best way to ensure the Just Works method, is to ensure the local device is &amp;quot;NoInput NoOutput&amp;quot;.&lt;/p&gt;
&lt;p&gt;In &lt;em&gt;main.c&lt;/em&gt; of the Peripheral HIDS Mouse sample, you should find, close to line 654 or so:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static struct bt_conn_auth_cb conn_auth_callbacks = {
	.passkey_display = auth_passkey_display,
	.passkey_confirm = auth_passkey_confirm,
	.cancel = auth_cancel,
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This &lt;code&gt;bt_conn_auth_cb&lt;/code&gt; structure contains callbacks for use of the input and output capabilities of your device. Some of those callbacks can be set to &lt;code&gt;NULL&lt;/code&gt;, for signalling that the device does not have those capabilities. Hence, in order to force both NoInput and NoOutput for your device, you can configure it like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static struct bt_conn_auth_cb conn_auth_callbacks = {
	.passkey_display = NULL,
	.passkey_entry = NULL,
	.passkey_confirm = NULL,
	.cancel = auth_cancel,
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;With that configuration, Just Works would be the only possible key generation method for paring with your device.&lt;/p&gt;
&lt;p&gt;Please note that with Just Works, the key will be &lt;em&gt;unauthenticated&lt;/em&gt;, which may have implications for what functionality from Bluetooth profiles can be used or not during the connection.&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>