<?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>nrfutil dfu very slow compared to nrf connect dfu</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29058/nrfutil-dfu-very-slow-compared-to-nrf-connect-dfu</link><description>Using the same connectivity firmware, a dfu update using nrfutil takes about four times as long as the same update using nrf connect. I have to setup dfu updating in a production setup and need a command line driven dfu process. Any options to speed up</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Aug 2018 11:48:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29058/nrfutil-dfu-very-slow-compared-to-nrf-connect-dfu" /><item><title>RE: nrfutil dfu very slow compared to nrf connect dfu</title><link>https://devzone.nordicsemi.com/thread/144520?ContentTypeID=1</link><pubDate>Thu, 16 Aug 2018 11:48:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8160288-12c0-48a0-bc5d-7bc5596cb287</guid><dc:creator>bds</dc:creator><description>&lt;p&gt;I think we finally found the issue: nrfutil (and maybe also nrf connect)&amp;nbsp; is somehow using the Windows system timer. The timer interval can be modified by software like &lt;a href="https://github.com/tebjan/TimerTool"&gt;https://github.com/tebjan/TimerTool&lt;/a&gt;. the default timer interval is 15ms, but different software packages (remote desktop, teamviewer, vmware ...) change it to 1 ms.&lt;/p&gt;
&lt;p&gt;On a Windows system where the timer interval is 15 ms, a dfu operation is about 4 to 6 times slower compared to a Windows system where the timer interval is 1 ms...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu very slow compared to nrf connect dfu</title><link>https://devzone.nordicsemi.com/thread/115180?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2018 14:17:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c69dbf77-ca92-4183-9891-b95e03149a2d</guid><dc:creator>bds</dc:creator><description>&lt;p&gt;Unfortunately not...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu very slow compared to nrf connect dfu</title><link>https://devzone.nordicsemi.com/thread/115179?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2018 10:38:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08fd2c24-1050-4203-bbd3-608de2697b90</guid><dc:creator>Victor</dc:creator><description>&lt;p&gt;I do have the same problem you describe: The time which an update takes on a computer is not predictable. It varies form 3 to 6 min (updating SD, BL and APP). Did you find any issues/ workarounds?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu very slow compared to nrf connect dfu</title><link>https://devzone.nordicsemi.com/thread/115178?ContentTypeID=1</link><pubDate>Mon, 08 May 2017 12:44:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:317b9559-e75f-4473-b211-6dd9f318b820</guid><dc:creator>bds</dc:creator><description>&lt;p&gt;Hi,
I used the same nrf board on both computers (PCA10040). The Segger software and all relevant drivers are exactly the same on both computers. I also checked the COM port driver settings in the registry. Again everything is exactly the same.&lt;/p&gt;
&lt;p&gt;I have seen similar issues with virtual COM ports over USB (FTDI) in other projects. Different USB chipsets caused very different throughput through the serial port.The performance differences seemed to depend a lot on which functions were used to read from and write to the serial port.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu very slow compared to nrf connect dfu</title><link>https://devzone.nordicsemi.com/thread/115176?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 12:08:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:602b77f9-14f8-44d4-af82-09621f08788b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Sorry for the late response. I was on vacation.
I haven&amp;#39;t experienced similar issue with the COM port before. I assume you use same nRF5 board on both computer ? Which board did you use ?
Could you check which Segger firmware you have on the production computer ? There could be a chance that the firmware of the Segger chip on the nRF5 board is not compatible with the Segger driver on the production computer. You may need to use Jlink Configurator to update the firmware of the segger chip.
I would suggest to update the Segger Jlink to latest version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu very slow compared to nrf connect dfu</title><link>https://devzone.nordicsemi.com/thread/115177?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2017 16:21:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:312f73e2-d366-4b14-b5cc-a4de18d1d4b5</guid><dc:creator>bds</dc:creator><description>&lt;p&gt;No ideas?&lt;/p&gt;
&lt;p&gt;I checked the serial port traffic with serial port monitor and it seems that on my computer, a serial port read action takes 1 - 2 ms. On another computer it always takes a fixed 15 ms. Could this be due to some Segger serial port driver configuration?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu very slow compared to nrf connect dfu</title><link>https://devzone.nordicsemi.com/thread/115175?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2017 15:54:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73716acb-1434-4d4c-93ef-42fd5e9c10e2</guid><dc:creator>bds</dc:creator><description>&lt;p&gt;Hi,
I tried the java script and it&amp;#39;s faster indeed. However, i ran into another problem:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;if i run the script from my computer, the dfu takes about 30s&lt;/li&gt;
&lt;li&gt;if i run the script from another computer (our production setup), the dfu takes about 1min20s&lt;/li&gt;
&lt;li&gt;if i connect from my computer through remote desktop to that other computer, the dfu takes again 30s...&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The same behavior can also be observed using nrfutil.&lt;/p&gt;
&lt;p&gt;Any idea why the dfu process could be running slower on another computer, and why this would be solved connecting with remote desktop? I&amp;#39;m guessing it has something to do with the serial port driver, but could not find any explanation for now...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu very slow compared to nrf connect dfu</title><link>https://devzone.nordicsemi.com/thread/115174?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2017 11:50:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23e48a47-3ba9-4bc3-b24c-de0ac959ec83</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi bds,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s very unfortunate that the developer who worked on DFU on nrfutil moved. So I couldn&amp;#39;t get hold of him. I had a look in the code and seems that it may requires some change in the lower level at pc_ble_driver_py library . You can have a look &lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver-py/blob/master/python/pc_ble_driver_py/ble_adapter.py"&gt;here&lt;/a&gt; at line 322. We send a write command and we wait for a TX_COMPLETE event before we continue. This explains why the nrfutil only send one packet per event.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s possible to modify that and queue more packet and don&amp;#39;t wait for TX_COMPLETE. Then retry when the buffer is full.&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t want to implement that, I would suggest to simply reduce the connection interval, for now it&amp;#39;s 30 ms, you can change it to 7.5 ms and will have the update 4 times faster.
To change connection interval you need to modify BLEGapConnParams in on_gap_evt_adv_report() in dfu_transport_ble.py. And update MIN_CONN_INTERVAL and MAX_CONN_INTERVAL in nrf_ble_dfu.c in the bootloader.&lt;/p&gt;
&lt;p&gt;Another, better solution is simply use the node.js javascript that used in nRFConnect to do the updating. And you can do it on commandline. Have a look &lt;a href="https://github.com/NordicSemiconductor/pc-ble-driver-js/blob/master/test/dfu.js"&gt;here&lt;/a&gt;, you can find the syntax&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;node dfu.js FF:11:22:33:AA:BF ./dfu/dfu_test_app_hrm_s132.zip
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu very slow compared to nrf connect dfu</title><link>https://devzone.nordicsemi.com/thread/115173?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2017 08:42:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41ad54ac-6598-4f46-b281-0c47962eb12a</guid><dc:creator>bds</dc:creator><description>&lt;p&gt;Hi,
any update here?
I checked the python sources for nrfutil, but could not find a way to force multiple packets per conenction interval...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu very slow compared to nrf connect dfu</title><link>https://devzone.nordicsemi.com/thread/115171?ContentTypeID=1</link><pubDate>Mon, 20 Mar 2017 15:32:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2c665af-3ae4-4255-9c75-5d8190779cca</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Since the source code for both nRFConnect and nRFUtil are available on &lt;a href="https://github.com/NordicSemiconductor"&gt;Github&lt;/a&gt;, there is an option that you take these code and either take the code from NRFConnect and make it commandline, or modify the code in nRFUtil to make it send more packet.&lt;/p&gt;
&lt;p&gt;Unfortunately, I&amp;#39;m not familiar with both of them and we have reduced staff in this period so I couldn&amp;#39;t help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu very slow compared to nrf connect dfu</title><link>https://devzone.nordicsemi.com/thread/115170?ContentTypeID=1</link><pubDate>Mon, 20 Mar 2017 12:57:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6727b30d-47da-41c7-bedb-3f8271ca5cbb</guid><dc:creator>bds</dc:creator><description>&lt;p&gt;Ok, thanks for the follow up.&lt;/p&gt;
&lt;p&gt;I suppose there is no other command line DFU possibility?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu very slow compared to nrf connect dfu</title><link>https://devzone.nordicsemi.com/thread/115169?ContentTypeID=1</link><pubDate>Mon, 20 Mar 2017 12:42:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c12be502-0b14-4c8f-ba87-8fc4007e6a1d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi bds, sorry for the late response. Our developer who made the nrfutil DFU is away the whole March.&lt;/p&gt;
&lt;p&gt;But what I can see is from the trace is that the nRFutil only send 1 packet per connection event. When the nRFConnect can send multiple (usually 4) that&amp;#39;s why you found that it&amp;#39;s much faster with the nRFConnect.&lt;/p&gt;
&lt;p&gt;We will try to fix it but not until the developer comes back. Could you leave a reply here in April so we can check with him, just in case I forgot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu very slow compared to nrf connect dfu</title><link>https://devzone.nordicsemi.com/thread/115172?ContentTypeID=1</link><pubDate>Mon, 13 Mar 2017 12:07:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37028fc2-f698-4a60-8861-2368496b283a</guid><dc:creator>bds</dc:creator><description>&lt;p&gt;Any news on this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu very slow compared to nrf connect dfu</title><link>https://devzone.nordicsemi.com/thread/115165?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2017 15:01:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc8480fb-2df8-4c5f-85c9-77a16cdcb9c3</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Ok, then we can rule out the ATT MTU size. I will have to follow this up with the developer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu very slow compared to nrf connect dfu</title><link>https://devzone.nordicsemi.com/thread/115164?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2017 13:46:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:512d4584-5be1-4997-8857-af5a1df85d3f</guid><dc:creator>bds</dc:creator><description>&lt;p&gt;From the log files nRF Connect uses 23 bytes ATT MTU.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu very slow compared to nrf connect dfu</title><link>https://devzone.nordicsemi.com/thread/115163?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2017 13:41:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60b6b9bc-589d-42fc-bd22-3b4c7703dd6a</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;@bds: nRF Connect requests the peer to increase the ATT MTU size. If this request is supported by the peer then you&amp;#39;ll see an increased throughput. As far as I understand it, this is not requested by nrfutil and I also do not know if or when this will be added. I have asked the developer to clarify this and will update this thread when I get his reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu very slow compared to nrf connect dfu</title><link>https://devzone.nordicsemi.com/thread/115168?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2017 09:45:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2768a46-a2cc-4d63-b38c-2ed87936ade5</guid><dc:creator>bds</dc:creator><description>&lt;p&gt;Any update on this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu very slow compared to nrf connect dfu</title><link>https://devzone.nordicsemi.com/thread/115167?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2017 10:27:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27203327-b461-4c45-9977-87fb3f30bc98</guid><dc:creator>bds</dc:creator><description>&lt;p&gt;I checked with 2.1.0 and the result is exactly the same: about 4 times slower than nrf connect.
Any other ideas?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu very slow compared to nrf connect dfu</title><link>https://devzone.nordicsemi.com/thread/115166?ContentTypeID=1</link><pubDate>Sun, 26 Feb 2017 08:08:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e8fd5bf-0bf7-4ff6-8931-49b40ac1ded7</guid><dc:creator>bds</dc:creator><description>&lt;p&gt;Is it possible to supply a precompiled exe like the one I found here for 2.0.0?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu very slow compared to nrf connect dfu</title><link>https://devzone.nordicsemi.com/thread/115162?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 13:26:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53fcdc9f-47ef-4d7e-bf87-d534dc8a75cd</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Could you try to update to the latest version of pc-nrfutil, i.e. v2.1.0, and see if that resolves the issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu very slow compared to nrf connect dfu</title><link>https://devzone.nordicsemi.com/thread/115156?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 10:57:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:366277c4-f3b7-4523-ba83-fc503edf6663</guid><dc:creator>bds</dc:creator><description>&lt;p&gt;I checked the nrf connect logs, and the connection interval settings are exactly the same.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu very slow compared to nrf connect dfu</title><link>https://devzone.nordicsemi.com/thread/115161?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 10:55:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25ae571b-1251-4aa2-8e62-0f9d579dc4d4</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;nrfutil uses the following conenction interval, &lt;code&gt;min_conn_interval_ms = 15&lt;/code&gt; and &lt;code&gt;max_conn_interval_ms = 30&lt;/code&gt;. I think this is the default connection interval used by nRF Connect, but could you check? If the connection intervals are identical, then there might be some differences regarding how NRF Connect and nrfutil communicates with the connectivity firmware on the nRF5x device on the pc side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu very slow compared to nrf connect dfu</title><link>https://devzone.nordicsemi.com/thread/115160?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 10:50:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5c55bb4-b007-4cec-9b62-0294ec23082d</guid><dc:creator>bds</dc:creator><description>&lt;p&gt;nrfutil.exe 2.0.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu very slow compared to nrf connect dfu</title><link>https://devzone.nordicsemi.com/thread/115159?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 10:49:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d298600-668a-498e-9e49-9042be29450f</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;and which version of pc-nrfutil are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil dfu very slow compared to nrf connect dfu</title><link>https://devzone.nordicsemi.com/thread/115158?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 10:39:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42281e0a-7ee7-4003-bc6d-725054cc9f59</guid><dc:creator>bds</dc:creator><description>&lt;p&gt;nrf connect v1.1 on windows 7 desktop&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>