<?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>NUS &amp;amp; BLE Security</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119253/nus-ble-security</link><description>Hello, 
 I&amp;#39;m exploring the possibilities of implementing the Nordic UART Service but am having trouble understanding its security functionalities. I have a few questions: 
 In the ble_app_uart example from the nRF5 SDK v16.0.0, is there no implementation</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Mar 2025 12:12:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119253/nus-ble-security" /><item><title>RE: NUS &amp; BLE Security</title><link>https://devzone.nordicsemi.com/thread/525969?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2025 12:12:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27c9202f-6ed5-46c1-9bc5-882530079068</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;There is not any other way than to add the missing dependencies. I can help with this if you are able to share your project.&lt;/p&gt;
[quote user="soprom"]everything exactly like the example to get it working.[/quote]
&lt;p&gt;Did you manage to resolve the missing dependencies or not?&lt;/p&gt;
[quote user="soprom"]Also, does the legacy Just Works version require the same dependencies? Does it have the same level of security as the LESC Just Works?[/quote]
&lt;p&gt;Legacy pairing requires fewer&amp;nbsp;dependencies&amp;nbsp;but is also less secure.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS &amp; BLE Security</title><link>https://devzone.nordicsemi.com/thread/525885?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2025 08:44:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbc80a99-3a67-4f65-8dd8-bcdb657ac91a</guid><dc:creator>soprom</dc:creator><description>&lt;p data-start="68" data-end="74"&gt;Hello,&lt;/p&gt;
&lt;p data-start="76" data-end="346"&gt;I couldn&amp;#39;t get it to work with just these changes. I encountered many errors, and each time, I had to add a new module to the config or include additional source files in the Makefile. In the end, I had to structure everything exactly like the example to get it working.&lt;/p&gt;
&lt;p data-start="348" data-end="382"&gt;Do you have any other suggestions?&lt;/p&gt;
&lt;p data-start="384" data-end="508"&gt;Also, does the legacy Just Works version require the same dependencies? Does it have the same level of security as the LESC Just Works?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS &amp; BLE Security</title><link>https://devzone.nordicsemi.com/thread/524786?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2025 11:02:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8b4552d-c687-4424-8758-7ffd18b67894</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You need the peer manager module and its dependencies in addition to fds and fstorage to allow for persistent storage of bonds in flash.&amp;nbsp;&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/pastedimage1740567673886v1.png" alt=" " /&gt;&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/pastedimage1740567704538v2.png" alt=" " /&gt;&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/pastedimage1740567730503v3.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS &amp; BLE Security</title><link>https://devzone.nordicsemi.com/thread/524593?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2025 12:56:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bd8d42e-87d5-46c5-b580-ae7ab1752dba</guid><dc:creator>soprom</dc:creator><description>&lt;p data-start="54" data-end="61"&gt;Hello,&lt;/p&gt;
&lt;p data-start="63" data-end="91"&gt;Thank you for your response.&lt;/p&gt;
&lt;p data-start="93" data-end="346"&gt;The situation is that we already have an existing project that uses the NUS (Nordic UART Service), and now we simply want to add BLE security. Since the device doesn&amp;#39;t have input or output capabilities, LESC Just Works seems like the only viable option.&lt;/p&gt;
&lt;p data-start="348" data-end="614"&gt;I reviewed the &lt;code data-start="363" data-end="376"&gt;ble_app_hrs&lt;/code&gt; example as you suggested, and I attempted to integrate it into our project. However, there are many new defines and source/include files. When I add all the necessary defines and files to the makefile of the project, I encounter memory overflow errors.&lt;/p&gt;
&lt;p data-start="616" data-end="742"&gt;Is there a way to identify which specific defines and files are necessary for LESC Just Works, and which ones can be excluded?&lt;/p&gt;
&lt;p data-start="744" data-end="757"&gt;Best regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS &amp; BLE Security</title><link>https://devzone.nordicsemi.com/thread/524285?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 09:56:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe1f75ec-5376-4828-ba8f-b728a35189a7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You are correct, the ble_app_uart example does not implement any BLE security. From the BLE event handler you can see that it will reject any security requests&amp;nbsp;received by the peer device.&amp;nbsp;&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/pastedimage1740390850623v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If you want to support BLE security, I would recommend you use another example such as ble_app_hrs as a starting point instead. It is easier to integrate the NUS service with another example, than it is to include the security dependencies (peer manager, fds, fstorage) in ble_app_uart. You should also patch the nus.c implementation to increase the required security level on the characteristics.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>