<?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>Implementing DFU OTA for beacon</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25071/implementing-dfu-ota-for-beacon</link><description>Hi Nordic, 
 I am trying to extend DFU feature to my beacon application. Please help me with how to go about it. I went through the given tutorials on DFU/OTA, but I haven&amp;#39;t got a clear idea on how to implement it for beacon. 
 Also I have a doubt.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Sep 2017 13:33:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25071/implementing-dfu-ota-for-beacon" /><item><title>RE: Implementing DFU OTA for beacon</title><link>https://devzone.nordicsemi.com/thread/98739?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 13:33:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c05145a-e6fa-4e24-9ce3-9865001232e5</guid><dc:creator>arjun</dc:creator><description>&lt;p&gt;Thanks Petter, its working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing DFU OTA for beacon</title><link>https://devzone.nordicsemi.com/thread/98740?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 10:17:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27cb2ba3-ebac-4aba-805c-ef5b88958d25</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m not too familiar with IAR, but it seems you can add the define in the .ewp file&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    &amp;lt;option&amp;gt;
      &amp;lt;name&amp;gt;CCDefines&amp;lt;/name&amp;gt;
      &amp;lt;state&amp;gt;BLE_DFU_APP_SUPPORT&amp;lt;/state&amp;gt;
      &amp;lt;state&amp;gt;BLE_STACK_SUPPORT_REQD&amp;lt;/state&amp;gt;
      &amp;lt;state&amp;gt;S132&amp;lt;/state&amp;gt;
      &amp;lt;state&amp;gt;BOARD_PCA10040&amp;lt;/state&amp;gt;
      ...
      &amp;lt;state&amp;gt;CONFIG_GPIO_AS_PINRESET&amp;lt;/state&amp;gt;
      &amp;lt;state&amp;gt;NRF_LOG_USES_UART=1&amp;lt;/state&amp;gt;
      &amp;lt;state&amp;gt;SWI_DISABLE0&amp;lt;/state&amp;gt;
      &amp;lt;state&amp;gt;SOFTDEVICE_PRESENT&amp;lt;/state&amp;gt;
      &amp;lt;state&amp;gt;NRF52&amp;lt;/state&amp;gt;
    &amp;lt;/option&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing DFU OTA for beacon</title><link>https://devzone.nordicsemi.com/thread/98738?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 09:29:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf903ca0-557b-40a9-8b3b-39d99d1de891</guid><dc:creator>arjun</dc:creator><description>&lt;p&gt;I am using IAR compiler.&lt;/p&gt;
