<?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>when I start a DFU procedure the device is advertising empty packets</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9325/when-i-start-a-dfu-procedure-the-device-is-advertising-empty-packets</link><description>I&amp;#39;m testing the DFU as described in this link developer.nordicsemi.com/.../a00086.html 
after reseting in DFU mode, when I start the device discovery, I only get empty packets 
 
 
 bootloader.rar 
 ble_app_hrs.rar 
 nrfjprog_win.sh</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Sep 2015 22:35:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9325/when-i-start-a-dfu-procedure-the-device-is-advertising-empty-packets" /><item><title>RE: when I start a DFU procedure the device is advertising empty packets</title><link>https://devzone.nordicsemi.com/thread/34425?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2015 22:35:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90e4ebde-2b01-4bfe-8638-4e5fe8b34845</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi M.Anis,&lt;/p&gt;
&lt;p&gt;I just tested and found that the empty packet you spotted was the directed advertising ! When advertising with directed mode, the adverting data is empty, the advertising packet has only the peer address. (this is described in &lt;strong&gt;Testing the example manually (with Bonding)&lt;/strong&gt; )&lt;/p&gt;
&lt;p&gt;I think it&amp;#39;s a bug with the bootloader now, that it will advertise in directed mode even the application has not bonded with the phone. I will check with the developer.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry that I didn&amp;#39;t spot this earlier.&lt;/p&gt;
&lt;p&gt;By advertising in directed mode with no change in the address, there is a chance that the ATT table will not be refresh (no service discovery from the phone) when switching to bootloader. However it&amp;#39;s not a problem with Master Control Panel and nRFToolbox app, because we clear the att table every time we disconnect from the application.&lt;/p&gt;
&lt;p&gt;You can simply connect and do DFU as you did with bootloader when starting with a button press.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when I start a DFU procedure the device is advertising empty packets</title><link>https://devzone.nordicsemi.com/thread/34423?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2015 07:11:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17e64127-f573-4dc5-8a3e-e82cb1fddc4f</guid><dc:creator>M.Anis</dc:creator><description>&lt;p&gt;please try the files now&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when I start a DFU procedure the device is advertising empty packets</title><link>https://devzone.nordicsemi.com/thread/34424?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2015 06:35:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b7d8aaa-668f-4d4a-98ba-86eb604d79c2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Anis,&lt;/p&gt;
&lt;p&gt;Seems that file ble_app_hrs.rar has an issue with it, when I click it, It was the nrfjprog_win.sh instead.
Could you try to re-upload the ble_app_hrs.rar file ?
The nrfjprog.exe tool is located at C:\Program Files (x86)\Nordic Semiconductor\nrf5x\bin. You should have it after you installed &lt;a href="http://www.nordicsemi.com/eng/nordic/Products/nRF51822/nRF5x-Tools/33444"&gt;nrfTools&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when I start a DFU procedure the device is advertising empty packets</title><link>https://devzone.nordicsemi.com/thread/34422?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2015 13:03:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46b2b99c-8890-4b1a-9167-dcb6d3e1d598</guid><dc:creator>M.Anis</dc:creator><description>&lt;p&gt;yes exactly with the button it works fine.
I can also update the firmware from the service in the hrs example.
but I can&amp;#39;t get it back to the bootloader advertising as &amp;quot;DfuTarg&amp;quot; from the service.&lt;/p&gt;
&lt;p&gt;I wasn&amp;#39;t able to find the nrfjprog.exe to upload the bootloader so I used a script that is supposed to replace it.
I&amp;#39;ll attach everything with the question&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when I start a DFU procedure the device is advertising empty packets</title><link>https://devzone.nordicsemi.com/thread/34421?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2015 12:55:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:107aa113-8e27-47bc-a7fc-d326fac0369c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;You mean if you hold a button and reset the chip you can enter bootloader and can do DFU, but when you do button-less, you only have the device advertise with no data at all ?&lt;/p&gt;
&lt;p&gt;This is pretty strange. Could you zip your bootloader project and the application project and add them into your question ?
A &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF-Sniffer/(language)/eng-GB"&gt;sniffer trace&lt;/a&gt; could be very useful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when I start a DFU procedure the device is advertising empty packets</title><link>https://devzone.nordicsemi.com/thread/34420?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2015 12:46:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5570825-6f52-403c-8f30-c553eb563abb</guid><dc:creator>M.Anis</dc:creator><description>&lt;p&gt;Hi Hung Bui,
yes I&amp;#39;m testing with the ble_app_hrs in the SDK v8.1.0.
no I didn&amp;#39;t do any modification
yes I have the bootloader flashed already.
in fact the bootloader is working if I use it directly from the service in the hrs example.&lt;/p&gt;
&lt;p&gt;but what I want to do is to reset the device in bootloader mode without using the button on the board
as described in this link &lt;a href="http://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/doc/8.1.0/s110/html/a00086.html#bledfu_appexample_nobonding"&gt;Testing the example without bonding&lt;/a&gt; I did all the steps as described but in step 10
10.Verify that the device is now advertising as &amp;quot;DfuTarg&amp;quot;.
I get the empty packet&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when I start a DFU procedure the device is advertising empty packets</title><link>https://devzone.nordicsemi.com/thread/34419?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2015 12:11:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f7d8810-900e-472e-9c58-3128579b0221</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi M.Anis,&lt;/p&gt;
&lt;p&gt;I assume you were testing with the ble_app_hrs in the SDK v8.1.0. Did you do any modification ?&lt;/p&gt;
&lt;p&gt;Please be noted that you would need to flash the bootloader (\examples\dfu\bootloader) before you update your application (via the bootloader). Documentation &lt;a href="http://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/doc/8.1.0/s110/html/a00097.html"&gt;here&lt;/a&gt;.
Please let me know what you get when testing with the bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>