<?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>OTA Mesh DFU Example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38953/ota-mesh-dfu-example</link><description>I see there is a serial bootloader dfu example, however I am unable to find an OTA Mesh DFU example. 
 How can I exercise the Mesh DFU OTA (not via serial connection) in side-by-side mode? 
 
 Is the DFU quick start guide in the info center supposed to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 Oct 2018 06:27:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38953/ota-mesh-dfu-example" /><item><title>RE: OTA Mesh DFU Example</title><link>https://devzone.nordicsemi.com/thread/150876?ContentTypeID=1</link><pubDate>Mon, 01 Oct 2018 06:27:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afc57cf1-3998-49bd-b80b-7136c35ffa0f</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Yes, it should be &lt;span&gt;0x00A8&lt;/span&gt; if you have SoftDevice S132 version 6.0.0. &lt;strong&gt;--sd-req&lt;/strong&gt; have to match the SoftDevice version. I think this is a typo in the dfu quick start guide.&lt;/p&gt;
&lt;p&gt;I think this is the reason the DFU failed.&lt;/p&gt;
&lt;p&gt;Mesh DFu does not work outside of a provisioned mesh network. This is because of what provisioning does:&lt;/p&gt;
&lt;p&gt;- The devices know each other exists.&lt;/p&gt;
&lt;p&gt;- The devices share an encryption key.&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA Mesh DFU Example</title><link>https://devzone.nordicsemi.com/thread/150830?ContentTypeID=1</link><pubDate>Fri, 28 Sep 2018 17:54:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e7fdf53-2f6a-459a-aec2-60fc31585b95</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;In the quick start guide, the example&amp;nbsp;for creating the DFU archive for&amp;nbsp;&lt;span&gt;nrf52832_xxAA_s132_6.0.0 has the --sd-req parameter as&amp;nbsp;0x009D.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;For nRF52:
mesh-sdk$ nrfutil dfu genpkg --application bin/blinky/blinky_nrf52832_xxAA_s132_6.0.0.hex \
    --company-id 0x00000059 \
    --application-id 1 \
    --application-version 2 \
    --key-file private_key.txt \
    --sd-req 0x009D \
    --mesh dfu_test.zip&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is this correct?&amp;nbsp; Looking at the python script, shouldn&amp;#39;t it be 0x00A8?&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;                   &amp;#39;\n|s132_nrf52_5.0.0|0x9D|&amp;#39;
                   &amp;#39;\n|s132_nrf52_5.1.0|0xA5|&amp;#39;
                   &amp;#39;\n|s132_nrf52_6.0.0|0xA8|&amp;#39;
                   &amp;#39;\n|s132_nrf52_6.1.0|0xAF|&amp;#39;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m still having trouble getting the serial DFU work correctly.&lt;br /&gt;When I run the &lt;strong&gt;nrfutil&lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;&lt;span class="s1"&gt;&amp;nbsp;dfu serial&lt;/span&gt;&lt;/strong&gt;&lt;span class="s1"&gt; command on my mac, it hangs here:&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;strong&gt;&lt;span class="s1"&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;[------------------------------------]&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;1%&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;0d 00:11:50&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="s1"&gt;&lt;strong&gt;&lt;/strong&gt;When I run on windows, i get:&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;strong&gt;[------------------------------------] 1% 00:11:48&lt;/strong&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;strong&gt;Failed to upgrade target. Error is: Device returned status code ERROR_INVALID_DATA (135) on a DFU data packet.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using the prebuilt hex files in the mesh SDK for the serial bootloader and dfu example.&lt;/p&gt;
