<?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>Is it possible to change GAP device name in runtime without system reset?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5855/is-it-possible-to-change-gap-device-name-in-runtime-without-system-reset</link><description>Hi,
I am developing on a nrf51822 based board using s110 softdevice v. 6.0.0.
In my program I need to change the bluetooth GAP device name in runtime
during connection session. I tried to change it by sd_ble_gap_device_name_set() and
sd_ble_gap_conn_param_update</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Mar 2015 09:57:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5855/is-it-possible-to-change-gap-device-name-in-runtime-without-system-reset" /><item><title>RE: Is it possible to change GAP device name in runtime without system reset?</title><link>https://devzone.nordicsemi.com/thread/20434?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2015 09:57:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de33182c-bd7f-4957-a281-6eb04defd40c</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Yes, changing GAP device name during runtime is possible and a lot of people have asked the same question. You need to call
&lt;code&gt;sd_ble_gap_device_name_set()&lt;/code&gt;
and then
&lt;code&gt;ble_advdata_set()&lt;/code&gt;again whenever you want to change your device name.&lt;/p&gt;
&lt;p&gt;Check out these posts:
&lt;a href="https://devzone.nordicsemi.com/question/2334/is-it-possible-to-change-the-device-name-handle-value-manually/"&gt;1&lt;/a&gt;
&lt;a href="https://devzone.nordicsemi.com/question/17092/device-name-change/"&gt;2&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to change GAP device name in runtime without system reset?</title><link>https://devzone.nordicsemi.com/thread/20433?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2015 09:55:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ecd087b-52d6-4fef-8ec7-26fd20089fe2</guid><dc:creator>Annim</dc:creator><description>&lt;p&gt;Changing Device Name at Runtime: Yes, provided the connection should not exist at that instance of time.&lt;/p&gt;
&lt;p&gt;So probable sequene should be:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Disconnect, - Stop doing adv. -&amp;gt; Change name and set new gap_device name -&amp;gt; update param-&amp;gt; also update the adv params for the recently changed name.&lt;/li&gt;
&lt;li&gt;Now start adv -&amp;gt; you should see the updated name so broadcasting.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I know i have given then answer briefly, i hope you will figure it out. And that how i also carried out for not only changing name but also to change some bits in data packet which was essential for the corresponding project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>