<?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>Problems with a full advertising name</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66373/problems-with-a-full-advertising-name</link><description>Hi, 
 my project is based on the example &amp;#39;ble_app_proximity&amp;#39; from SDK ver 17.0.2. When I set a longer DEVICE_NAME, for example 
 
 the string is cut up after the first 12 characters, so I am just seeing the name &amp;quot;123456789ABC&amp;quot; when advertising., even</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Nov 2022 08:32:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66373/problems-with-a-full-advertising-name" /><item><title>RE: Problems with a full advertising name</title><link>https://devzone.nordicsemi.com/thread/396567?ContentTypeID=1</link><pubDate>Mon, 21 Nov 2022 08:32:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:175ac612-4348-40f4-9f26-ae00108523a2</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello sachin,&lt;br /&gt;&lt;br /&gt;The shortening of the advertised name is usually due to the ADV packet having exceeded the possible length - the advertising module will truncate the NAME parameter in the case that you exceed the hard 31 byte advertising length limit. Please keep in mind that you will use 2 bytes of overhead for each datafield your advertising packet contains.&lt;br /&gt;What is the total contents of the packet you are trying to advertise, and are you using an additional Scan Response packet?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with a full advertising name</title><link>https://devzone.nordicsemi.com/thread/396329?ContentTypeID=1</link><pubDate>Fri, 18 Nov 2022 06:22:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c04c5ec-78cd-405c-9511-08fad8ef10ce</guid><dc:creator>Sachin Rawat</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/66373/problems-with-a-full-advertising-name/271498"]Yes, this is as expected. Please see the note in the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Fgroup__ble__sdk__lib__advdata.html&amp;amp;anchor=ga8534b0db1e46d3cdd4db0dc593071b74"&gt;ble_advdata_encode API Reference Documentation&lt;/a&gt;.[/quote]
&lt;p&gt;Hi, I am also facing the same problem that the advertising name is only showing 11 lengths but I have given the 18 lengths to the advertising name by using the bt_set_name(), Can you brief me about how to increase the buffer size that is used for advertising name&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;This will helps me a lot.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with a full advertising name</title><link>https://devzone.nordicsemi.com/thread/274224?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 08:34:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28f28805-ceef-4087-a17e-1eb5609eec63</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
[quote userid="93650" url="~/f/nordic-q-a/66373/problems-with-a-full-advertising-name/274216#274216"]it is a late reply, but your tips helped. I&amp;#39;ve solved the issue by advertising fewer services.[/quote]
&lt;p&gt;No problem at all, I am happy to hear that you found my reply helpful!&lt;/p&gt;
[quote userid="93650" url="~/f/nordic-q-a/66373/problems-with-a-full-advertising-name/274216#274216"]Now I only advertise one custom service, the rest of my cusotm services is read by the smartphone app.[/quote]
&lt;p&gt;Perfect, this is usually a very good solution - this way, you can use the single custom UUID to recognize your device, and then discover the rest during the service discovery.&lt;br /&gt;&lt;br /&gt;Please do not hesitate to ask if you should encounter any issues or questions in the future.&lt;br /&gt;&lt;br /&gt;Good luck with your development!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with a full advertising name</title><link>https://devzone.nordicsemi.com/thread/274216?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 08:10:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e48bb1a8-4056-4a13-b720-04552cf2202e</guid><dc:creator>AHass</dc:creator><description>&lt;p&gt;Hi Karl,&lt;/p&gt;
&lt;p&gt;it is a late reply, but your tips helped. I&amp;#39;ve solved the issue by advertising fewer services.&amp;nbsp;Since I misunderstood the function of scan response packets it was not a proper solution for me at the time. After reading more about that topic it got clear that it is indeed a solution for my case. Now I only advertise one custom service, the rest of my cusotm services is read by the smartphone app.&lt;/p&gt;
&lt;p&gt;Thanks for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with a full advertising name</title><link>https://devzone.nordicsemi.com/thread/271498?ContentTypeID=1</link><pubDate>Fri, 25 Sep 2020 12:02:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05722ecf-f552-44b3-94ef-88d482c81354</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user=""]I am aware of&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/58056/device-is-not-advertising-full-name" rel="noopener noreferrer" target="_blank"&gt;another question in this forum&lt;/a&gt;&amp;nbsp;where it was suggested&amp;nbsp;&lt;span&gt;to put the list of UUID&amp;#39;s in the scan response packet rather than the advertise packet due to missing space in the advertise packet. But this would mean my scanner would need to send a scan request in order to get the list of UUID&amp;#39;s, and this is not an option in my case.&lt;/span&gt;[/quote]
&lt;p&gt;How many UUID&amp;#39;s are you including in your advertising? How many bytes total do you use for your advertising?&lt;br /&gt;For the record, I will mention here the limit of 31 bytes for the advertising packet.&lt;/p&gt;
[quote user=""]Is there any other workaround that does not include changing the scanner&amp;#39;s behaviour?[/quote]
&lt;p&gt;What is the total contents of your advertising packet?&lt;br /&gt;Does your application require a 15 byte device name? Please note that each added field adds 2 byte overhead to your advertisement, so a 15 byte name in reality requires 17 bytes to advertise. That is more than half the available packet length, spent on the name.&lt;/p&gt;
[quote user=""]the string is cut up after the first 12 characters, so I am just seeing the name &amp;quot;123456789ABC&amp;quot; when advertising., even though in the advertising_init, I set the name type to full name:[/quote]
&lt;p&gt;Yes, this is as expected. Please see the note in the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Fgroup__ble__sdk__lib__advdata.html&amp;amp;anchor=ga8534b0db1e46d3cdd4db0dc593071b74"&gt;ble_advdata_encode API Reference Documentation&lt;/a&gt;.&lt;br /&gt;Are you seeing any errors being returned, at any point of your advdata initialization?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>