<?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>Change the advertise name for DFU in application with bonds?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77719/change-the-advertise-name-for-dfu-in-application-with-bonds</link><description>Hi everyone, 
 
 I am using nrf52840 and I want to change the advertising name in bootloader from &amp;quot;DFUTarg&amp;quot; to a custom name on application side. 
 
 For unbonded one, I saw there&amp;#39;s a function called &amp;quot;nrf_dfu_set_adv_name&amp;quot;, but in bonded one, there&amp;#39;s</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Jul 2021 08:41:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77719/change-the-advertise-name-for-dfu-in-application-with-bonds" /><item><title>RE: Change the advertise name for DFU in application with bonds?</title><link>https://devzone.nordicsemi.com/thread/321262?ContentTypeID=1</link><pubDate>Thu, 22 Jul 2021 08:41:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4027749d-56a2-426d-9603-562fdfab64c9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;&amp;nbsp;Hi RJ,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Originally we don&amp;#39;t have such function for bonded DFU because the peer can simply use the same address from the peer to re-connect. So it doesn&amp;#39;t really matter which advertising name the bootloader advertise. Usually the period when the bootloader advertise and the phone re-connect to the device is very short, almost instantly so end user may not even aware of the advertising name of the bootloader.&amp;nbsp;&lt;br /&gt;Only when in no-bonding DFU, where the address may be changed, the advertising name could be used to recognize the device.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So if you still need to change advertising name in bootloader when doing bond DFU, you would need to implement the API to change name (nrf_dfu_set_adv_name) into both ble_dfu_unbonded.c in the application and modify nrf_dfu_ble.c in the bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>