<?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>Switching between bluetooth mesh stack and Matter stack using DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104300/switching-between-bluetooth-mesh-stack-and-matter-stack-using-dfu</link><description>Hi! I&amp;#39;m currently working on a product that uses the bluetooth mesh stack with DFU support. It&amp;#39;s using the older version 1 of the sdk and we are currently migrating to the zephyr based nrf connect sdk 2.4.*. In the future we want to support upgrading</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Oct 2023 11:48:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104300/switching-between-bluetooth-mesh-stack-and-matter-stack-using-dfu" /><item><title>RE: Switching between bluetooth mesh stack and Matter stack using DFU</title><link>https://devzone.nordicsemi.com/thread/449159?ContentTypeID=1</link><pubDate>Fri, 06 Oct 2023 11:48:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03aa9b2a-d630-4b45-8134-8e78e96ff2c8</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;It&amp;#39;s good to hear that you have got what you needed.&lt;/p&gt;
[quote user="isactornberg"]Also good point about reserving some space for the two different settings to be able to preserve state between switching between the different kind of applications.[/quote]
&lt;p&gt;Credits to my kind colleague,&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;&amp;nbsp;, for helping me come to that solution. I was so focused on having both applications sharing one Zephyr Settings partition and considering what might happen that I&amp;nbsp;was oblivious to the possibility that it can work as two independent applications sharing one hardware.&lt;/p&gt;
[quote user="isactornberg"]I will probably start with the simplest possible solution, basically using the concrete example given by&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/nlorami"&gt;nLorami&lt;/a&gt;&amp;nbsp;(Thanks!), which as I understand will override the settings between DFUs and not persist any states between switching.[/quote]
&lt;p&gt;Sounds like a good plan. Please don&amp;#39;t hesitate return if you have any other questions on the topic or open a new DevZone case if it is a new question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Switching between bluetooth mesh stack and Matter stack using DFU</title><link>https://devzone.nordicsemi.com/thread/449119?ContentTypeID=1</link><pubDate>Fri, 06 Oct 2023 07:15:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ccffb83-e5a1-45be-848d-e5f00f4b4e37</guid><dc:creator>isactornberg</dc:creator><description>&lt;p&gt;Awesome, really appreciate the&amp;nbsp;help&amp;nbsp;&lt;span style="background-color:#eeeeee;"&gt;Hieu&lt;/span&gt;!&lt;br /&gt;&lt;br /&gt;I think I will try to finish the porting to the&amp;nbsp;zephyr based bluetooth mesh application&amp;nbsp;before testing out running&amp;nbsp;the two stacks in the same applications. But in the long term running them in the same application would definitely be something I would like to explore, not sure what kind of priority it will have since my schedule is quite packed as well currently. Will definitely get back to you if I start testing things out.&lt;br /&gt;&lt;br /&gt;Regarding switching between the two applications I totally missed that they both will&amp;nbsp;can run with the same MCUboot bootloader, thanks for pointing it out. :) &lt;br /&gt;Also good point about reserving some space for the two different settings to be able to preserve state between switching between the different kind of applications.&lt;br /&gt;&lt;br /&gt;I will probably start with the simplest possible solution, basically using the concrete example given by&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/nlorami"&gt;Lorenzo Amicucci&lt;/a&gt;&amp;nbsp;(Thanks!), which as I understand will override the settings between DFUs and not persist any states between switching.&lt;br /&gt;&lt;br /&gt;(Edit) Btw I&amp;#39;m totally fine with running the DFU over BLE as of now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Switching between bluetooth mesh stack and Matter stack using DFU</title><link>https://devzone.nordicsemi.com/thread/448944?ContentTypeID=1</link><pubDate>Thu, 05 Oct 2023 07:57:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65afef93-c189-44b3-b4f7-e969d3e32ea8</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/nlorami"&gt;Lorenzo Amicucci&lt;/a&gt;&amp;nbsp;Thank you for pointing out the Thingy53 solution. Yes,&amp;nbsp;it supports DFU via bootloader&amp;#39;s serial recovery feature, or BLE DFU, and can easily swap between applications of any protocols.&lt;/p&gt;
&lt;p&gt;The caveat with the &lt;em&gt;default&lt;/em&gt; Thingy53 setup as is after being DFU&amp;#39;d away, an application, says Mesh, won&amp;#39;t be able to retain its persistent data like its provisioning data. That is the reason behind my mentioned of reserving partitions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Switching between bluetooth mesh stack and Matter stack using DFU</title><link>https://devzone.nordicsemi.com/thread/448940?ContentTypeID=1</link><pubDate>Thu, 05 Oct 2023 07:32:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65166ca7-7ce6-4307-b0cb-1416a20fb5ac</guid><dc:creator>Lorenzo Amicucci</dc:creator><description>&lt;p&gt;one comment from me:&amp;nbsp;&lt;br /&gt;if you want to see how we did it on the Thingy:53, here the material. In this case, we can change from Matter weather station to other Bluetooth Mesh samples over BLE.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.nordicsemi.com/Products/Development-hardware/Nordic-Thingy-53"&gt;Thingy:53&lt;/a&gt;:&lt;ul&gt;
&lt;li&gt;It support out of &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/device_guides/working_with_nrf/nrf53/thingy53.html#samples-and-applications-for-thingy-53-with-fota-out-of-the-box"&gt;the box BT Mesh and Matter samples&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Connect the Thingy over BLE to the smartphone (&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-programmer"&gt;nRF Programmer for thingy 53&lt;/a&gt;), and DFU it with the application you wish&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Switching between bluetooth mesh stack and Matter stack using DFU</title><link>https://devzone.nordicsemi.com/thread/448867?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2023 15:20:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4ca2b56-a80d-43d9-aa5c-5d9dc6873d8a</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi isactomberc,&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;had liked to actually combine a Matter and Bluetooth Mesh together to see if the total size still fit a nRF52840. However, there are some sudden changes to my schedule, and it looks like I cannot get to that soon.&lt;/p&gt;
&lt;p&gt;Would you like to give it a try?&amp;nbsp;8MB of external flash is plenty to put the downloaded firmware on. However, both the Matter and Bluetooth Mesh stack are large. I am not sure it can fit on the nRF52840.&lt;/p&gt;
&lt;p&gt;Regarding switching between the Matter and Bluetooth Mesh via DFU, if you only want one of them active at a time, then that should be possible. I understand that you are new to the nRF Connect SDK, but a few things you will want to note are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Use external flash for DFU secondary slot if possible, that enable the more space on internal flash for the active firmware.&lt;/li&gt;
&lt;li&gt;Both Mesh and Matter uses Zephyr Settings, so&amp;nbsp;on the (preferably internal) flash memory, you need to reserve two partitions, one for the Mesh application, and one for the Matter application.
&lt;ul&gt;
&lt;li&gt;This is unless you want the two applications to somehow share some other Zephyr Settings. This can get complicated, and I am not sure if it is possible at the moment.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;The DFU&amp;nbsp;feature provides an option to &amp;quot;test&amp;quot; the new firmware, where if it satisfies certain condition, it can then be &amp;quot;confirmed.&amp;quot;&lt;br /&gt;For common applications staying on one protocol, then a remote device can perform some wireless communication test, and then trigger the confirm remotely.&lt;br /&gt;As you are switching protocol, this remote confirmation can get complicated.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For more information about the MCUboot bootloader, you can refer to:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/design.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/design.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Finally, regarding&amp;nbsp;DFU over Bluetooth Mesh, the support is currently experimental. Furthermore, the&amp;nbsp;DFU feature is defined in Mesh Protocol specification v1.1, which as of now is in draft and not published. I need to check with our Mesh expert to see if the inclusion of this feature would prevent a product for qualifying for Mesh 1.0. However, this too is affected by the&amp;nbsp;emergencies in my schedule.&lt;/p&gt;
&lt;p&gt;However, we also provide DFU over BLE in coexistence with Bluetooth Mesh. That is for sure&amp;nbsp;not going to affect Bluetooth qualification.&lt;/p&gt;
&lt;p&gt;I will get back to you on the detail of DFU over Bluetooth Mesh. Please let me know if you can give combining Matter and Mesh a try.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Switching between bluetooth mesh stack and Matter stack using DFU</title><link>https://devzone.nordicsemi.com/thread/448571?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2023 18:18:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff8c4448-6499-4633-bd03-ad52d5a122d7</guid><dc:creator>isactornberg</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;br /&gt;&lt;br /&gt;Thanks for the quick reply.&lt;br /&gt;&lt;br /&gt;Good question. We are mainly looking to support switching between the&amp;nbsp;Matter and Bluetooth Mesh via DFU, not running them as a coexisting application,&amp;nbsp;however&amp;nbsp;that would be really cool if that would be possible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Switching between bluetooth mesh stack and Matter stack using DFU</title><link>https://devzone.nordicsemi.com/thread/448489?ContentTypeID=1</link><pubDate>Mon, 02 Oct 2023 11:10:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7420596-bc5d-4dd3-a9b9-aedbd032c0f1</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi isactornberg,&lt;/p&gt;
&lt;p&gt;I would like a clarification.&amp;nbsp;Is your eventual goal having a device that can swap between a Matter and a Bluetooth Mesh application via DFU? Or is your goal having a Matter + Bluetooth Mesh coexisting application?&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>