<?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>BLE DFU OTA a provisioned device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52566/ble-dfu-ota-a-provisioned-device</link><description>Hi all, 
 I am using mesh sdk3.20 and sdk15.30. 
 I noticed that with the buttonless ble dfu, it is not possible to perform a DFU transfer after the device was provisioned. I apologize if this has been answered somewhere, I cannot seem to find anything</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Sep 2019 04:48:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52566/ble-dfu-ota-a-provisioned-device" /><item><title>RE: BLE DFU OTA a provisioned device</title><link>https://devzone.nordicsemi.com/thread/212166?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 04:48:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef5c1145-2b01-4472-8758-45eccf377ac1</guid><dc:creator>Chris_Dev</dc:creator><description>&lt;p&gt;Hi Hung,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I managed to get it working.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am simply scheduling a reset 60 seconds after provisioning. One should be careful when you reset the device though, I believe that you have to follow a whole sequence of events regarding the configuration server. Just because the device is provisioned does not mean it is configured. But for now it works fine.&lt;/p&gt;
&lt;p&gt;Thanks so much for your help:)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU OTA a provisioned device</title><link>https://devzone.nordicsemi.com/thread/211994?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2019 09:01:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a46fdc32-ddf4-434e-be67-2eebb0ca9799</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Yes, either software or hardware reset. But make sure the flash is finished writing before you reset ( as implemented inside node_reset() )&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU OTA a provisioned device</title><link>https://devzone.nordicsemi.com/thread/211893?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 15:38:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cb7df94-e230-4411-a227-82da91a26265</guid><dc:creator>Chris_Dev</dc:creator><description>&lt;p&gt;Hi Hung, thanks so much for the in depth explanation.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You are correct, I combined a mesh application and the &lt;span&gt;buttonless&amp;nbsp;&lt;/span&gt;DFU example.&lt;/p&gt;
&lt;p&gt;Just one thing, when you say &amp;quot;reset&amp;quot; the device, do you mean a simple power cycle (I know this can be done in software as well with the &lt;strong&gt;node_reset()&amp;nbsp;&lt;/strong&gt;function)?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE DFU OTA a provisioned device</title><link>https://devzone.nordicsemi.com/thread/211885?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 15:12:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23c434f8-5561-4949-b205-e1e084feeecb</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Chris,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I assume you combined a mesh application (with proxy and PB-GATT supported) to the buttonless DFU example ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that when doing provisioning, there are 2 phases. First phase is provisioning via PB-GATT and second phase is configuration via GATT Proxy. They are different services. Our softdevice doesn&amp;#39;t support changing attribute table after it&amp;#39;s initialized so what we do is to reset the softdevice after provisioning and before configuration.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is why you don&amp;#39;t see the buttonless service after provisioning (but if you reset the device, it should be there).&lt;/p&gt;
&lt;p&gt;If you want to add buttonless service again, you should have a look at gatt_database_reset() and&amp;nbsp;sd_state_evt_handler() inside mesh_provisionee.c. That&amp;#39;s where we disable the softdevice and enable it again, with the proxy service instead of PB-GATT. If you want DFU service to be supported you should add the code to reinitialize DFU buttonless service here. Another option is to trigger a reset instead.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>