<?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>Slow DFU using nrfutil</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69591/slow-dfu-using-nrfutil</link><description>Hi, 
 I am preparing Windows desktop application which will use nrfutil for DFU of the products (containing secure dfu bootloader). I tested nrfutil v6.1.0, v6.0.1 and even very old v3.2.0 and in all cases update takes very long time - 100 kB firmware</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Feb 2021 12:00:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69591/slow-dfu-using-nrfutil" /><item><title>RE: Slow DFU using nrfutil</title><link>https://devzone.nordicsemi.com/thread/296009?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 12:00:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a5b6cf6-b978-4504-8f4e-a62bd3987144</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;OK, it&amp;#39;s good to know that it performs better on VMs as well. Thanks for confirming that. I thought maybe it had to be run natively.&lt;/p&gt;
[quote user="Michal L."]What exactly is bottleneck in Windows? I thought it is just matter of DK running Connectivity firmware and that nrfutil just sends data to the kit via UART. Or am I wrong?[/quote]
&lt;p&gt;&amp;nbsp;You are not wrong. I believe the problem with Windows is that the USB commands and responses are sent and received too slow. The required USB bandwidth is not much, but latency is more critical as the interface protocol requires transmissions and reception of many small packets. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow DFU using nrfutil</title><link>https://devzone.nordicsemi.com/thread/295967?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 09:10:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22f0df44-bba5-4be9-9384-8f6c6df296be</guid><dc:creator>Michal L.</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I finally had time to test it on Linux PC (actually Linux running in VirtualBox). And results are really much better than in Windows - whole update lasts ca 45 sec. in Linux (same update package lasts 11 min. in Windows).&lt;/p&gt;
&lt;p&gt;What exactly is bottleneck in Windows? I thought it is just matter of DK running Connectivity firmware and that nrfutil just sends data to the kit via UART. Or am I wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow DFU using nrfutil</title><link>https://devzone.nordicsemi.com/thread/294674?ContentTypeID=1</link><pubDate>Tue, 16 Feb 2021 15:18:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5de64a2c-5bca-475c-8727-ca082bf6a488</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the delayed response. I have done some investigations on my own now, and I am starting to suspect it may have something to do with the USB stack on Windows. The reason for this is that I&amp;#39;m seeing much higher throughput when I test DFU on my Linux PC with the exact same script. Also, modifying the connection parameters in the script did not&amp;nbsp; have any noticeable impact on the transfer speed for windows ( implying it&amp;#39;s not bottlnecked by the connection configuration).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Multiple DFU payload packets per connection event on Linux&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1613488687300v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;And less than one paylod packet per connection interval on Windows&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1613488806010v2.png" alt=" " /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Do you have a PC running linux natively that you can try this on?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow DFU using nrfutil</title><link>https://devzone.nordicsemi.com/thread/293501?ContentTypeID=1</link><pubDate>Tue, 09 Feb 2021 09:58:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e55e21e8-887e-4cbd-afeb-a68f13c258b2</guid><dc:creator>Michal L.</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;do you have any updates?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow DFU using nrfutil</title><link>https://devzone.nordicsemi.com/thread/288839?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2021 08:50:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25630934-c390-401b-b5aa-b576b4d7b364</guid><dc:creator>Michal L.</dc:creator><description>&lt;p&gt;Thank you for the information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow DFU using nrfutil</title><link>https://devzone.nordicsemi.com/thread/288341?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2021 10:44:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c54895d2-b54d-49ec-971f-4a99265196f9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, unfortunately, this seems to be as expected as nRF connect on desktop/nrfutil is not capable of sending as many BLE packets per connection event as iOS and Android is. I will report this internally and request that we try to remove this limitation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow DFU using nrfutil</title><link>https://devzone.nordicsemi.com/thread/287497?ContentTypeID=1</link><pubDate>Tue, 05 Jan 2021 12:10:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dc686d4-30b2-4bec-8508-960b28513949</guid><dc:creator>Michal L.</dc:creator><description>&lt;p&gt;I&amp;#39;ve just tried update of the same file via nRF Connect on iOS and it took less then one minute to update. In the app I see that update is divided into 25 data objects and each object is transmitted every 2-3 seconds.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/RPReplay_5F00_Final1609848038.mp4"&gt;devzone.nordicsemi.com/.../RPReplay_5F00_Final1609848038.mp4&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow DFU using nrfutil</title><link>https://devzone.nordicsemi.com/thread/287485?ContentTypeID=1</link><pubDate>Tue, 05 Jan 2021 11:36:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f7f5672-bc5d-48b3-8f8d-0f6f330fd8f5</guid><dc:creator>Michal L.</dc:creator><description>&lt;p&gt;Hello Vidar,&lt;/p&gt;
&lt;p&gt;thank you for testing. I just tested it with nRF Connect v3.6.1 and updated device running on SDK v12.0.0 based application and bootloader. And update speed is about 0.20 kB/s.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1609846551374v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;As I said, using nRF Connect on iOS or some Android phone it is much faster (I would say maybe 10x faster, but I can measure it, if needed).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow DFU using nrfutil</title><link>https://devzone.nordicsemi.com/thread/285973?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2020 08:04:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c34976b-665c-4f04-9a60-43bb8949ef96</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the delayed response. I&amp;#39;ve done some testing with SDK 12.3.0 now, and in my case, it took about three times longer to do DFU from nRF connect on desktop compared to when I tested DFU with nRF connect on iOS. The reason for this discrepancy is likely due to the fact that the pc apps can send fewer packets per connection event. But, the throughput on nRF connect for desktop averaged at around 0.4 KB/s, so for me it would &amp;quot;only&amp;quot; take ~4 minutes to upload a 100k image. Do you see a lower transfer speed in nrf connect?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nRF connect for desktop SDK 12.3.0&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/dfu_5F00_nrfconnect.PNG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nRF connect for desktop with SDK 17.0.2 for comparison ( supports long ATT MTU)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1608537304144v1.png" alt=" " /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow DFU using nrfutil</title><link>https://devzone.nordicsemi.com/thread/285583?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 11:07:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cc354c2-09ec-435a-b0e6-f4d817e44de3</guid><dc:creator>Michal L.</dc:creator><description>&lt;p&gt;Today I tried to downgrade to&amp;nbsp;pc-ble-driver-py v0.14.1 and pc-nrfutil v6.0.1 and compile executable nrfutil. Behaviour is still the same, update still lasts 10 minutes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Florian Zierer wrote&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/55269/nrfutil-dfu-upload-extremely-slow"&gt;here&lt;/a&gt;&amp;nbsp;that in his case in v6.0.1 problem was solved, so I don&amp;#39;t know, what could be wrong now..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow DFU using nrfutil</title><link>https://devzone.nordicsemi.com/thread/285406?ContentTypeID=1</link><pubDate>Wed, 16 Dec 2020 15:40:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e4f950c-7f36-4adc-a341-0e458ebc1486</guid><dc:creator>Michal L.</dc:creator><description>&lt;p&gt;Hello Vidar,&lt;/p&gt;
&lt;p&gt;it is based on SDK 12.0.0. We have no problems with update via nRF Connect on smartphone, also we have some application from external partner for our products and update here also works ok, so it looks it should be about some settings in nrfutil or connectivity firmware?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Slow DFU using nrfutil</title><link>https://devzone.nordicsemi.com/thread/285402?ContentTypeID=1</link><pubDate>Wed, 16 Dec 2020 15:33:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b80ea832-3792-4031-ad83-98267ba39001</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;DFU with pc-nrfutil is known to be quite slow, but nRF connect on windows should be on par with nRF connect on Android and iOS, so that&amp;#39;s more suprising. Which SDK is the bootloader on the target based on?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>