<?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>Application read the DFU Revision Number.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9877/application-read-the-dfu-revision-number</link><description>This thread mentions having the master read the DFU Revision Characteristic to determine the DFU revision. I&amp;#39;ve based my DFU and application off the dfu_dual_bank_ble_310_pca10028, and bel_app_hrs examples, respectively. 
 Both of these examples have</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Oct 2015 09:57:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9877/application-read-the-dfu-revision-number" /><item><title>RE: Application read the DFU Revision Number.</title><link>https://devzone.nordicsemi.com/thread/36632?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2015 09:57:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae15d5d7-fa64-47b8-aad5-5b85ff0e721a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Cook,&lt;/p&gt;
&lt;p&gt;The need for bootloader update is not that big, since it&amp;#39;s pretty stable. We usually update the bootloader only when we update the softdevice that makes it not compatible with the bootloader.&lt;/p&gt;
&lt;p&gt;If you really want to have the bootloader version when in application mode, you can modify &lt;em&gt;bootloader_settings_t&lt;/em&gt; struct, to add &lt;em&gt;uint16_t bootloader_version&lt;/em&gt; in, for example.
In the bootloader, you keep update the bootloader_version with the correct version when you save the bootloader setting (when calling bootloader_settings_save() ).&lt;/p&gt;
&lt;p&gt;Then in the application, you can read in flash at page BOOTLOADER_SETTINGS_ADDRESS (0x0003FC00), to read the &lt;em&gt;bootloader_settings_t&lt;/em&gt; struct out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application read the DFU Revision Number.</title><link>https://devzone.nordicsemi.com/thread/36631?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2015 15:00:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c07849d1-de6d-4997-be5e-b66381c103b1</guid><dc:creator>c cook</dc:creator><description>&lt;p&gt;&lt;em&gt;&amp;quot;I assume that you want to know the bootloader version before you enter bootloader mode. You may have to modify the bootloader in order to do this. I am thinking of simply writing additional information to bootloader setting page on flash and then in your application you can read this information out.
If it&amp;#39;s what you wanted, could you let me know the reason of that ? &amp;quot;&lt;/em&gt;&lt;br /&gt;
Hung - This is exactly what I want to do.  We have a custom iOS and Android application that connects to our BLE device.  On connection it reads the version number of the DFU, Soft Device, and Application.  If updates are available, or needed for any of them, the user is prompted to perform a firmware update.  We would prefer not to have to start to the DFU to get the actual DFU version number.  Updating the settings page should work, but I&amp;#39;m not sure how to accomplish this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application read the DFU Revision Number.</title><link>https://devzone.nordicsemi.com/thread/36630?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2015 10:44:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49caad05-254e-45aa-8bc3-454ffb1d6cc2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi CCook,&lt;/p&gt;
&lt;p&gt;Please be noted that the DFU_REVISION in the application code is set as 0x01 (and is fixed as 0x01) to tell the DFU master that it&amp;#39;s the application, not the DFU bootloader. And by that knows what to do to put the device in DFU mode.&lt;/p&gt;
&lt;p&gt;We may have different DFU_REVISION for DFU bootloader depends on the SDK version, but we will try to keep the DFU_REVISION of the application at 0x01.&lt;/p&gt;
&lt;p&gt;The DFU_REVISION mainly made for the DFU master (running on phone or PC) to know which bootloader version is running on the device.&lt;/p&gt;
&lt;p&gt;I assume that you want to know the bootloader version before you enter bootloader mode. You may have to modify the bootloader in order to do this. I am thinking of simply writing additional information to bootloader setting page on flash and then in your application you can read this information out.&lt;/p&gt;
&lt;p&gt;If it&amp;#39;s what you wanted, could you let me know the reason of that ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>