<?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>Device name advertises for short name even after setting for full name.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56363/device-name-advertises-for-short-name-even-after-setting-for-full-name</link><description>Hello, 
 I have set the device advertising as follows: 
 
 Advertising name is getting broadcasted with a full name until it gets changed and to 4 letters device name. In my application, there is a need for changing the advertising name for 5 min duration</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Feb 2020 23:37:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56363/device-name-advertises-for-short-name-even-after-setting-for-full-name" /><item><title>RE: Device name advertises for short name even after setting for full name.</title><link>https://devzone.nordicsemi.com/thread/232930?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 23:37:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3212f298-9cf8-4eb5-b70f-2ad27d0acad9</guid><dc:creator>RVM</dc:creator><description>&lt;p&gt;I am using SDK v15.3.0 and I found a solution (more like a hack) to rationalize this strange behavior and work around it.&lt;br /&gt;This is so frustrating!!!&lt;/p&gt;
&lt;p&gt;The hack is in three parts:&lt;br /&gt;1) Use a customized manufacturer/vendor packet that expands to cover the entire 31-byte available size.&lt;br /&gt;2) Pick a device name such that adding ALL the characters in that name OVERFLOWS the 31-byte limit.&lt;br /&gt;3) Tell the Nordic SDK that the size of the short name is &amp;quot;1 less than it actually is&amp;quot; i.e. if you chose the device name as &amp;quot;NORDIC&amp;quot; then you should specify the short name lenght to be 5 (1 less than the number of characters in NORDIC)&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device name advertises for short name even after setting for full name.</title><link>https://devzone.nordicsemi.com/thread/231324?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 09:03:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6926a657-6fa4-4877-a599-e8b128585b5b</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Are there any other parameters&amp;nbsp;in your advertising data that are changing when you update the device name? You should be able to read the encoded advertising data in &amp;amp;advdata after ble_advdata_encode() is called. This will be in ASCII format if I&amp;#39;m not mistaken so you&amp;#39;ll have to decode it to see what it actually is.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There&amp;#39;s a couple of things I can think of that could cause this. What device/platform are you receiving this advertising data on? If it&amp;#39;s a phone, it might not be able to read the new name properly after the device_name change. You can also try adding a reset of the device between the advertising inits, to make sure that everything is erased and starts off properly.&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: Device name advertises for short name even after setting for full name.</title><link>https://devzone.nordicsemi.com/thread/231111?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 12:07:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f20b2e9b-cfa6-4e84-8ddf-0ae644b94795</guid><dc:creator>ssc</dc:creator><description>[quote userid="75734" url="~/f/nordic-q-a/56363/device-name-advertises-for-short-name-even-after-setting-for-full-name/228310"]Do you set the name type as SHORT_NAME when you change the name to TEST?[/quote]
&lt;p&gt;NO, I am using the same&amp;nbsp;advertising_init(); function for setting advertising parameters.&amp;nbsp;&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/56363/device-name-advertises-for-short-name-even-after-setting-for-full-name/228310"]t might be that the advertising packet is filled with something else the third time around, not leaving any space for the full name to be advertised.[/quote]
&lt;p&gt;How to know an advertising packet is getting filled with some data that no space for advertising full name.?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device name advertises for short name even after setting for full name.</title><link>https://devzone.nordicsemi.com/thread/228310?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2020 10:03:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab21569a-1727-4d16-8212-66056cc4d67d</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Do you set the name type as SHORT_NAME when you change the name to TEST? If so, can you try keeping it as FULL_NAME to see if that lets you get the full first name again? Does the advertisement itself change when it&amp;#39;s called LED_BUTTON the first time versus after the name has changed once and twice? It might be that the advertising packet is filled with something else the third time around, not leaving any space for the full name to be advertised.&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></channel></rss>