<?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>Mesh DFU transfer self hosted</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93427/mesh-dfu-transfer-self-hosted</link><description>Hi there, 
 
 The Mesh DFU on my project is so far working, but as stated on the bootloader read me, the process need to initiated and crontrolled by another extrenal entity. 
 
 Is there a possibility for a self hosted DFU transfer? 
 In a first stage</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Jan 2023 13:33:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93427/mesh-dfu-transfer-self-hosted" /><item><title>RE: Mesh DFU transfer self hosted</title><link>https://devzone.nordicsemi.com/thread/403863?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 13:33:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe7aefd4-f1a9-4a04-a2c4-78a6a98ae089</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi SirBuhi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Apologies for the long response time. It took some time to find the correct people who might&amp;#39;ve had some input on this. Unfortunately I haven&amp;#39;t uncovered any good news..&lt;/p&gt;
[quote user="SirBuhi"]Yes, Version &amp;quot;nRF5 SDK for Mesh v5.0.0&amp;quot; is the one that we already have implemented in the project and would like to use now.[/quote]
&lt;p&gt;First of I would like to move back to this statement in the early days of this case and more explicitly state something that I&amp;#39;ve only implied previously, which is that we typically recommend new(er) projects to be developed with nRF Connect SDK instead of nRF5 SDK due to support available for the SDKs. I know that SDK5 for Mesh is the only one that currently supports DFU, but you might be better of with nRF Connect SDK instead nonetheless. You&amp;#39;re however free to use nRF5 SDK for Mesh if that is what you want&lt;/p&gt;
&lt;p&gt;As for your latest questions: As I&amp;#39;ve stated we think that this is possible, and that the nrfutil source code be a good source to follow, but as you&amp;#39;re going quite out of the scope of how DFU is intended to be used with Bluetooth Mesh, we&amp;#39;re limited to how we can support this other than having a look at nrfutil:&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil"&gt;https://github.com/NordicSemiconductor/pc-nrfutil&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Again, apologies for the little help we&amp;#39;re able to give you with this project.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU transfer self hosted</title><link>https://devzone.nordicsemi.com/thread/401493?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2022 11:37:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15d703f4-2a1b-4c6d-a8d0-d6282d2f0ab5</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I will look into it! However we&amp;#39;re going into the Christmas holiday period here in Norway now so I will be on and off work until the first week of January, so the response time might be a bit longer than usual.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I hope this does not cause too much of an issue for you.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU transfer self hosted</title><link>https://devzone.nordicsemi.com/thread/401306?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2022 14:26:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dedb7b5a-c6a4-427c-8e6d-014caf3b7f98</guid><dc:creator>SirBuhi</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;m currently struggling a bit with my self hosted mesh dfu.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Currently I can do a self hosted DFU via the UART. Which means that I have the code for the deployment running in the application and send it out over the app uart. The TX pin of the app uart is physically connected to the RX of the serial interface. Like that all is running as wished.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Since that is not the preferred option, I&amp;rsquo;m looking for an integrated version, without using the UART part.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For that I do send my DFU data directly to the nrf_mesh_dfu_rx() function. Somewhere down the line of the nrf_mesh_dfu_rx() function the time_sch_reschedule() function of the timer_schedule.c file gets called and in there the bearer_event_in_correct_irq_priority(). Where somehow the problem lies.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Case Mesh Init IRQ Priority: NRF_MESH_IRQ_PRIORITY_LOWEST&lt;/p&gt;
&lt;p&gt;If I initialize the mesh with the priority level NRF_MESH_IRQ_PRIORITY_LOWEST the DFU can be received via UART connection (host) and BLE connection (target). However, I get an mesh error while calling the nrf_mesh_dfu_rx() function to inject data.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Case Mesh Init IRQ Priority: NRF_MESH_IRQ_PRIORITY_THREAD&lt;/p&gt;
&lt;p&gt;If the mesh is initialized with the priority level NRF_MESH_IRQ_PRIORITY_THREAD I can send now data to the nrf_mesh_dfu_rx() function and the host board updates itself. But, the DFU data does not get transmitted to the other boards over BLE. As well as it is not possible anymore to update the board via the Serial UART interface. It looks for me, as this settings changes more than wished.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you maybe give me a hint in which direction to search, to get it running?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;SirBuhi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU transfer self hosted</title><link>https://devzone.nordicsemi.com/thread/395509?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2022 10:15:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7916b07-fc28-4a5a-8ff3-2c8bed63c949</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Apologies for the delayed response, I&amp;#39;ve been out of office last week due to a fever.&lt;/p&gt;
&lt;p&gt;Unfortunately I&amp;#39;ve not found any other resources, samples or guides for how to create this specific DFU variation than the Mesh DFU sample with its&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v5.0.0/md_doc_user_guide_modules_dfu_protocol.html"&gt;propriatary mesh dfu protocol&lt;/a&gt;&amp;nbsp;documentation. The challenges that I&amp;#39;ve mentioned in my earlier reply are still valid, but the Mesh team commented that the procedure you suggested earlier sounds like the correct way to move forward.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU transfer self hosted</title><link>https://devzone.nordicsemi.com/thread/394163?ContentTypeID=1</link><pubDate>Fri, 04 Nov 2022 13:26:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d32184a3-8878-43c3-b360-475465b7c852</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I will have to do some more investigation throughout the coming week, but I don&amp;#39;t think we have any other information/resources than what I&amp;#39;ve supplied here for how to do this. I&amp;#39;ll get back to you as soon as I know if I can give you some more information&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU transfer self hosted</title><link>https://devzone.nordicsemi.com/thread/394048?ContentTypeID=1</link><pubDate>Fri, 04 Nov 2022 06:21:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ac71191-9718-4cdc-a0bb-4aeb72e32bf0</guid><dc:creator>SirBuhi</dc:creator><description>&lt;p&gt;Yes, Version &amp;quot;nRF5 SDK for Mesh v5.0.0&amp;quot; is the one that we already have implemented in the project and would like to use now.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Patrick&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU transfer self hosted</title><link>https://devzone.nordicsemi.com/thread/393918?ContentTypeID=1</link><pubDate>Thu, 03 Nov 2022 13:54:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7db88a4-ae4b-4284-94e5-38e2182802ff</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Thank you for clarifying,&lt;/p&gt;
&lt;p&gt;I have a follow up question: Since you&amp;#39;re working with DFU for Mesh, I&amp;#39;m assuming you&amp;#39;re using nRF SDK 5 for Mesh. Could you verify and specify which version?&lt;/p&gt;
[quote user="SirBuhi"]Do you think that it will be possible?[/quote]
&lt;p&gt;We believe it should be possible, but that it might be difficult to do so. There is a significant challenge in creating the node and algorithm which distributes the update chunks to the mesh network (i.e the DFU source, a similar task to what nrfutil does for Mesh DFU). Unfortunately we will most likely not implement a DFU source functionality for nRF5 SDK for Mesh, and in NCS the current Mesh specification does not support DFU.&lt;/p&gt;
&lt;p&gt;I would recommend you investigate the DFU protocol supplied I previously linked to as well as the Mesh DFU-sample we have in nrf5 SDK for Mesh:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v5.0.0/md_examples_dfu_README.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v5.0.0/md_examples_dfu_README.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU transfer self hosted</title><link>https://devzone.nordicsemi.com/thread/393753?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 20:14:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b703467-f1a0-48d9-9d0e-e72107fc0147</guid><dc:creator>SirBuhi</dc:creator><description>&lt;p&gt;Dear Andreas,&lt;/p&gt;
&lt;p&gt;Unfortunately the LTE-device is given and&amp;nbsp;I can&amp;#39;t use its MCU.&lt;/p&gt;
&lt;p&gt;Therefore the idea is to control the mesh DFU from a source that is going to be updated itself&amp;nbsp;during the&amp;nbsp;background DFU operation.&lt;/p&gt;
&lt;p&gt;At the moment I&amp;#39;m thinking about using the nRF Util Tool for the DevicePage, Initial Flashing and creation of the zip file for the Mesh DFU process. The three necessary files will then be loaded into memory where the nRF52840 can access them.&lt;/p&gt;
&lt;p&gt;The control of the DFU process will then be implemented in the application part.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do you think that it will be possible?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;SirBuhi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU transfer self hosted</title><link>https://devzone.nordicsemi.com/thread/393650?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 12:41:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c075e90c-811b-45dd-a519-1f8b7c8596ce</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;This might be possible, but unfortunately we don&amp;#39;t have anything but pointers to you for how to do this. If you&amp;#39;re controlling the procedure from another MCU, we have the protocol description here:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v5.0.0%2Fmd_doc_user_guide_modules_dfu_protocol.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v5.0.0%2Fmd_doc_user_guide_modules_dfu_protocol.html&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Are you expecting to control the DFU procedure from a source that is going to be updated itself, or are you doing this from the LTE-device (for instance a nRF91-based device)?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>