<?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 the DFU example?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45595/how-to-use-the-dfu-example</link><description>hi,everyone 
 I want to run the DFU example in meshV3.1.0 . but i still can&amp;#39;t understader how to run it . below is my understanding: 
 1.ther are must have 2 devices , A device use serial interface communicate with PC , B device is the targer device to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Apr 2019 11:32:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45595/how-to-use-the-dfu-example" /><item><title>RE: how to use the DFU example?</title><link>https://devzone.nordicsemi.com/thread/180291?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2019 11:32:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0ae3bf3-c022-4d5b-9030-c06997ce62f9</guid><dc:creator>ycp</dc:creator><description>&lt;p&gt;1.thank you ,it works ! i change nothing just reboot the&amp;nbsp; device which connect to PC via serial&amp;nbsp; physically .&lt;/p&gt;
&lt;p&gt;&amp;nbsp; nrfutil version is 0.3.0.0 , python version is 2.7.16&lt;/p&gt;
&lt;p&gt;2.and I copy some code from example\dfu to light_switch_provisioner &amp;amp; server , it works too! but the cmd window does not show progress like 12% , but for all i think it is better then before .&lt;/p&gt;
&lt;p&gt;3.did both the devices upgraded? if I change the device application-id in json and generate and flash the device page again in device A, will device A act&amp;nbsp; to the DFU transfer too?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use the DFU example?</title><link>https://devzone.nordicsemi.com/thread/180259?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2019 10:24:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca8145e2-eeea-42ad-8c60-c4f7788c5c4f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;1: no. They do&amp;nbsp;not need provisioning for the DFU procedure to work. The phone can&amp;#39;t discover them because they do not advertise with the proxy service, which is used for the provisioning process.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2: Try the following:&lt;/p&gt;
&lt;p&gt;Before trying the troubleshooting: bootloader_verify, can you try to write nrfutil --verbose dfu serial -pkg &amp;lt;your DFU image.zip&amp;gt; -p &amp;lt;COM Port&amp;gt; -b 115200 -fc --mesh, like described right before the troubleshooting section here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/Mesh_SDK/v3-1-0/md_doc_getting_started_dfu_quick_start"&gt;https://www.nordicsemi.com/DocLib/Content/SDK_Doc/Mesh_SDK/v3-1-0/md_doc_getting_started_dfu_quick_start&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So add the &amp;quot;--verbose&amp;quot; argument.&lt;/p&gt;
&lt;p&gt;What does it say then?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When you try the bootloader_verify:&lt;/p&gt;
&lt;p&gt;can you check what python version you are using? Type &amp;quot;python --version&amp;quot; in your cmd window.&lt;/p&gt;
&lt;p&gt;also, what nrfutil version do you have?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Try: &amp;quot;nrfutil version&amp;quot; in your cmd window.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use the DFU example?</title><link>https://devzone.nordicsemi.com/thread/180197?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2019 08:21:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54e164c2-9909-4994-82ed-a30be08cbc06</guid><dc:creator>ycp</dc:creator><description>&lt;p&gt;1.I tryed this , but still not work . Flash the two devices with the same FW (example\dfu ), but they&amp;nbsp; both need to provision, are they? when I flash the example\dfu , the mobile phone app can not discover them.&lt;/p&gt;
&lt;p&gt;2.and I do the last step to see if the bootloader&amp;nbsp; is working correctly ? and it show not ok:&lt;/p&gt;
&lt;p&gt;i flash this &amp;quot; mesh_bootloader_serial_gccarmemb_nrf52832_xxAA.hex &amp;quot; ,&amp;nbsp; I use SES&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/651x259/__key/communityserver-discussions-components-files/4/0654.3.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use the DFU example?</title><link>https://devzone.nordicsemi.com/thread/180172?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2019 07:41:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bafcd701-d0e9-4ba4-b03d-44fd3c939182</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;1. Yes, but I believe you need to add some serial DFU part to this project.&lt;/p&gt;
&lt;p&gt;2. Yes, but you have to copy the correct parts.&lt;/p&gt;
&lt;p&gt;3. Yes. They do.&lt;/p&gt;
&lt;p&gt;1, 2 and 3: You also need to program the bootloader for this to work.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I suggest you try out &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/Mesh_SDK/v3-1-0/md_doc_getting_started_dfu_quick_start" rel="noopener noreferrer" target="_blank"&gt;this guide&lt;/a&gt; first, to get started. When you have everything up and running on the DFU front, you can try to merge the dfu parts and program the bootloader together with your custom application.&lt;/p&gt;
&lt;p&gt;You can flash two devices with the same FW in this guide, and push the update to one of them, and it will transfer it to the other over Mesh.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use the DFU example?</title><link>https://devzone.nordicsemi.com/thread/180140?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2019 04:07:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5c44905-6bc3-4478-a9a2-907cda4db817</guid><dc:creator>ycp</dc:creator><description>&lt;p&gt;thank you,it is useful,&lt;/p&gt;
&lt;p&gt;i use the right branch ,and the command line is works now! but when I transmit the PDU packet , it shows below:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/646x240/__key/communityserver-discussions-components-files/4/6330.2.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;1.the first board i burned the light_switc_provisioner&amp;nbsp; image,and used the serial interface,&lt;/p&gt;
&lt;p&gt;2.the second board i burned the light_switch_server image ,copy some code from example\dfu ,is that ok?&lt;/p&gt;
&lt;p&gt;3.do both need burned the same device_page.hex? and i am not use JLINK COM ,i use the tx/rx on chip&lt;/p&gt;
&lt;p&gt;&amp;nbsp;thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use the DFU example?</title><link>https://devzone.nordicsemi.com/thread/179538?ContentTypeID=1</link><pubDate>Mon, 01 Apr 2019 13:58:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1769c16-e4b6-4af9-bfb3-3392fe751691</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you test one thing for me:&lt;/p&gt;
&lt;p&gt;Can you type:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;nrfutil version&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;What does it say then?&lt;/p&gt;
&lt;p&gt;If you have the correct version (0.3.0.0 or something similar), then you should be able to use the command. I see that you are missing a &amp;quot;keys&amp;quot; in your command:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;nrfutil &lt;strong&gt;keys&lt;/strong&gt; --gen-key private_key.txt&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, it looks like you have installed the non-mesh version of nrfutil. If it says 5.1.0 or something similar, this is the non-mesh version. I suggest you uninstall this, and then install the mesh version of nrfutil, which you can find here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil/tree/mesh_dfu"&gt;https://github.com/NordicSemiconductor/pc-nrfutil/tree/mesh_dfu&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>