<?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>Dynamic Advertisement Name In DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52471/dynamic-advertisement-name-in-dfu</link><description>Hi, 
 Is there any way to change the advertisement name before switching to DFU mode? 
 I have a custom app that reboots into DFU mode (via NRF_POWER -&amp;gt; GPREGRET ). I want to be able to somehow change the default ADV_NAME (&amp;quot;DfuTarg&amp;quot;) on the fly. 
 
 Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Sep 2019 07:34:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52471/dynamic-advertisement-name-in-dfu" /><item><title>RE: Dynamic Advertisement Name In DFU</title><link>https://devzone.nordicsemi.com/thread/211114?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 07:34:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1152541c-8b6f-48c0-a612-bd64cc3d0993</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The advertising name is configured separately in the application and bootloader, so the advertising name will not be the same unless you have set the same name in both. For the bootloader, the name is set by the NRF_DFU_BLE_ADV_NAME in the sdk_config.h file, and most&amp;nbsp;application examples use a define called&amp;nbsp;DEVICE_NAME in the main.c file. You can also change the advertised device name dynamically, by configuring a new set of advertising data, using for instance &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__ble__advertising.html?cp=5_1_6_2_0_10#gaed156c3a650acabf79890fa9da01dec2"&gt;ble_advertising_advdata_update()&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This may not have the desired effect though, since even if the advertising name is changed and you can verify this with a sniffer, most BLE stacks (such as that in iOS and Android) will cache the advertising data, and will not actually update the name unless you switch Bluetooth off and on on the phone.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>