<?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>NCS 2.2.0 - Connect two nRF52840-DKs paired with level 3 security using fixed key.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95148/ncs-2-2-0---connect-two-nrf52840-dks-paired-with-level-3-security-using-fixed-key</link><description>Hello, 
 I created a BLE Peripheral (ble_custom_auth) that has a custom service. I also create a BLE Central (scan_adv) that scans for that service UUID in devices, once found connects and should pair level 3 using a fixed password. 
 I validated both</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Dec 2022 03:19:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95148/ncs-2-2-0---connect-two-nrf52840-dks-paired-with-level-3-security-using-fixed-key" /><item><title>RE: NCS 2.2.0 - Connect two nRF52840-DKs paired with level 3 security using fixed key.</title><link>https://devzone.nordicsemi.com/thread/402107?ContentTypeID=1</link><pubDate>Fri, 23 Dec 2022 03:19:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:571a297a-59ad-4bc7-a8b7-1258651af3e8</guid><dc:creator>Joao Dullius</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;I was able to figure it out.&lt;/p&gt;
&lt;p&gt;I was misinterpreting how the .passkey_entry, .passkey_confirm and .passkey_display works.&lt;/p&gt;
&lt;p&gt;As I want for both sides to simply set the same fixed password, I implementes it using .passkey_entry with success. This way &amp;quot;emulate&amp;quot; user entering a password by setting a fixed hard coded defined one.&lt;/p&gt;
&lt;p&gt;As reference here is my working code regarding the pairing with fixed pass on L4:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/joaodullius/nrf-examples/tree/pair_ok/pairing_fixed_passkey"&gt;nrf-examples/pairing_fixed_passkey at pair_ok &amp;middot; joaodullius/nrf-examples (github.com)&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 2.2.0 - Connect two nRF52840-DKs paired with level 3 security using fixed key.</title><link>https://devzone.nordicsemi.com/thread/402106?ContentTypeID=1</link><pubDate>Thu, 22 Dec 2022 23:19:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9228ddbd-6a6b-4f9e-a151-0169b5f7d26b</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will be out of the office on Friday and will keep looking into this case next week.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Merry Christmas,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 2.2.0 - Connect two nRF52840-DKs paired with level 3 security using fixed key.</title><link>https://devzone.nordicsemi.com/thread/402105?ContentTypeID=1</link><pubDate>Thu, 22 Dec 2022 20:31:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13680d5e-acbf-4abb-8bd0-0aa74b8845ae</guid><dc:creator>Joao Dullius</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Please, see attached.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/level3_5F00_pairing_5F00_failure.pcapng"&gt;devzone.nordicsemi.com/.../level3_5F00_pairing_5F00_failure.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 2.2.0 - Connect two nRF52840-DKs paired with level 3 security using fixed key.</title><link>https://devzone.nordicsemi.com/thread/402104?ContentTypeID=1</link><pubDate>Thu, 22 Dec 2022 15:12:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d73da533-cf97-4ee9-b8be-021ee7aec79f</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please kindly provide a &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE"&gt;sniffer log&lt;/a&gt; to help investigate the issue. Thanks.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 2.2.0 - Connect two nRF52840-DKs paired with level 3 security using fixed key.</title><link>https://devzone.nordicsemi.com/thread/402103?ContentTypeID=1</link><pubDate>Thu, 22 Dec 2022 13:57:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:492652c8-df46-42a5-8fb8-394185be53a3</guid><dc:creator>Joao Dullius</dc:creator><description>&lt;p&gt;I don&amp;#39;t know if it is related, but i just realized that the Central running on the DK detects the peripheral also running on DK as non connectable:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[00:00:00.690,155] &amp;lt;inf&amp;gt; ble_scanner: scan_filter_match: Filters matched. Address: F9:FC:08:12:08:72 (random)&lt;span style="background-color:rgba(255, 255, 0, 1);"&gt; &lt;strong&gt;connectable: 0&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;What do I need to change in my peripheral ad or advertising configurations for it o be detected as connectable?&lt;/p&gt;
&lt;p&gt;Here is my current implementation:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="ui-code" data-mode="c_cpp"&gt;static const struct bt_data ad[] = {
	BT_DATA_BYTES(BT_DATA_FLAGS, (BT_LE_AD_GENERAL | BT_LE_AD_NO_BREDR)),
	BT_DATA(BT_DATA_NAME_COMPLETE, DEVICE_NAME, DEVICE_NAME_LEN),
};

static const struct bt_data sd[] = {
    BT_DATA_BYTES(BT_DATA_UUID128_ALL, BT_UUID_CUSTOM_SERV_VAL),
};


	err = bt_le_adv_start(BT_LE_ADV_CONN, ad, ARRAY_SIZE(ad),
			      sd, ARRAY_SIZE(sd));
	if (err) {
		LOG_ERR(&amp;quot;Advertising failed to start (err %d)&amp;quot;, err);
		return;
	}&lt;/pre&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>