<?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>Bootloader advertising changed from DfuTarg to Dfu</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14282/bootloader-advertising-changed-from-dfutarg-to-dfu</link><description>I want to distinguish between my customized bootloader builds, for that I added some specific manufacturer data to the bootloader. I added 1 byte of manufacturer, but then the DfuTarg advertising name changed to Dfu as shown in the image below (length</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Jun 2016 14:07:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14282/bootloader-advertising-changed-from-dfutarg-to-dfu" /><item><title>RE: Bootloader advertising changed from DfuTarg to Dfu</title><link>https://devzone.nordicsemi.com/thread/54509?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 14:07:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:902c0ba7-ad78-4aec-9d13-0fb7cb7ee3b6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi makouda,&lt;/p&gt;
&lt;p&gt;You need to count the length is also 1 byte, and the type is another one byte.&lt;/p&gt;
&lt;p&gt;So what you have is:&lt;/p&gt;
&lt;p&gt;3 + 18 + 5 = 26, meaning you have 5 byte left. With that 5 byte, 1 byte is for length, 1 for type and then you have 3 left for the actual device name.&lt;/p&gt;
&lt;p&gt;(your manufacturing data = 1 byte length + 1 byte type + 2 byte company ID + 1 byte data  = 5 bytes)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader advertising changed from DfuTarg to Dfu</title><link>https://devzone.nordicsemi.com/thread/54508?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 12:32:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c50d521a-79d5-461f-ad43-4168fc58a3d6</guid><dc:creator>makouda</dc:creator><description>&lt;p&gt;hye Hung I didnt really get it.  first : even if there is only 5 bytes left for the device name, then why didn&amp;#39;t advertise &lt;code&gt;DfuTa&lt;/code&gt; instead of &lt;code&gt;Dfu&lt;/code&gt;. second I didn&amp;#39;t understated when you say &lt;strong&gt;&lt;em&gt;manufacturing data (including 2 bytes company ID , next 5 bytes)&lt;/em&gt;&lt;/strong&gt;  I only put one byte for manufacturing data !!! aslo by summing 3 + 18 + 2 + 5 + 5 = 33. do you mean only 3 bytes left for the name?????&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader advertising changed from DfuTarg to Dfu</title><link>https://devzone.nordicsemi.com/thread/54507?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 11:44:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe90f14e-02e1-4a0c-a3fc-8fb538e39370</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Makouda,&lt;/p&gt;
&lt;p&gt;Isn&amp;#39;t it already 31 bytes in the RAW data you showed in the above image  ?&lt;/p&gt;
&lt;p&gt;Note that there are flags (first 3 bytes), UUID ( next 18)  manufacturing data (including 2 bytes company ID , next 5 bytes) so there is only 5 bytes left for the device name. And the adv module has a &amp;quot;smart&amp;quot; feature to use BLE_ADVDATA_SHORT_NAME instead of the FULLNAME if the space is not enough.&lt;/p&gt;
&lt;p&gt;Note that the lengths are also occupy one byte for each of them.
If you want to add extra data, you can think of using scan response packet.&lt;/p&gt;
&lt;p&gt;Also please declare uint8_t                     adv_manuf_data_data[1]; as public/static variable otherwise it will be cleared after the function finishes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader advertising changed from DfuTarg to Dfu</title><link>https://devzone.nordicsemi.com/thread/54506?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2016 15:12:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94c42f12-85e4-49ba-b193-d0fed9cafb22</guid><dc:creator>makouda</dc:creator><description>&lt;p&gt;now strangely even on Iphone it advertised Dfu !!!!! this way I should configure on my application to connect to &lt;code&gt;Dfu&lt;/code&gt; in order to load the new app, but then I&amp;#39;m afraid that the name would change again randomly and I can no longer update once the product hit the market. any help please, can you please try using android phone to check if it advertise &lt;code&gt;Dfu&lt;/code&gt; or &lt;code&gt;DfuTarg&lt;/code&gt;. I&amp;#39;m already updated the project above&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader advertising changed from DfuTarg to Dfu</title><link>https://devzone.nordicsemi.com/thread/54504?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2016 15:01:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:984e3dcb-dcb9-4358-87b3-510a129f52e1</guid><dc:creator>makouda</dc:creator><description>&lt;p&gt;no I tested that, I disabled iphone bluetooth and enabled, even turned off the phone, so I guess the cache is deleted&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader advertising changed from DfuTarg to Dfu</title><link>https://devzone.nordicsemi.com/thread/54503?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2016 14:59:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3584f9f9-f515-45cd-885e-f73f5e856c0b</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;I used MCP on my PC. So the same device is showing up as DfuTarg on iPhone and just Dfu on android? Could it be that the &lt;a href="https://devzone.nordicsemi.com/question/23260/dfu-on-nrf51822-ios-have-to-toggle-bluetooth-onoff/"&gt;phone has cached&lt;/a&gt; information about the device?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader advertising changed from DfuTarg to Dfu</title><link>https://devzone.nordicsemi.com/thread/54505?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2016 08:15:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab612729-79b9-4840-9942-d3d503a9ce43</guid><dc:creator>makouda</dc:creator><description>&lt;p&gt;I tried using an Iphone and the advertising is &lt;code&gt;DfuTarg&lt;/code&gt;, but with all my android phones it advertise only &lt;code&gt;Dfu&lt;/code&gt;. which which phone did you try Martin ???&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader advertising changed from DfuTarg to Dfu</title><link>https://devzone.nordicsemi.com/thread/54502?ContentTypeID=1</link><pubDate>Mon, 06 Jun 2016 14:38:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2308e579-b4a9-49df-861a-6a5554480ff9</guid><dc:creator>makouda</dc:creator><description>&lt;p&gt;yes I tried again on many nrf51822 peripherals, I erased everything, flashed SD8 and the bootloader and it advertise only &lt;code&gt;Dfu&lt;/code&gt;. when I delete the manufacturer data then it advertize &lt;code&gt;DfuTarg&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader advertising changed from DfuTarg to Dfu</title><link>https://devzone.nordicsemi.com/thread/54501?ContentTypeID=1</link><pubDate>Mon, 06 Jun 2016 14:28:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb7be71d-a7b0-40d9-a6b1-f25cf95d699a</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Yes, I use nRF51 rev 3, SDK 10.0.0, and SD 110 V8.0.0. I tried erasing everything and then re-flashed the SD and your code and now I can&amp;#39;t get it to work anymore either. Very strange indeed. But it is working for you now?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader advertising changed from DfuTarg to Dfu</title><link>https://devzone.nordicsemi.com/thread/54500?ContentTypeID=1</link><pubDate>Mon, 06 Jun 2016 14:03:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f4b48f5-998d-4a12-9ece-dfe53494a392</guid><dc:creator>makouda</dc:creator><description>&lt;p&gt;that&amp;#39;s really strange, I erased all, I flash only the softdevice and the bootloader and I got &lt;code&gt;Dfu&lt;/code&gt; on advertising. how can the bootloader behave differently !! did you try using nrf51, sdk10, SD8 :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader advertising changed from DfuTarg to Dfu</title><link>https://devzone.nordicsemi.com/thread/54499?ContentTypeID=1</link><pubDate>Mon, 06 Jun 2016 13:54:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:317be3e4-91b4-4ba2-bbc3-a141b05a6578</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;I have compiled your project with the advertising_init() routine in your original post and it seems to work fine. Initially the application would not run though, as the &amp;quot;Reset and Run&amp;quot; option in the debug settings was not enabled. I don&amp;#39;t know if this happens just on my system or if it could be related to your issue though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader advertising changed from DfuTarg to Dfu</title><link>https://devzone.nordicsemi.com/thread/54498?ContentTypeID=1</link><pubDate>Mon, 06 Jun 2016 12:23:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:268706b6-02ba-4a93-9a73-2e47411b540d</guid><dc:creator>makouda</dc:creator><description>&lt;p&gt;Hi Martin, I added the bootloader project. it&amp;#39;s based on the bootloader example of SDK10&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader advertising changed from DfuTarg to Dfu</title><link>https://devzone.nordicsemi.com/thread/54497?ContentTypeID=1</link><pubDate>Mon, 06 Jun 2016 11:50:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa4d3542-7d75-4e4d-ae64-6fd6286af878</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi. That sounds strange. From your table it looks like you should be just within the limits of 31 bytes in your advertising packet.&lt;/p&gt;
&lt;p&gt;Do you get an error returned from ble_advdata_set()?&lt;/p&gt;
&lt;p&gt;Are you basing this on an example? Which one?&lt;/p&gt;
&lt;p&gt;Can you upload your main.c file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>