<?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>How to change ble name dynamically and immediately?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119040/how-to-change-ble-name-dynamically-and-immediately</link><description>I change name by app, after get new name from my app,save it to flash, then I call gap_params_init, in this function, I reload the new name from flash and set it by sd_ble_gap_device_name_set, Even if I disable bluetooth on phone and enable again, use</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 22 Feb 2025 07:18:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119040/how-to-change-ble-name-dynamically-and-immediately" /><item><title>RE: How to change ble name dynamically and immediately?</title><link>https://devzone.nordicsemi.com/thread/524181?ContentTypeID=1</link><pubDate>Sat, 22 Feb 2025 07:18:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a31fbf7-87b5-4b24-ac2d-fe4b25c1edc9</guid><dc:creator>cgha</dc:creator><description>&lt;p&gt;After call&amp;nbsp;&lt;span&gt;advertising_init&amp;nbsp;,it is ok now. Thanks!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change ble name dynamically and immediately?</title><link>https://devzone.nordicsemi.com/thread/524180?ContentTypeID=1</link><pubDate>Sat, 22 Feb 2025 03:50:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b5bb81b-0113-4f40-8be9-513b2a479325</guid><dc:creator>cgha</dc:creator><description>&lt;p&gt;If I call advertising_init after&amp;nbsp;&lt;span&gt;gap_params_init, can not see the device advertising ,can not see the device on phone, seems the ble is hang , but if stop debug, can run into main, means the program is not hang. Should I disconnect first, then call&amp;nbsp;gap_params_init?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change ble name dynamically and immediately?</title><link>https://devzone.nordicsemi.com/thread/524142?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2025 16:02:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26947cd4-5808-4ab1-83b7-314fe3628379</guid><dc:creator>Sigurd</dc:creator><description>[quote user="cgha"]Do I need to call the advertising_init function after&amp;nbsp;&lt;span&gt;gap_params_init&lt;/span&gt;[/quote]
&lt;p&gt;yes, correct.&amp;nbsp; First&amp;nbsp; gap_params_init() where you set the name with the&amp;nbsp;sd_ble_gap_device_name_set() function, and then later&amp;nbsp;advertising_init()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change ble name dynamically and immediately?</title><link>https://devzone.nordicsemi.com/thread/523983?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2025 02:17:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2c174c4-4587-46db-9442-6e77570a7d92</guid><dc:creator>cgha</dc:creator><description>&lt;p&gt;I use nRF connect for android, even if I refresh services, then disconnect, still show the old name , do I miss something? Do I need to call the advertising_init function after&amp;nbsp;&lt;span&gt;gap_params_init&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change ble name dynamically and immediately?</title><link>https://devzone.nordicsemi.com/thread/523844?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2025 09:42:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56bcbfa1-2693-4964-ba36-abbd7830410a</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;No.&lt;/p&gt;
&lt;p&gt;If you are testing with &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-mobile"&gt;nRF connect for Mobile app&lt;/a&gt;, you can Refresh services like this:&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/8688.pastedimage1740044467892v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/0755.pastedimage1740044489906v3.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change ble name dynamically and immediately?</title><link>https://devzone.nordicsemi.com/thread/523789?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2025 01:19:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75cccda5-9ee0-4cd4-993f-edeed79f8b1e</guid><dc:creator>cgha</dc:creator><description>&lt;p&gt;Do I need to call any other function beside the&amp;nbsp;&lt;span&gt;gap_params_init, I use sdk 12.3.0 and nrf51822&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change ble name dynamically and immediately?</title><link>https://devzone.nordicsemi.com/thread/523505?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2025 13:06:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90899c1d-3edf-4c6e-8631-270956dd6f20</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Likely the device name is cached by the phone. If you do a new service discovery, it should update.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>