<?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>Possible to shutdown DFU Bluetooth after a few seconds and then boot into program</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48570/possible-to-shutdown-dfu-bluetooth-after-a-few-seconds-and-then-boot-into-program</link><description>Hi, 
 We have a program that uses the radio driver for IEEE 15.4. Currently we do not need Bluetooth and IEEE 15.4 working simultaneously but we do need Bluetooth DFU. When our code is running I would like the softdevice shutdown. When I tried this the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Jun 2019 11:47:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48570/possible-to-shutdown-dfu-bluetooth-after-a-few-seconds-and-then-boot-into-program" /><item><title>RE: Possible to shutdown DFU Bluetooth after a few seconds and then boot into program</title><link>https://devzone.nordicsemi.com/thread/193882?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2019 11:47:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea1dc247-c181-45bc-952e-cb30bcd813d1</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Sorry, but it&amp;#39;s not clear to me why the Softdevice is started if you are application is not using it?&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user="hazeman"]So if I set the advertising time out to 30 seconds with BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE set then BT will stop advertising and also stop interrupting my program after 30 seconds?[/quote]
&lt;p&gt;&amp;nbsp;Yes, you should not get interrupted by the Softdevice&amp;nbsp;as long as you don&amp;#39;t do advertising.&lt;/p&gt;
[quote user="hazeman"]This is probably preferable than doing it all in the bootloader because I would not have a long timeout so the person doing the uploading would have to be very quick to trigger a BT connection.[/quote]
&lt;p&gt;&amp;nbsp;You could enter DFU mode from the app by through a button press or maybe with a command sent over 15.4. The bootloader will stay in DFU mode waiting for a controller to connect until it times out, which is 2 minutes by default.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Possible to shutdown DFU Bluetooth after a few seconds and then boot into program</title><link>https://devzone.nordicsemi.com/thread/193739?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2019 16:00:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a33912f1-497c-4052-b59b-bca134cefd11</guid><dc:creator>Liam</dc:creator><description>&lt;p&gt;Thanks for the info&lt;/p&gt;
&lt;p&gt;What I&amp;#39;m trying to do is stop the softdevice stealling time from my app especially as I only require bluetooth for a DFU.&lt;/p&gt;
&lt;p&gt;So if I set the advertising time out to 30 seconds with BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE set then BT will stop advertising and also stop interrupting my program after 30 seconds?&lt;/p&gt;
&lt;p&gt;This is probably preferable than doing it all in the bootloader because I would not have a long timeout so the person doing the uploading would have to be very quick to trigger a BT connection.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Liam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Possible to shutdown DFU Bluetooth after a few seconds and then boot into program</title><link>https://devzone.nordicsemi.com/thread/193316?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2019 07:59:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3695042-6cb7-4902-9b25-ccee12495400</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Liam,&lt;/p&gt;
&lt;p&gt;Yes, this shouldn&amp;#39;t be a problem. You can use our standard BLE bootloader to handle firmware updates over BLE&amp;nbsp;while having&amp;nbsp;an application that is not dependent on the Softdevice.&amp;nbsp;&lt;/p&gt;
[quote user=""]When I tried this the IEEE 15.4 stopped working.[/quote]
&lt;p&gt;&amp;nbsp;Are you&amp;nbsp;using the Softdevice in your current 15.4 FW (i.e., is it enabled)?&amp;nbsp;&lt;/p&gt;
[quote user=""]Would it be possible to develope our application as a SINGLE PHY radio driver and have the bootloader &amp;#39;hand&amp;#39; over it after a period of time? This period would be long enough to check for a bluetooth connection.[/quote]
&lt;p&gt;There&amp;#39;s a&amp;nbsp;configurable timeout that determines how long the bootloader is going to stay in DFU mode. It&amp;#39;s 2 min by default. When the timeout timer expires, it will boot the main app.&lt;/p&gt;
&lt;p&gt;Also, to enter DFU mode you need to signal the bootloader to do so. One option is to enter DFU mode upon a pinreset.&amp;nbsp;See bootloader configuration sdk_config.h for various &amp;quot;DFU enter methods&amp;quot;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The Memory layout should look something like this:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-3120f762c6f946429d9466ddaa33d93a/pastedimage1560843771228v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>