<?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 use CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW_AUTHEN</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119543/how-to-use-config_mcumgr_transport_bt_perm_rw_authen</link><description>Hello. 
 I am trying DFU with reference to DevAcademy Lesson 9 . I am glad to see that it has been updated for v2.7.0 - v2.9.0. I am interested in the following settings. 
 Also, it’s highly recommended to authenticate and encrypt the connection where</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Mar 2025 06:39:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119543/how-to-use-config_mcumgr_transport_bt_perm_rw_authen" /><item><title>RE: How to use CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW_AUTHEN</title><link>https://devzone.nordicsemi.com/thread/526675?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 06:39:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55a27403-578a-4159-bf0a-cd475bc40dcb</guid><dc:creator>a.da</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi&amp;nbsp;&lt;/span&gt;&lt;span&gt;Abhijith,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;By porting the authentication mechanism from the Peripheral LBS Sample, I was able to confirm that authentication is required before DFU in other samples as well.&lt;br /&gt;I will try other authentication mechanisms as well.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for your support.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;a.da&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW_AUTHEN</title><link>https://devzone.nordicsemi.com/thread/526493?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2025 09:00:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85997dda-4d25-4045-a6f8-89f67ab42069</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="a.da"]First, I must apologize. I was using the wrong sample as the base.&lt;br /&gt;&lt;span&gt;(I was using another sample that I frequently use instead of the Peripheral LBS Sample.)&lt;/span&gt;&lt;br /&gt;I am truly sorry for taking up your unnecessary time.[/quote]
&lt;p&gt;No worries&lt;/p&gt;
[quote user="a.da"]Part of this authentication logic is within the main.c of the Peripheral LBS Sample.[/quote]
&lt;p&gt;Yes, that is true. If you look at the main.c file of the peripheral_lbs sample, you can see that&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/bluetooth/peripheral_lbs/src/main.c#L71"&gt; &lt;code&gt;CONFIG_BT_LBS_SECURITY_ENABLED&lt;/code&gt;&lt;/a&gt; is defined. This configuration changes the authentication mechanism when enabled. However, this authentication is only for the normal LBS connection. If you enable &lt;code&gt;CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW_AUTHEN&lt;/code&gt;, DFU will require authentication before allowing firmware updates.&lt;/p&gt;
&lt;p&gt;For passkey display, &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/bluetooth/peripheral_lbs/src/main.c#L97C13-L97C22"&gt;auth_passkey_display()&lt;/a&gt;&amp;nbsp;is used. Also, see the&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/bluetooth/peripheral_lbs/src/main.c#L134"&gt; authentication callback&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW_AUTHEN</title><link>https://devzone.nordicsemi.com/thread/526271?ContentTypeID=1</link><pubDate>Fri, 07 Mar 2025 02:36:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66ec0a06-986a-45fc-9abe-2b9ca27e8c66</guid><dc:creator>a.da</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Abhijith,&amp;nbsp;thanks for your reply.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;First, I must apologize. I was using the wrong sample as the base.&lt;br /&gt;&lt;span&gt;(I was using another sample that I frequently use instead of the Peripheral LBS Sample.)&lt;/span&gt;&lt;br /&gt;I am truly sorry for taking up your unnecessary time.&lt;/p&gt;
&lt;p&gt;Please allow me to confirm if my understanding is correct.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Part of this authentication logic is within the main.c of the Peripheral LBS Sample.&lt;/li&gt;
&lt;li&gt;To enable authentication in other samples or custom projects, it is necessary to separately adapt and modify the logic from the Peripheral LBS Sample.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;I mistakenly thought that simply enabling CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW_AUTHEN would activate the authentication logic within the SDK.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;a.da&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW_AUTHEN</title><link>https://devzone.nordicsemi.com/thread/526180?ContentTypeID=1</link><pubDate>Thu, 06 Mar 2025 13:11:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35356e70-65c4-4838-8e2c-2254a3ee0345</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I tried that exercise just now, and it is working fine on my side. After selecting the swap type &amp;quot;Test and Confirm,&amp;quot; you will receive a pairing and connection request, where you will be prompted to enter the passcode generated in the serial terminal. I am attaching a screenshot that I received while testing the exercise.&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/pastedimage1741266474586v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&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/pastedimage1741266565540v2.jpeg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I used nrf5340dk and NCS v2.9.0&lt;/p&gt;
&lt;p&gt;Do you have any logs showing any issue from the nRF device?&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>