<?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>nrf51822 DFU procedure nrf toolbox not working ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21121/nrf51822-dfu-procedure-nrf-toolbox-not-working</link><description>Hello, 
 I am using nrftoolbox code available here: github.com/.../IOS-nRF-Toolbox to perform the DFU procedure. 
 I have taken the firmware zip file. 
 I have integrated the iOSDFULibrary in my ios application using POD.
Currently I have manually</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 May 2017 07:06:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21121/nrf51822-dfu-procedure-nrf-toolbox-not-working" /><item><title>RE: nrf51822 DFU procedure nrf toolbox not working ?</title><link>https://devzone.nordicsemi.com/thread/82660?ContentTypeID=1</link><pubDate>Fri, 26 May 2017 07:06:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b30b40f-7f9b-4ae0-a012-79e878a2b04b</guid><dc:creator>Nik</dc:creator><description>&lt;p&gt;The changes we made in DFU version i.e 1503 characteristic as v.0.1 and its start working for iOS 10.3 but same code not work for iOS 10.3 below. Do I need to set another version for DFU version UUID i.e 1534 characteristic for iOS 10.2 and below ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 DFU procedure nrf toolbox not working ?</title><link>https://devzone.nordicsemi.com/thread/82659?ContentTypeID=1</link><pubDate>Fri, 26 May 2017 06:51:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5efb39e-acfc-4b9a-abef-d5073212f6f4</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Why dfu is not working below 10.3? Should work fine, works here...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 DFU procedure nrf toolbox not working ?</title><link>https://devzone.nordicsemi.com/thread/82658?ContentTypeID=1</link><pubDate>Fri, 26 May 2017 06:50:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be7a628e-5880-40cd-ab63-a062859d839a</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;You may try to read the name from adv packet when scanning instead of from the peripheral&amp;#39;s. If you have saved the peripheral&amp;#39;s uuid and just get it from the manager you&amp;#39;ll get the cashed name. No workaround that I know of.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 DFU procedure nrf toolbox not working ?</title><link>https://devzone.nordicsemi.com/thread/82657?ContentTypeID=1</link><pubDate>Fri, 26 May 2017 06:46:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eacdd821-8a10-479b-a41f-25334eb9a2b5</guid><dc:creator>Nik</dc:creator><description>&lt;p&gt;Hi guys, NRFToolbox DFU code is working for iOS 10.3 but not for iOS 10.2 and below. I don&amp;#39;t know why. But for me at least it is good that it is working. Now just have a small query When application mode changes to bootloader mode its GAP name changes to DFUTarg and now when I tried to connect to that Peripheral I still get this name, not the Initial name that was set earlier. Its name getting Cached. Is there a way to get rid of this issue ??&lt;/p&gt;
&lt;p&gt;Thanks for help guys, You helped a lot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 DFU procedure nrf toolbox not working ?</title><link>https://devzone.nordicsemi.com/thread/82646?ContentTypeID=1</link><pubDate>Wed, 10 May 2017 12:18:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84d68570-0b04-4a47-b00f-599822cd0769</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Hi again, I see in the new log that the lib reads version 0.1 twice, as if the jump to bootloader didn&amp;#39;t work. The first time 0.1 means that it&amp;#39;s an app with buttonless feature, it sends 0x0104 to switch to bl more, and then the value read should be 0.5-0.8, depending on the features you have, or from which SDK you forked. There may be different reasons for this:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;a bootloader may might have been compiled also with version 0.1 (unlikely),&lt;/li&gt;
&lt;li&gt;the jump failed. We have seen that on some devices jump works only with some phones, but fails on anothers. I have no idea why, as they all send the same data. We tested it using different Android phones, but never had such problem with iOS. It looks like a timing issue?
-jump worked, but the bootloader immediately restarted (perhaps received something from the ios or SoftDevice) and the app launched again.
My collages from Support may help here.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 DFU procedure nrf toolbox not working ?</title><link>https://devzone.nordicsemi.com/thread/82650?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 10:15:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c024e322-dfa2-44be-975b-7f6251753c14</guid><dc:creator>Nik</dc:creator><description>&lt;p&gt;Thanks Aleksander, I do have added the SC in device as well as I am discovering services every time while connecting new Device. Also The connection is not bonded but still I get the cache data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 DFU procedure nrf toolbox not working ?</title><link>https://devzone.nordicsemi.com/thread/82649?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 09:02:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5942bf22-91e0-4085-805d-e0986317fb77</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Yes, it&amp;#39;s true. Generic Attribute and Generic Access services are handled by the system and not available to apps. If your device is not bonded the method you mentioned won&amp;#39;t be called at all, as far as I understand it. If you have Service Changed char on such device the iOS will do service discovery every time you request it. It will only be called on a bonded device when SC indication is received. Actually, I didn&amp;#39;t see this method before, so I&amp;#39;m guessing, but that makes most sense.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 DFU procedure nrf toolbox not working ?</title><link>https://devzone.nordicsemi.com/thread/82648?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 08:54:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6ca93ff-bcb6-48cc-9fde-0b838f90cce7</guid><dc:creator>Nik</dc:creator><description>&lt;p&gt;Hi @Aleksander, I have check my BLE device services and SC is added under generic atrribute i.e 0x1801. But In IOS side I am not able to get the generic attribute service. as per the apple documentation here: &lt;a href="https://developer.apple.com/hardwaredrivers/BluetoothDesignGuidelines.pdf"&gt;developer.apple.com/.../BluetoothDesignGuidelines.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;a few services are handled by iOS already and not accessible to apps. These are listed in the Bluetooth Developer Guidelines chapter 3.12 above&lt;/p&gt;
&lt;p&gt;So, Now I am confused that How I will get the call for - (void)peripheral:(CBPeripheral *)peripheral didModifyServices:(NSArray&amp;lt;CBService *&amp;gt; *)invalidatedServices method.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 DFU procedure nrf toolbox not working ?</title><link>https://devzone.nordicsemi.com/thread/82652?ContentTypeID=1</link><pubDate>Fri, 14 Apr 2017 05:33:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca1f627d-64fc-46bf-88f2-256787efa0fa</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Nope. Did you try on a different phone where you didn&amp;#39;t cache services without SC? Or did you try changing your device address or trying it on another DK with different address? On not bonded devices with SC in Generic Attribute service iOS should not use cache.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 DFU procedure nrf toolbox not working ?</title><link>https://devzone.nordicsemi.com/thread/82651?ContentTypeID=1</link><pubDate>Fri, 14 Apr 2017 05:03:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed88b210-cb97-4ae4-ba61-87c31f968e05</guid><dc:creator>Nik</dc:creator><description>&lt;p&gt;Hi Aleksander, I am still getting the cache data. is there any other changes I need to do in my code ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 DFU procedure nrf toolbox not working ?</title><link>https://devzone.nordicsemi.com/thread/82656?ContentTypeID=1</link><pubDate>Mon, 10 Apr 2017 09:43:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3a9c800-0b18-421a-bd9e-e947256b294a</guid><dc:creator>Nik</dc:creator><description>&lt;p&gt;Hi Aleksander, Finally I am able to clear BLE cache by going to setting -&amp;gt; General -&amp;gt; Reset -&amp;gt; Erase All Content and Settings. Also updated the Log in above question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 DFU procedure nrf toolbox not working ?</title><link>https://devzone.nordicsemi.com/thread/82655?ContentTypeID=1</link><pubDate>Mon, 10 Apr 2017 09:16:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e2501bd-de96-4c50-ac58-c3a989d24671</guid><dc:creator>Nik</dc:creator><description>&lt;p&gt;HI Aleksander, As per your request I have tried adding SC in both app and bootloader but still I am facing that cache issue. How to clear BLE cache. I tried resetting Phone as well as tried resetting it by Bluetooth Turn ON/OFF.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 DFU procedure nrf toolbox not working ?</title><link>https://devzone.nordicsemi.com/thread/82654?ContentTypeID=1</link><pubDate>Fri, 07 Apr 2017 09:46:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3218ce16-eb84-4bd3-ada5-d8cbe4d9958b</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Yes, you have to have SC in both app and bootloader. For not bonded devices this sets the host (phone) that it can&amp;#39;t cache services as they may change on the next connection. iOS follows this spec rule. If a non-bonded device doesn&amp;#39;t have this characteristic it may never change its services. Switching between spp and dfu mode is changing services when buttonless service from legacy dfu is used (bootloader had the same device address).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 DFU procedure nrf toolbox not working ?</title><link>https://devzone.nordicsemi.com/thread/82653?ContentTypeID=1</link><pubDate>Fri, 07 Apr 2017 09:12:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4a5354b-ebd8-40f5-85b0-22016393ae03</guid><dc:creator>Nik</dc:creator><description>&lt;p&gt;Hi Aleksander,&lt;/p&gt;
&lt;p&gt;Thanks for the details,&lt;/p&gt;
&lt;p&gt;I am not having bonded connection with BLE. and YES we have defined service Changed Characteristics in our code and used in Bootloader file.&lt;/p&gt;
&lt;p&gt;We are using NRF idk 11. s130 chipset. I tried with NRFToolbox but as it was not working I tried to do it manually.&lt;/p&gt;
&lt;p&gt;Could you please let me know how to use &amp;quot;service Changed Characteristics&amp;quot; ? and do we need to defined them in application file ?&lt;/p&gt;
&lt;p&gt;Please check the latest updated snipet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 DFU procedure nrf toolbox not working ?</title><link>https://devzone.nordicsemi.com/thread/82647?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2017 14:02:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47b58830-10d9-4ba7-a4d7-9c0c2fd58f3c</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Hi Nik,&lt;/p&gt;
&lt;p&gt;I see couple of issues:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Regarding this:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The first log contains:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;2017-04-05 11:24:54.527232 BLETemperatureReader[3595:805070] level String: Error, message :Reading DFU Version characteristic failed
2017-04-05 11:24:54.528259 BLETemperatureReader[3595:805070] level String: Error, message :Error 1: The handle is invalid.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This means that your iPhone has cached services. Are you sure you have Service Changed characteristic in Generic Attribute service? Is your device bonded or not?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Why do you jump to bootloader on your own? Do you have a custom solution for that? If you are using bonding, is your newer than 8? (In 8-11 the bootloader sends Service Changed indication after jump to let the host know that it now has different services.)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;DFU Version seems incorrect.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You second log says:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Verbose: Reading DFU Version number...
Debug: peripheral.readValue(00001534-1212-EFDE-1523-785FEABCD123)
Info: Read Response received from 00001534-1212-EFDE-1523-785FEABCD123, value (0x):0003
Application: Version number read: 3.0
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Supported versions for this char are 0x0100 = v0.1 - application mode with buttonless support, 0x0[5-8]00 = v.0.5-0.8 - bootloader with some different features.&lt;/p&gt;
&lt;p&gt;The value 0x0003 is not supported. It may be that the lib just reads another characteristic at the same handle number as it may have cached previous services. To avoid caching on non-bonded device enable Service Changed char.&lt;/p&gt;
&lt;p&gt;BR,
Aleksander&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 DFU procedure nrf toolbox not working ?</title><link>https://devzone.nordicsemi.com/thread/82645?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2017 11:41:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6134ead6-dac5-4655-a65e-647e8b8c645a</guid><dc:creator>Nik</dc:creator><description>&lt;p&gt;Hi Bjorn, I have updated my question with the NRFToolbox app.
FYI, I tried by cloning the NRFToolbox app which supports secure buttonless DFU. It is also not able to provide more help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 DFU procedure nrf toolbox not working ?</title><link>https://devzone.nordicsemi.com/thread/82644?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2017 11:07:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccfaf970-fe16-477e-811c-2acbc11a98e7</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Are you using the safety checking mechanisms in bootloader, see this page, since your setting the type and revision? If you&amp;#39;re not using it, then could you try to generate the zip file using the default values, i.e.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfutil.exe dfu genpkg &amp;quot;xyz.zip&amp;quot; --application &amp;quot;xyz.hex&amp;quot; --application-version 0xFFFFFFFF --dev-revision 0xFFFF --dev-type 0xFFFF --sd-req 0xFFFE
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Are you seeing the same behavior when performing a DFU with the nRF Toolbox app with the image you generated?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 DFU procedure nrf toolbox not working ?</title><link>https://devzone.nordicsemi.com/thread/82643?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2017 09:29:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45f741b0-0c3e-42ad-8d6f-51f6707ca45f</guid><dc:creator>Nik</dc:creator><description>&lt;p&gt;Hi Bjorn, I have follwed the steps mentioned in DFU infocenter.
and created the zip file using below command:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfutil.exe dfu genpkg &amp;quot;xyz.zip&amp;quot; --application &amp;quot;xyz.hex&amp;quot; --application-version 0xFF --dev-revision 1 --dev-type 1 --sd-req 0xFFFE
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 DFU procedure nrf toolbox not working ?</title><link>https://devzone.nordicsemi.com/thread/82642?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2017 09:02:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f15873bf-36d0-4d82-b51c-8cba8e13c52a</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;I am assuming that you&amp;#39;ve flashed the bootloader, your custom application and the SoftDevice to you device. Have you&amp;#39;ve added DFU Support to the custom application as explained on &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/bledfu_appextending.html?cp=4_0_3_4_3_1_2_1"&gt;this&lt;/a&gt; Infocenter page? Have you created the firmware zip file using the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/bledfu_example_image.html"&gt;nrfutil.exe&lt;/a&gt; tool? If yes, could you post the command you used to generate the zip file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>