<?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>Buttonless DFU: &amp;quot;Upload failed: DFU device disconnected&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40716/buttonless-dfu-upload-failed-dfu-device-disconnected</link><description>Hello, 
 I tried to follow the instructions in this tutorial: github.com/.../nRF52832-buttonless-dfu-development-tutorial 
 1) I flashed this file via nrfjprog: examples\dfu\secure_dfu_test_images\ble\nrf52832\sd_s132_bootloader_buttonless_with_setting_page_dfu_secure_ble_debug_without_bonds</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Nov 2018 11:44:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40716/buttonless-dfu-upload-failed-dfu-device-disconnected" /><item><title>RE: Buttonless DFU: "Upload failed: DFU device disconnected"</title><link>https://devzone.nordicsemi.com/thread/159397?ContentTypeID=1</link><pubDate>Wed, 28 Nov 2018 11:44:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc1fb20b-1b2e-41c0-8f27-a4b56e2c798b</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Which &amp;quot;DFU Library version&amp;quot; is in the DFU page for your nRF Toolbox application?&lt;/p&gt;
&lt;p&gt;I tried with a Sony Xperia Z5 compact now, it did not work the first time, but it worked on the second attempt, the DFU library version on this phone is 1.3.0 (old)&lt;/p&gt;
&lt;p&gt;Do you have Segger RTT-Viewer? If not, can you download it &lt;a href="https://www.segger.com/products/debug-probes/j-link/tools/rtt-viewer/"&gt;here &lt;/a&gt;and do the following:&lt;/p&gt;
&lt;p&gt;1) Program your device with these two hex files:&lt;/p&gt;
&lt;p&gt;nRF5_SDK_15.2.0_9412b96\examples\dfu\secure_dfu_test_images\ble\nrf52832\bootloader_secure_ble_debug_without_bonds_s132.hex&lt;/p&gt;
&lt;p&gt;nRF5_SDK_15.2.0_9412b96\examples\dfu\secure_dfu_test_images\ble\nrf52832\softdevice_s132.hex&lt;/p&gt;
&lt;p&gt;2) Open RTT-Viewer&lt;/p&gt;
&lt;p&gt;3) Do the DFU again using hrs_application_s132.zip&lt;/p&gt;
&lt;p&gt;4) Paste all of the log output in your reply by using &lt;strong&gt;Insert --&amp;gt; Insert Code&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The disonnect after connect may be caused by:&lt;/p&gt;
&lt;p&gt;1. Some issue with Bluetooth stack on the phone. Recommended is restarting Bluetooth or the phone. This actually helps, a specially on older devices.&lt;/p&gt;
&lt;p&gt;2. Bond data kept by the remote device but removed on Android, or the other way round.&lt;/p&gt;
&lt;p&gt;3. Packet collision on Connect Req. The phone sent Connect Req on the adv channel, but it was missed by the device. Phone then sends Feature Req, but device ignores as it didn&amp;#39;t get the Connect Req. After few sec phone gives 133 error. Recommended: try again. 3 attempts are usually enough.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU: "Upload failed: DFU device disconnected"</title><link>https://devzone.nordicsemi.com/thread/159314?ContentTypeID=1</link><pubDate>Tue, 27 Nov 2018 22:39:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73cd0448-a28a-4180-981c-184ca3948a2b</guid><dc:creator>e_k</dc:creator><description>&lt;p&gt;Hello Andreas,&lt;/p&gt;
&lt;p&gt;my collegue tried it with his phone, and it worked.&lt;br /&gt;So maybe this is an Android version issue? My phone is the Sony Xperia Z3 compact.&lt;/p&gt;
&lt;p&gt;Ewald&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU: "Upload failed: DFU device disconnected"</title><link>https://devzone.nordicsemi.com/thread/158831?ContentTypeID=1</link><pubDate>Fri, 23 Nov 2018 12:36:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:468f6e8b-c1e2-415a-816d-a920ca7766a1</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;That would be fine if you can do that, it&amp;#39;s much easier to determine the reason for the disconnection with information from the BLE packets.&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU: "Upload failed: DFU device disconnected"</title><link>https://devzone.nordicsemi.com/thread/158686?ContentTypeID=1</link><pubDate>Thu, 22 Nov 2018 14:55:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9764bdbc-e714-4114-871d-14f2839ec4a2</guid><dc:creator>e_k</dc:creator><description>&lt;p&gt;Hello Andreas,&lt;/p&gt;
&lt;p&gt;sorry, I forgot to mention this:&lt;br /&gt;I found a second DK here, which I had forgotten about.&lt;/p&gt;
[quote userid="73423" url="~/f/nordic-q-a/40716/buttonless-dfu-upload-failed-dfu-device-disconnected/158658"]You need to have one board connected running the nRF Connect Application, and one board flashed with the Bootloader[/quote]
&lt;p&gt;Yes, that&amp;#39;s the way I did this.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="73423" url="~/f/nordic-q-a/40716/buttonless-dfu-upload-failed-dfu-device-disconnected/158658"]Have you tried sniffing BLE packets to see what triggers the disconnection?[/quote]
&lt;p&gt;Not yet. I&amp;#39;ll try this and will report back.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU: "Upload failed: DFU device disconnected"</title><link>https://devzone.nordicsemi.com/thread/158658?ContentTypeID=1</link><pubDate>Thu, 22 Nov 2018 13:52:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:650f0c19-e117-44da-b8e9-d876369e8c1f</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
[quote userid="75309" url="~/f/nordic-q-a/40716/buttonless-dfu-upload-failed-dfu-device-disconnected"]Since I only have one DK i tried to flash hrs_application_s132.zip using the nRF Toolbox on my Android smartphone:[/quote]
&lt;p&gt;What did you connect to the nRF Connect Application on the PC? You need to have one board connected running the nRF Connect Application, and one board flashed with the Bootloader, I&amp;#39;m a bit confused as how you did this.&lt;/p&gt;
&lt;p&gt;Have you tried sniffing BLE packets to see what triggers the disconnection?&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU: "Upload failed: DFU device disconnected"</title><link>https://devzone.nordicsemi.com/thread/158507?ContentTypeID=1</link><pubDate>Wed, 21 Nov 2018 20:32:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40f03d81-2895-455d-94e5-6afb95c323c3</guid><dc:creator>e_k</dc:creator><description>&lt;p&gt;&lt;br /&gt;Hello Andreas,&lt;/p&gt;
&lt;p&gt;thank you for your reply. I tried it with the nRF Connect Application on the PC, and it worked perfectly on the first attempt.&lt;/p&gt;
&lt;p&gt;So this was a step in the right direction. However I would still like to get it to work with a smartphone app.&lt;/p&gt;
&lt;p&gt;I reinstalled the nRF Toolbox on the Android smartphone and again tried it with the exact same files that have worked on the PC. I got the same error as last time.&lt;/p&gt;
&lt;p&gt;I then installed nRF Connect on the Android smartphone and tried to connect to the device. I immediately got a &amp;quot;disconnected&amp;quot; message every time I clicked on &amp;quot;connect&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20181121_2D00_172641.png" /&gt;&lt;/p&gt;
&lt;p&gt;Then I tried to connect to the device via BLE Scanner, a third party Android app. The device was again detected correctly, but I also got a &amp;quot;disconnected&amp;quot; message every time I clicked on &amp;quot;connect&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20181121_2D00_172745.png" /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Ewald&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU: "Upload failed: DFU device disconnected"</title><link>https://devzone.nordicsemi.com/thread/158302?ContentTypeID=1</link><pubDate>Wed, 21 Nov 2018 07:50:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1a0ecbc-a189-49c3-8a85-381f4e3937b1</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tested your steps and I&amp;#39;m unsure on what&amp;#39;s wrong, because i get a successful DFU update with your steps.&lt;/p&gt;
&lt;p&gt;I flashed the same &lt;strong&gt;.hex file&lt;/strong&gt; as you did, and selected the same &lt;strong&gt;.zip file&lt;/strong&gt; as you did:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-ddc2ef3af9a949bf8e62e8fa856116c6/Screenshot_5F00_20181121_2D00_080337_5F00_nRF-Toolbox_5F00_start.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;I started the update:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-ddc2ef3af9a949bf8e62e8fa856116c6/Screenshot_5F00_20181121_2D00_080224_5F00_nRF-Toolbox.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;And finished without any errors:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-ddc2ef3af9a949bf8e62e8fa856116c6/Screenshot_5F00_20181121_2D00_080350_5F00_nRF-Toolbox_5F00_finish.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you try to use the nRF Connect Application?&lt;/p&gt;
&lt;p&gt;Are you sure that you&amp;#39;ve selected the right files? That is flashed correct file and selected correct &lt;strong&gt;.zip&lt;/strong&gt; file?&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>