<?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>DFU not possible after enabling BT_SMP (for wifi provisioning)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106626/dfu-not-possible-after-enabling-bt_smp-for-wifi-provisioning</link><description>Hello, I have a working firmware supporting simultaneous DFU on the nrf5340 (on an nrf7002 dk). I added wifi provisioning to the firmware based on the provided sample . After setting everything up, I noticed I was not able to update the firmware with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Dec 2023 13:09:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106626/dfu-not-possible-after-enabling-bt_smp-for-wifi-provisioning" /><item><title>RE: DFU not possible after enabling BT_SMP (for wifi provisioning)</title><link>https://devzone.nordicsemi.com/thread/461574?ContentTypeID=1</link><pubDate>Fri, 22 Dec 2023 13:09:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:870c9db6-c327-4997-b556-f51b7da2e35b</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I will continue helping in this case.&lt;/p&gt;
&lt;p&gt;First, I will try a blind guess:&lt;br /&gt;Try &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/426213023e08965311421143ca3abe2ec25b39a4/samples/subsys/mgmt/mcumgr/smp_svr/overlay-bt.conf#L12"&gt;CONFIG_MCUMGR_TRANSPORT_BT_AUTHEN=n&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU not possible after enabling BT_SMP (for wifi provisioning)</title><link>https://devzone.nordicsemi.com/thread/461313?ContentTypeID=1</link><pubDate>Wed, 20 Dec 2023 15:16:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edd1fbac-ddaa-4f2a-aecc-f9b49d8b4ffc</guid><dc:creator>qrasmont</dc:creator><description>&lt;p&gt;Sure, I added the pair callbacks but that does not change the behavior I described above.&lt;br /&gt;&lt;br /&gt;Ideally I would like to have DFU working with the same setup as the provisioning sample meaning no passkey required.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/dfu_5F00_issue_5F00_smp2.zip"&gt;devzone.nordicsemi.com/.../dfu_5F00_issue_5F00_smp2.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU not possible after enabling BT_SMP (for wifi provisioning)</title><link>https://devzone.nordicsemi.com/thread/461306?ContentTypeID=1</link><pubDate>Wed, 20 Dec 2023 14:47:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f90c7fd-0d59-4ac9-b893-48d6c73c7d1f</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;The&amp;nbsp;provisioning sample demonstrates the pair without the passkey setting. seems your code missed the pair callback&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/3b4fdd9eb4c980f5320ad241e93a89957fb23e9a/samples/wifi/provisioning/src/main.c#L172-L190"&gt;https://github.com/nrfconnect/sdk-nrf/blob/3b4fdd9eb4c980f5320ad241e93a89957fb23e9a/samples/wifi/provisioning/src/main.c#L172-L190&lt;/a&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU not possible after enabling BT_SMP (for wifi provisioning)</title><link>https://devzone.nordicsemi.com/thread/461103?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2023 14:41:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a77dfab-a62e-42a9-88a0-460b84cc7af1</guid><dc:creator>qrasmont</dc:creator><description>&lt;p&gt;Here is an updated sample with the proper setup for SMP.&lt;br /&gt;Remove the setting of the passkey_display callback at line 73 of main.c and the package upload should be unsuccessful after pairing.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/dfu_5F00_issue_5F00_smp.zip"&gt;devzone.nordicsemi.com/.../dfu_5F00_issue_5F00_smp.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU not possible after enabling BT_SMP (for wifi provisioning)</title><link>https://devzone.nordicsemi.com/thread/461099?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2023 14:36:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5d9d767-9b90-489d-8711-e1dda25126fe</guid><dc:creator>qrasmont</dc:creator><description>&lt;p&gt;I forgot that I also had attempted to send the package using the &amp;quot;nRf Connect&amp;quot; app and it failed as well so guess any issue occurring here is not specific to the device manager app.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU not possible after enabling BT_SMP (for wifi provisioning)</title><link>https://devzone.nordicsemi.com/thread/461098?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2023 14:32:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cf9fa54-621b-4e31-97c8-2d3332bc4fb2</guid><dc:creator>qrasmont</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Thanks, I understand why some additional setup is needed when enabling&amp;nbsp;&lt;span&gt;CONFIG_BT_SMP.&lt;br /&gt;When&amp;nbsp;adding the necessary callbacks shown in the doc to the sample I provided, everything works as expected.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;Coming back in my code base where I use the wifi provisioning&amp;nbsp;service, I think I identified the issue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In the provisioning sample there is &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/3b4fdd9eb4c980f5320ad241e93a89957fb23e9a/samples/wifi/provisioning/src/main.c#L168"&gt;no&amp;nbsp;passkey_display callback set for in&amp;nbsp;bt_conn_auth_cb&lt;/a&gt;. If I set a callback I can successfully&amp;nbsp;send the DFU package after pairing.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But&amp;nbsp;this callback can be NULL for, as stated in the documentation, devices that are not able to display a passkey.&lt;br /&gt;So is it that pairing without passkey is not handled&amp;nbsp;properly by the device manager app ? Or maybe a limitation of my phone/Android version ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU not possible after enabling BT_SMP (for wifi provisioning)</title><link>https://devzone.nordicsemi.com/thread/460924?ContentTypeID=1</link><pubDate>Mon, 18 Dec 2023 21:25:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7116cc7b-d867-4e1c-bc58-f47d5601be15</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The CONFIG_BT_SMP would enable support for the Security Manager Protocol (SMP), making it possible to pair devices over LE. It also needs the setting with the code.&amp;nbsp;Please take a look&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;https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-5-bluetooth-le-security-fundamentals/topic/blefund-lesson-5-exercise-1/&lt;/a&gt;&amp;nbsp;for the setting.&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: DFU not possible after enabling BT_SMP (for wifi provisioning)</title><link>https://devzone.nordicsemi.com/thread/460620?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2023 15:40:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c12e976-a058-49dd-a5ab-e9b9a08c8db4</guid><dc:creator>qrasmont</dc:creator><description>&lt;p&gt;Sure the DFU configuration is based on &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/nrf5340/mcuboot_smp_ble_simultaneous"&gt;this sample&lt;/a&gt;. The main difference being that my config accounts for the fact that the external flash is connected over SPI and not QSPI on the nrf7002 dk.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve made&amp;nbsp;the following project with the minimal setup to reproduce the issue I have described.&lt;br /&gt;With&amp;nbsp;CONFIG_BT_SMP=y at line 54 of the prj.conf the issue should be reproducible (immediate disconnect after pairing).&lt;br /&gt;Comment this same line and the image should uploaded properly.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/dfu_5F00_issue.zip"&gt;devzone.nordicsemi.com/.../dfu_5F00_issue.zip&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Build command:&amp;nbsp;west build -b nrf7002dk_nrf5340_cpuapp&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU not possible after enabling BT_SMP (for wifi provisioning)</title><link>https://devzone.nordicsemi.com/thread/460604?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2023 14:56:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f809a32f-51c4-48e9-876f-71c2b14eb2ac</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you provide the details about implementing the DFU?&lt;/p&gt;
&lt;p&gt;Is it possible to provide the project?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>