&lt;p&gt;The only thing different is that I&amp;#39;ve used our company id in the data page generation and in the dfu archive generation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA Mesh DFU Example</title><link>https://devzone.nordicsemi.com/thread/150781?ContentTypeID=1</link><pubDate>Fri, 28 Sep 2018 00:23:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4563053-8e8c-46a2-a418-89f5eb169317</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;the mesh branch helped me get passed the nrfutil errors i was getting, thanks!&amp;nbsp; not sure how i missed that in the guide.&lt;/p&gt;
&lt;p&gt;does the mesh OTA dfu work outside of a provisioned mesh network?&amp;nbsp; in other words, can an unprovisioned device&amp;nbsp;send out an OTA firmware update to a provisioned device?&lt;br /&gt;i&amp;#39;m still not quite clear on the process.&lt;br /&gt;are you aware of any documentation that does a good job of explaining mesh OTA dfu?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA Mesh DFU Example</title><link>https://devzone.nordicsemi.com/thread/150763?ContentTypeID=1</link><pubDate>Thu, 27 Sep 2018 16:49:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18458767-cb98-480c-b711-b9d6c02d4bf9</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;thanks, i did not see the mesh branch in github.&amp;nbsp; i will give that a try&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA Mesh DFU Example</title><link>https://devzone.nordicsemi.com/thread/150580?ContentTypeID=1</link><pubDate>Thu, 27 Sep 2018 05:39:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fc3faea-d211-479c-9225-e2dcb8e36d1f</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Is &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v2.2.0/md_doc_getting_started_dfu_quick_start.html"&gt;this the quick start guide&lt;/a&gt; you&amp;#39;re looking at?&lt;/p&gt;
&lt;p&gt;The quick start guide demonstrates DFU over-the-air, but you first have to upload the DFU to one device.&lt;/p&gt;
&lt;p&gt;This requires a special version of &lt;strong&gt;nrfutil&lt;/strong&gt; when you want to apply command such as &lt;strong&gt;genpkg&lt;/strong&gt; and &lt;strong&gt;--mesh&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;This version can be found on GitHub &lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil/tree/mesh_dfu"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To have both versions installed I did the following:&lt;/p&gt;
&lt;p&gt;1. I moved the already installed &lt;strong&gt;&amp;quot;nrfutil.exe&amp;quot;&lt;/strong&gt; file from the &lt;strong&gt;\Python27\Scripts&lt;/strong&gt; folder to my desktop.&lt;/p&gt;
&lt;p&gt;2. I downloaded the &lt;strong&gt;&lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil/tree/mesh_dfu"&gt;mesh dfu nrfutil&lt;/a&gt;&lt;/strong&gt; version from GitHub.&lt;/p&gt;
&lt;p&gt;3. I did &lt;strong&gt;all the prerequisites:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;To install nrfutil the following prerequisites must be satisfied:

    Python 2.7 (2.7.6 or newer, not Python 3)
    pip (https://pip.pypa.io/en/stable/installing.html)
    setuptools (upgrade to latest version: pip install -U setuptools)
    install required modules: pip install -r requirements.txt

py2exe prerequisites (Windows only):

    py2exe (Windows only) (v0.6.9) (pip install http://sourceforge.net/projects/py2exe/files/latest/download?source=files)
    VC compiler for Python (Windows only) (http://www.microsoft.com/en-us/download/confirmation.aspx?id=44266)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;4. I followed the installation steps on GitHub.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;To install the library to the local Python site-packages and script folder:
python setup.py install
To generate a self-contained Windows exe version of the utility (Windows only):
python setup.py py2exe
NOTE: Some anti-virus programs will stop py2exe from executing correctly when it modifies the .exe file.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;5. When i was finished with the installation, I opened the &lt;strong&gt;\Python27\Scripts&lt;/strong&gt; folder and renamed the two files &amp;quot;&lt;strong&gt;nrfutil.exe&lt;/strong&gt;&amp;quot; and &amp;quot;&lt;strong&gt;nrfutil-script.py&lt;/strong&gt;&amp;quot; to &amp;quot;&lt;strong&gt;nrfutilmesh.exe&lt;/strong&gt;&amp;quot; and &amp;quot;&lt;strong&gt;nrfutilmesh-script.py&lt;/strong&gt;&amp;quot;.&lt;/p&gt;
&lt;p&gt;6. I then moved the &lt;strong&gt;&amp;quot;nrfutil.exe&amp;quot;&lt;/strong&gt; file from step 1, from my desktop back to the &lt;strong&gt;\Python27\Scripts&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;This gave me the following output for &lt;strong&gt;nrfutil.exe&lt;/strong&gt; and &lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;nrfutilmesh.exe&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-9796b4e9326542578558ff421e72e52a/pastedimage1538025892362v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;You can see that there are now two versions of nrfutil, with different options.&lt;/p&gt;
&lt;p&gt;You should be able to follow the &lt;strong&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v2.2.0/md_doc_getting_started_dfu_quick_start.html"&gt;mesh DFU quick start guide&lt;/a&gt;&lt;/strong&gt; with the right version of nrfutil.&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>