<?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>nrf52 DFU package with SD+BL+APPS fails to reconnect on iOS nrfToolbox after updating SD+BL</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23012/nrf52-dfu-package-with-sd-bl-apps-fails-to-reconnect-on-ios-nrftoolbox-after-updating-sd-bl</link><description>We&amp;#39;re seeing an issue where a dfu package containing SD+BL+Apps gets stuck on iOS nrfToolbox during DFU process after it updated the first part 1/2, which is BL+SD. The same dfu package works on the Android nrfToolbox DFU, it&amp;#39;s able to reconnect just</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Sep 2018 12:43:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23012/nrf52-dfu-package-with-sd-bl-apps-fails-to-reconnect-on-ios-nrftoolbox-after-updating-sd-bl" /><item><title>RE: nrf52 DFU package with SD+BL+APPS fails to reconnect on iOS nrfToolbox after updating SD+BL</title><link>https://devzone.nordicsemi.com/thread/150059?ContentTypeID=1</link><pubDate>Mon, 24 Sep 2018 12:43:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4db3a71e-464c-4e51-bf39-bd409743b33a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Gabriel: Please create a new case, with all information about your set-up , steps you used to test. What exactly happens when you see the issue. And most importantly, if you can provide &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF-Sniffer/"&gt;a sniffer trace&lt;/a&gt;, your case will be solved quicker.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 DFU package with SD+BL+APPS fails to reconnect on iOS nrfToolbox after updating SD+BL</title><link>https://devzone.nordicsemi.com/thread/149982?ContentTypeID=1</link><pubDate>Mon, 24 Sep 2018 09:56:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef006a74-8347-481b-ab82-c3ce415a0ca1</guid><dc:creator>Gabriel C.</dc:creator><description>&lt;p&gt;Hi, I am having more or less the same issue. In my case, the APP is able to reconnect but it is stuck at:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;99% (1/2)
100% (1/2)
Info: Notification received from 8EC90001-F315-4F60-9FB8-838830DAEA50, value (0x):600301502f02005cc7604c
Application: Response (Op Code = Calculate Checksum, Status = Success) received
Info: Chunk CRC matches, exetuce!
Application: Writing Execute last object command...
Verbose: Writing to characteristic 8EC90001-F315-4F60-9FB8-838830DAEA50...
Debug: peripheral.writeValue(0x04, forCharacteristic: 8EC90001-F315-4F60-9FB8-838830DAEA50, type: WithResponse)
Info: Notification received from 8EC90001-F315-4F60-9FB8-838830DAEA50, value (0x):600401
Application: Response (Op Code = Execute, Status = Success) received
Verbose: Disconnecting...
Debug: centralManager.cancelPeripheralConnection(peripheral)
Verbose: Scanning for the DFU Bootloader...
Info: Resetting peripheral
Debug: [Callback] Central Manager did disconnect peripheral without error
Info: DFU Bootloader found with name iBKSDFU52V3
Verbose: Connecting to iBKSDFU52V3...
Debug: centralManager.connectPeripheral(peripheral, options:nil)
Debug: [Callback] Central Manager did connect peripheral
Info: Connected to iBKSDFU52V3
Verbose: Discovering services...
Debug: periphera.discoverServices(nil)
Info: Services discovered
Verbose: Secure DFU Service found
Verbose: Discovering characteristics in DFU Service...
Debug: peripheral.discoverCharacteristics(nil, forService:DFUService)
Info: DFU characteristics discovered
Verbose: Enabling notifiactions for 00001531-1212-EFDE-1523-785FEABCD123...
Debug: peripheral.setNotifyValue(true, forCharacteristic: 00001531-1212-EFDE-1523-785FEABCD123)
Verbose: Notifications enabled for 8EC90001-F315-4F60-9FB8-838830DAEA50
Application: DFU Control Point notifications enabled
Application: Writing Read object information command...
Verbose: Writing to characteristic 8EC90001-F315-4F60-9FB8-838830DAEA50...
Debug: peripheral.writeValue(0x0601, forCharacteristic: 8EC90001-F315-4F60-9FB8-838830DAEA50, type: WithResponse)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Any solution?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 DFU package with SD+BL+APPS fails to reconnect on iOS nrfToolbox after updating SD+BL</title><link>https://devzone.nordicsemi.com/thread/90536?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2017 11:58:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f42bcc42-f378-4113-81f4-49c301ea9a17</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Hi Francis,&lt;/p&gt;
&lt;p&gt;I think the problem you have is related to how iOS DFU Libary reconnects to the &amp;#39;new&amp;#39; bootloader after SD+BL was flashed. In the current version of Secure DFU, and in some cases in Legacy DFU, the new bootloader will advertise with address +1, comparing to what the device in app mode had. The reason for that is that when SD+BL is flashed, the old app is removed and the new bootloader doesn&amp;#39;t know if the previous app had Service Changed characteristics or bonding so it must change the address so on device that cache services it can be correctly handled.&lt;/p&gt;
&lt;p&gt;On Android we can just rely on the device address, add +1 to it and look for this new address.
On iOS the API does not expose devices addresses, so we have to do some tricks. The &lt;a href="https://github.com/NordicSemiconductor/IOS-Pods-DFU-Library/blob/master/iOSDFULibrary/Classes/Implementation/DFUPeripheralSelector.swift"&gt;DFUPeripheralSelector&lt;/a&gt; is used instead. The default one selects a first device having DFU Service UUID in the advertisement packet. If your bootloader advertises with different data you have to override it and &lt;a href="https://github.com/NordicSemiconductor/IOS-Pods-DFU-Library/blob/master/iOSDFULibrary/Classes/Implementation/DFUServiceInitiator.swift#L71"&gt;set to the DFUServiceInitiator as described in the inline docs&lt;/a&gt;.
However, this DFUPeripheralSelector, in the current version, will connect to the first device found having the required service UUID so if you have a bunch of devices in DFU mode a random one can be actually updated. A solution for this will come in SDK 14 and 14.1, I suppose, or somewhere in not that far future.&lt;/p&gt;
&lt;p&gt;So, TLDR, the selector scans until it finds a device advertising with something that return true.
I hope it solves your issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 DFU package with SD+BL+APPS fails to reconnect on iOS nrfToolbox after updating SD+BL</title><link>https://devzone.nordicsemi.com/thread/90534?ContentTypeID=1</link><pubDate>Sat, 24 Jun 2017 00:30:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a771b2e-f9b2-4174-9194-9dc8de84773d</guid><dc:creator>Francis</dc:creator><description>&lt;p&gt;I tried nrf Connect on iOS as well, it also wasn&amp;#39;t able to reconnect to the robot after updating the sd_bl image of a BL+SD+APP dfu package.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 DFU package with SD+BL+APPS fails to reconnect on iOS nrfToolbox after updating SD+BL</title><link>https://devzone.nordicsemi.com/thread/90533?ContentTypeID=1</link><pubDate>Fri, 23 Jun 2017 16:34:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5ace9d2-fae3-4e17-8aa4-c055d01a4ef4</guid><dc:creator>Francis</dc:creator><description>&lt;p&gt;Yes, so far it happens 100% for me.  I haven&amp;#39;t tried nRFConnect yet.  Does nRFConnect do anything differently from nrf Toolbox in terms of the iOS DFULibrary pod?  And yes, if i do DFU on iOS for an image that updates without multiple parts, it works, i.e. app only or bl only.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 DFU package with SD+BL+APPS fails to reconnect on iOS nrfToolbox after updating SD+BL</title><link>https://devzone.nordicsemi.com/thread/90535?ContentTypeID=1</link><pubDate>Fri, 23 Jun 2017 12:32:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ff17048-e1f5-4bf3-a520-42164d6acc5c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Francis,&lt;/p&gt;
&lt;p&gt;Would the error happens 100% of the time or occasionally ?&lt;/p&gt;
&lt;p&gt;Have you tried to use nRFConnect instead of nRFToolbox ?&lt;/p&gt;
&lt;p&gt;I assume that after the issue happens, if you do DFU for just the application, it works ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>