<?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 config BT_DEVICE_NAME variable when application is running</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113424/how-to-config-bt_device_name-variable-when-application-is-running</link><description>When I developing application with nrf SDK,I can set device name by sd_ble_gap_device_name_set(). 
 But when I turn to NCS,I should set device name such as CONFIG_BT_DEVICE_NAME = &amp;quot;nRF_DM&amp;quot;. 
 However,I want to change name automatically when application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Aug 2024 07:40:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113424/how-to-config-bt_device_name-variable-when-application-is-running" /><item><title>RE: How to config BT_DEVICE_NAME variable when application is running</title><link>https://devzone.nordicsemi.com/thread/498759?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2024 07:40:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec26e9b1-ba3a-4f3b-9b50-91c0a33d2f52</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see how this differ from the bt_set_name() function and the NVS backend, please try explaining what exactly you mean by this that isn&amp;#39;t covered by bt_set_name().&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to config BT_DEVICE_NAME variable when application is running</title><link>https://devzone.nordicsemi.com/thread/498537?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2024 05:25:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:200972ae-7b89-4464-9fbe-d0c01a571794</guid><dc:creator>Chaoyue Ying</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Now I have a new problem that how to write the name that changed when code is running&amp;nbsp;&lt;span&gt;in the advertising packet.&lt;span class="yd-translate-container"&gt;&lt;span class="yd-wrapper-block yd-highlight"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In order to change name,I need a&amp;nbsp;variable to save.but if I want to write into adcertising packet,I need to use the constant and BT_DATA macro.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So,how can I write a&amp;nbsp;alterable name in my advertising packet?&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to config BT_DEVICE_NAME variable when application is running</title><link>https://devzone.nordicsemi.com/thread/495942?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2024 07:57:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cddc8fb-94e0-4f6d-aec2-9c365748aabc</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Yes, if you want to set it in the flash (NVS backend) use &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_BT_DEVICE_NAME_DYNAMIC"&gt;CONFIG_BT_DEVICE_NAME_DYNAMIC&lt;/a&gt;&amp;nbsp;instead of CONFIG_BT_DEVICE_NAME. That should allow you to use runtime configs of your Bluetooth device name. &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/104220/easiest-way-to-store-in-flash-in-runtime-in-an-app-already-using-settings-with-ble/448312"&gt;Sigurd explains here&lt;/a&gt; that you can use the NVS backend and the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/connectivity/bluetooth/api/gap.html#c.bt_set_name"&gt;&lt;strong&gt;bt_set_name&lt;/strong&gt;&lt;/a&gt;() to set the name at runtime.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to config BT_DEVICE_NAME variable when application is running</title><link>https://devzone.nordicsemi.com/thread/495769?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2024 08:46:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38f9ec7c-f12b-433e-b6c5-dc64d952635f</guid><dc:creator>Chaoyue Ying</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think I get some methods from them.But I still want to know whether I can&amp;nbsp;start my application without setting&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;CONFIG_BT_DEVICE_NAME in prj.conf but write a expected name into flash as&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;a class="ui-contentpeek internal-link" href="https://devzone.nordicsemi.com/f/nordic-q-a/72797/ncs-change-ble-device-name-during-runtime" data-contentid="1c3b366d060f4ee5afc21bc47911e64b" data-contenttypeid="46448885d0e64133bbfbf0cd7b0fd6f7"&gt;NCS change BLE device name during runtime&lt;/a&gt;&amp;nbsp;do?&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to config BT_DEVICE_NAME variable when application is running</title><link>https://devzone.nordicsemi.com/thread/495761?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2024 08:31:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0619b1c3-f0c2-492d-8380-ebec9d628ccf</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;There are multiple tickets on changing the device name dynamically already, so please check out some of these:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/72797/ncs-change-ble-device-name-during-runtime"&gt;NCS change BLE device name during runtime&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/87558/ncs-bt_set_name"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/87558/ncs-bt_set_name&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/69066/change-advertised-name-bluetooth/283570#283570"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/69066/change-advertised-name-bluetooth/283570#283570&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to config BT_DEVICE_NAME variable when application is running</title><link>https://devzone.nordicsemi.com/thread/495718?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2024 02:13:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:991f446f-4acd-4ef0-ad36-628d47ff2dd0</guid><dc:creator>billtsai</dc:creator><description>&lt;p&gt;You can try setting CONFIG_BT_DEVICE_NAME_DYNAMIC=y in prj.conf and use&amp;nbsp;bt_set_name in application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>