<?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>nRF54L15 enabled L4 connection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119074/nrf54l15-enabled-l4-connection</link><description>Hello Team, 
 
 Our concerns are related to L4 security in BLE 
 
 1. We&amp;#39;re using nRF54L15 chipset having nCS SDK 2.9, peripheral LBS example mentioned in this exercise ( Exercise 1 - Nordic Developer Academy ), we needed authentication to be enabled</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Feb 2025 08:35:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119074/nrf54l15-enabled-l4-connection" /><item><title>RE: nRF54L15 enabled L4 connection</title><link>https://devzone.nordicsemi.com/thread/524255?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 08:35:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f5183fc-404d-4906-83d5-5c8a3f2f1ccd</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I am not sure I understand. Can you elaborate?&lt;/p&gt;
&lt;p&gt;Not that generally, on BLE security requierements are per characeristic (and separate for read and write). So if you requier a specific security level for some or all of your characteristics, set that as a requierment as shown in my previous post. Also, I want to mention that you can enforce LE Secure pairing&amp;nbsp; if you want, by using&amp;nbsp;&lt;code&gt;CONFIG_BT_SMP_SC_ONLY=y&lt;/code&gt; as demonstrated in the &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/b979e73fbf9c8eb07bc142beb3df45aa3574a41c/samples/bluetooth/peripheral_sc_only"&gt;Peripheral SC-only sample&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 enabled L4 connection</title><link>https://devzone.nordicsemi.com/thread/524231?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 07:00:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ed40008-2687-462b-9221-0db248284936</guid><dc:creator>hiteshk014</dc:creator><description>&lt;p&gt;If we remove these authentications from the defined characteristics to enable data transactions in the nRF Connect app (iOS), how will we be able to maintain L4 security during data transfer for our intended purpose&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 enabled L4 connection</title><link>https://devzone.nordicsemi.com/thread/523851?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2025 09:56:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a42ad78-1a19-4cf7-870f-f24581d7f272</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Hansraj,&lt;/p&gt;
&lt;p&gt;The LBS sample does not requier security on the characteristics, and therefore, iOS will never initiate pairing/bonding for it (for the reasons outlined in my previous post). If you want to pair with the LBS sample using iOS, you need to modify the service. You can do that by modifying&amp;nbsp;nrf/subsys/bluetooth/services/lbs.c as shown in this diff:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="diff"&gt;diff --git a/subsys/bluetooth/services/lbs.c b/subsys/bluetooth/services/lbs.c
index 2db564e8fa..fbd9724009 100644
--- a/subsys/bluetooth/services/lbs.c
+++ b/subsys/bluetooth/services/lbs.c
@@ -100,18 +100,18 @@ BT_GATT_PRIMARY_SERVICE(BT_UUID_LBS),
 #ifdef CONFIG_BT_LBS_POLL_BUTTON
        BT_GATT_CHARACTERISTIC(BT_UUID_LBS_BUTTON,
                               BT_GATT_CHRC_READ | BT_GATT_CHRC_NOTIFY,
-                              BT_GATT_PERM_READ, read_button, NULL,
+                              BT_GATT_PERM_READ_AUTHEN, read_button, NULL,
                               &amp;amp;button_state),
 #else
        BT_GATT_CHARACTERISTIC(BT_UUID_LBS_BUTTON,
                               BT_GATT_CHRC_READ | BT_GATT_CHRC_NOTIFY,
-                              BT_GATT_PERM_READ, NULL, NULL, NULL),
+                              BT_GATT_PERM_READ_AUTHEN, NULL, NULL, NULL),
 #endif
        BT_GATT_CCC(lbslc_ccc_cfg_changed,
-                   BT_GATT_PERM_READ | BT_GATT_PERM_WRITE),
+               BT_GATT_PERM_READ_AUTHEN | BT_GATT_PERM_WRITE_AUTHEN),
        BT_GATT_CHARACTERISTIC(BT_UUID_LBS_LED,
                               BT_GATT_CHRC_WRITE,
-                              BT_GATT_PERM_WRITE,
+                              BT_GATT_PERM_WRITE_AUTHEN,
                               NULL, write_led, NULL),
 );
 &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;With this, when you attemt to for instance read the button state, pairing will be initated (note that LESC will be used, and the pass key will be printed in the UART log).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 enabled L4 connection</title><link>https://devzone.nordicsemi.com/thread/523834?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2025 09:22:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4935cd1a-6182-4e1d-8100-2c4fe3bbc139</guid><dc:creator>Hansraj Gavali</dc:creator><description>&lt;p&gt;Hi Team,&lt;/p&gt;
&lt;p&gt;As per&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-5-bluetooth-le-security-fundamentals/topic/blefund-lesson-5-exercise-1/"&gt;Exercise 1 - Nordic Developer Academy&lt;/a&gt;, Hitesh has mentioned in his query that he has followed each step provided&amp;nbsp;in the exercise. We tested the BLE connection with Android and iOS Device. Android bluetooth connection works perfectly as per the exercise using nrf Connect App but when the same thing is tried with&amp;nbsp;iPhone nrf Connect App it gets connected but we are not able to see the pairing alert pop up.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you help us to find whether something thing is missed or we haven&amp;#39;t considered in the code?&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Hansraj&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF54L15 enabled L4 connection</title><link>https://devzone.nordicsemi.com/thread/523730?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2025 14:22:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e528006-e1ab-4c81-8e1d-6f8484acf44b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Hitesh,&lt;/p&gt;
&lt;p&gt;Can you elaborate on how you tested and how it did not work? The iOS Bluetooth APIs are quite limited, so there is no way for an iOS app (like nRF Connect for iOS) to initiate pairing/bonding explicitly. However, when attempting to access a characteristic and that is prevented due to permissions, the iOS Bleutooth stack will initiate pairing/bonding. Did that not happen when you tested?&lt;/p&gt;
&lt;p&gt;Br,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>