<?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>Help with understanding advertising choices</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53082/help-with-understanding-advertising-choices</link><description>I am building a project that is based on the custom service example https://github.com/bjornspockeli/custom_ble_service_example but I don&amp;#39;t like how it advertises in a way that only leaves 4 characters for my device name. 
 I grafted on the advertising</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Oct 2019 21:56:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53082/help-with-understanding-advertising-choices" /><item><title>RE: Help with understanding advertising choices</title><link>https://devzone.nordicsemi.com/thread/216249?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2019 21:56:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:687e1b6f-f449-4f9d-a89c-2e64920cb855</guid><dc:creator>Keith Brafford</dc:creator><description>&lt;p&gt;I finally figured out how to add a scan response packet with the ble_advertising module, so I just moved the entire device name by itself there.&amp;nbsp; I also made the appearance field optional, so I can steal those bytes back if I need them. It was actually a lot easier than I was making it out to be earlier.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// remove the device name from the main advertising packet
//init.advdata.name_type = BLE_ADVDATA_FULL_NAME;
//init.advdata.include_appearance = true;
init.advdata.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;

init.advdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
init.advdata.uuids_complete.p_uuids = m_adv_uuids;

init.config.ble_adv_fast_enabled = true;
init.config.ble_adv_fast_interval = APP_ADV_INTERVAL;
init.config.ble_adv_fast_timeout = APP_ADV_DURATION;
init.evt_handler = on_adv_evt;

init.srdata.name_type = BLE_ADVDATA_FULL_NAME;
#ifdef INCLUDE_APPEARANCE
init.srdata.include_appearance = true;
#endif

err_code = ble_advertising_init(&amp;amp;m_advertising, &amp;amp;init);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with understanding advertising choices</title><link>https://devzone.nordicsemi.com/thread/214806?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 11:37:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abc1cce7-58ef-4271-b726-7347183c9988</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Keith&lt;/p&gt;
&lt;p&gt;Have you added any additional services that take up space in the advertising packet? I just tried the custom service project myself and I&amp;#39;m able to see the full name without any problems. If you add additional service UUIDs to any examples that don&amp;#39;t use scan response packets the name will be shortened if the advertising packet is filled with UUIDs, etc. Does that help to clear things up?&lt;/p&gt;
&lt;p&gt;I meant that it would be easier to implement the custom service(s) to the ble_app_blinky example, than adding the scan response packet implementation to the project you&amp;#39;re already working on if the custom service(s) is the only thing you need from that project. The ble_app_blinky example still uses the ble_advertising module, so that is still the preferred module.&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: Help with understanding advertising choices</title><link>https://devzone.nordicsemi.com/thread/214658?ContentTypeID=1</link><pubDate>Sat, 12 Oct 2019 04:44:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c95bc6e-502f-438b-96e2-6a1051579111</guid><dc:creator>Keith Brafford</dc:creator><description>&lt;p&gt;Simon, I am mostly looking for clarity and understanding.&amp;nbsp; For instance, I notice that &lt;em&gt;ble_app_uart&lt;/em&gt; appears to do the same thing as the &lt;em&gt;custom_ble_service_example&lt;/em&gt; does as far as advertising goes, yet uart gets &amp;quot;Nordic_UART&amp;quot; to show up while my version of the example only gets the first 4 characters. That is further confusing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with understanding advertising choices</title><link>https://devzone.nordicsemi.com/thread/214653?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2019 21:44:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:595d779a-f205-4755-b9c4-c2ebd0b636ac</guid><dc:creator>Keith Brafford</dc:creator><description>&lt;p&gt;Thanks for the responses.&lt;br /&gt;&lt;br /&gt;So you&amp;#39;re saying that the ble_advertising module isn&amp;#39;t the &amp;quot;nordic preferred&amp;quot; approach?&amp;nbsp;&amp;nbsp;Since the ble_advertising module works well with the peer manager, I was hoping you could explain to me how I can use the module to get the desired behavior.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with understanding advertising choices</title><link>https://devzone.nordicsemi.com/thread/214521?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2019 08:07:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3781f8cf-a535-4b72-a9fa-a1417b49abed</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hey Keith&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-advertising-a-beginners-tutorial"&gt;This tutorial&lt;/a&gt; should be helpful for learning how to make a scan response packet, but if you&amp;#39;re using the approach in the Blinky example anyway, I think it would be faster/easier to add the custom service(s) to that example project instead.&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: Help with understanding advertising choices</title><link>https://devzone.nordicsemi.com/thread/214465?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2019 17:54:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bf95a4f-7465-4f19-9979-fcd602f7633d</guid><dc:creator>Keith Brafford</dc:creator><description>&lt;p&gt;Thanks for the explanation. Another difference in approaches is the custom example uses the &amp;quot;ble_advertising&amp;quot; module, but the blink app goes straight to the soft device, right?&amp;nbsp; Can you help me understand what I would need to do to make the ble_advertising module behave like the blinky approach (i.e. put the full UUID in the scan response)?&amp;nbsp; Or is it just better to not use that module if you want to do this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with understanding advertising choices</title><link>https://devzone.nordicsemi.com/thread/214313?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2019 09:19:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e23754a-05c5-4c5e-b632-cfb3c565ebed</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Keith&lt;/p&gt;
&lt;p&gt;The main difference between your advertising init and the one in my colleague&amp;#39;s example is that he has included the UUID in his advertising packet, while your alternative includes this UUID in the scan response packet. The UUID takes up quite a few of &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/14/what-s-the-maximum-size-for-an-advertisement-package#post-id-76"&gt;the 29 bytes available in an advertising packet&lt;/a&gt;, which is why there is less room for the device name in the example. So you could move the UUID into the scan response packet instead of the advertising packet instead, and you should have room for a longer device name in the example as well.&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>