&lt;p&gt;I am copying the dfu code snippet in hrs example as it is. The code itself is conditional implementation. It is not working.
It works fine when I comment the Ifdef and endif lines, ie. directly including it to the project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing DFU OTA for beacon</title><link>https://devzone.nordicsemi.com/thread/98736?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 07:37:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51ac921a-d73b-47e0-9aeb-1566273eaa1a</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;This is obviously a mistake, but typically you would bond and share this bond information between application and bootloader, and then you would need the device manager. It is probably why the documentation mentions this, anyways, it is not correct.&lt;/p&gt;
&lt;p&gt;Which compiler are you using? Could you explain a bit more about how you are implementing this conditional compilation?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing DFU OTA for beacon</title><link>https://devzone.nordicsemi.com/thread/98741?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 06:48:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c94d23e-c139-469b-a625-92d3cd542358</guid><dc:creator>arjun</dc:creator><description>&lt;p&gt;Hi Petter, I tried as you suggested. Its working fine without the device manager. However I don&amp;#39;t understand, why in the tutorial, it is mentioned that device manager must be used.&lt;/p&gt;
&lt;p&gt;I  have one more doubt..
I am able to get DFU icon in nRF Connect. But I am not able to implement conditional compilation as in hrs example. When I am directly including dfu headers and code snippets, its working and I am able to see the DFU icon in nRF Connect, but when I put it inside ifdef/endif as in hrs example, its not working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing DFU OTA for beacon</title><link>https://devzone.nordicsemi.com/thread/98737?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 14:28:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d379603-f28b-4db3-9968-4ee35d72b580</guid><dc:creator>arjun</dc:creator><description>&lt;p&gt;Thank you. I will try and let you know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing DFU OTA for beacon</title><link>https://devzone.nordicsemi.com/thread/98735?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 14:26:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7baf1efb-1c73-4d2c-950b-b447e6b0ed65</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I did a quick test, seems to be working without Device Manager. I just skipped calling dfu_app_dm_appl_instance_set() after removing Device Manager.&lt;/p&gt;
&lt;p&gt;Here is my &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2045.main.c"&gt;main.c&lt;/a&gt;, can be used with the ble_app_hrs dfu example.&lt;/p&gt;
&lt;p&gt;The first step is to see add the DFU service and get it to appear in nRF Connect.&lt;/p&gt;
&lt;p&gt;You need a trigger. You need a way to tell the application that it should go into bootloader mode. This is typically done by a button, or you can go buttonless by using DFU service. The DFU service can only be accessed in a connection.&lt;/p&gt;
&lt;p&gt;You can implement buttonless DFU in a beacon application, but then it must be connectable. A beacon is typically not connectable, only advertises.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing DFU OTA for beacon</title><link>https://devzone.nordicsemi.com/thread/98727?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 12:49:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1a33290-bc9e-484f-8311-4f53a1d79916</guid><dc:creator>arjun</dc:creator><description>&lt;p&gt;In the link you shared, there it is written that device manager must be used (1st point).&lt;/p&gt;
&lt;p&gt;No I can&amp;#39;t see the DFU service in nrf connect.&lt;/p&gt;
&lt;p&gt;So I can&amp;#39;t implement buttonless dfu in beacon ??&lt;/p&gt;
&lt;p&gt;Also, is it possible to make beacon connectable ??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing DFU OTA for beacon</title><link>https://devzone.nordicsemi.com/thread/98734?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 12:11:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6567fdb2-5033-4af1-b6cf-e9a71d4aaf33</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Ok. I don&amp;#39;t see how Device Manager is relevant.&lt;/p&gt;
&lt;p&gt;Are you seeing the DFU service in nRF Connect?&lt;/p&gt;
&lt;p&gt;If by beacon you mean that you will not connect, buttonless DFU is not possible, but DFU is, but you need some way to go to bootloader mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing DFU OTA for beacon</title><link>https://devzone.nordicsemi.com/thread/98733?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 11:44:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e50db32-2f21-475a-b139-eb6d442348f2</guid><dc:creator>arjun</dc:creator><description>&lt;p&gt;Yes, I am following the following tutorial.&lt;/p&gt;
&lt;p&gt;In the template code, device manager code is already there. I am only adding the dfu code snippet.&lt;/p&gt;
&lt;p&gt;I am merely copying the dfu  code snippet and pasting it in template code as mentioned in the tutorial and as implemented in the hrs example.Practically the code snippet for device manager/dfu are same in both hrs example and template code.&lt;/p&gt;
&lt;p&gt;However I will try debugging and narrow down the problem. It would be be helpful if u could give some suggestions.&lt;/p&gt;
&lt;p&gt;Meanwhile could you confirm, if DFU/OTA implementation is possible in beacon.&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: Implementing DFU OTA for beacon</title><link>https://devzone.nordicsemi.com/thread/98732?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 11:28:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a2b79f5-22d7-4d8f-a692-1eee7f152262</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry, but you need to provide some more information. Have you followed &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/bledfu_appextending.html?cp=4_0_6_4_3_1_2_1"&gt;this&lt;/a&gt;? Are you seeing the DFU service in nRF Connect?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing DFU OTA for beacon</title><link>https://devzone.nordicsemi.com/thread/98731?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 11:08:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5739dda6-eb73-4866-9eae-6f1280cededf</guid><dc:creator>arjun</dc:creator><description>&lt;p&gt;For understanding, I tried adding dfu feature to the ble_template project which already has device manager code in it. I added the dfu code snippet as in hrs_example, but it is not displaying dfu icon in nrfConnect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing DFU OTA for beacon</title><link>https://devzone.nordicsemi.com/thread/98730?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 11:00:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc6ff5ff-45b4-4b77-a8df-7594559838c1</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Then you need to add the DFU service, and you need to connect for the peer to be able to access this service, and tell the device when to go to bootloader mode. (Device Manager is not needed as long as you will not bond)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing DFU OTA for beacon</title><link>https://devzone.nordicsemi.com/thread/98728?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 10:48:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d59eff90-5562-4dcb-8367-c059edc54668</guid><dc:creator>arjun</dc:creator><description>&lt;p&gt;I am trying to implement buttonless dfu.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing DFU OTA for beacon</title><link>https://devzone.nordicsemi.com/thread/98729?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 10:42:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07be38b3-a834-47a1-b95b-d06e43f64345</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;It depends a bit, how do you intend to switch from beacon application to bootloader? By pressing a button or similar? Or some other way?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing DFU OTA for beacon</title><link>https://devzone.nordicsemi.com/thread/98726?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 10:24:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ea43746-eca8-4d6b-bcf1-492124a54308</guid><dc:creator>arjun</dc:creator><description>&lt;p&gt;The things I need to clear are following :&lt;/p&gt;
&lt;p&gt;1.In the hrs example code, the peripheral is in non-beacon mode. So it it needs to be disconnected/shutdown and connect/start in bootloader mode. Since in the beacon mode, there is no need for connect/disconnect, is device manager relevant code snippets necessary.&lt;/p&gt;
&lt;p&gt;2.Is the tutorial given for extending dfu to the application is generic or is it exclusive for peripherals in non-beacon mode.&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: Implementing DFU OTA for beacon</title><link>https://devzone.nordicsemi.com/thread/98725?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 10:16:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff41292f-d03c-4a30-b51b-0b307878cce4</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;What is it that is not clear? Exactly what snippet are you talking about?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>