<?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>Need help advertising a full name for a BLE service of 128-bit UUID</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105432/need-help-advertising-a-full-name-for-a-ble-service-of-128-bit-uuid</link><description>The BLE service name appears with 4 characters instead of the full name (which is way over 4 bytes). My understanding is that a packet is 31 bytes long but the UUID itself is 16 bytes = 128-bit long thus causing truncation. Even BLE_ADVDATA_SHORT_NAME</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Nov 2023 10:27:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105432/need-help-advertising-a-full-name-for-a-ble-service-of-128-bit-uuid" /><item><title>RE: Need help advertising a full name for a BLE service of 128-bit UUID</title><link>https://devzone.nordicsemi.com/thread/454395?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 10:27:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:753a2377-f0fb-48fb-abf6-6012c6a0908f</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;There is&lt;a href="https://devzone.nordicsemi.com/search?q=advertise%20full%20%20128#serpq=advertise%20full%20%20128&amp;amp;serp=2"&gt; several threads&lt;/a&gt; on this topic in the forum so I suggest that you look into some of those answered questions,&lt;/p&gt;
&lt;p&gt;As in the ble_app_uart example, you can try to move the advertising of the service to the scan response packet because of the 31-byte size constraint in the advertising structure.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For example, this is how it&amp;#39;s implemented in ble_app_uart:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="ui-code" data-mode="text"&gt;static void advertising_init(void)
{
&amp;#160; &amp;#160; uint32_t &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; err_code;
&amp;#160; &amp;#160; ble_advertising_init_t init;

&amp;#160; &amp;#160; memset(&amp;amp;init, 0, sizeof(init));

&amp;#160; &amp;#160; init.advdata.name_type &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;= BLE_ADVDATA_FULL_NAME;
&amp;#160; &amp;#160; init.advdata.include_appearance = false;
&amp;#160; &amp;#160; init.advdata.flags &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;= BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE;

&amp;#160; &amp;#160; init.srdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
&amp;#160; &amp;#160; init.srdata.uuids_complete.p_uuids &amp;#160;= m_adv_uuids;

&amp;#160; &amp;#160; init.config.ble_adv_fast_enabled &amp;#160;= true;
&amp;#160; &amp;#160; init.config.ble_adv_fast_interval = APP_ADV_INTERVAL;
&amp;#160; &amp;#160; init.config.ble_adv_fast_timeout &amp;#160;= APP_ADV_DURATION;
&amp;#160; &amp;#160; init.evt_handler = on_adv_evt;

&amp;#160; &amp;#160; err_code = ble_advertising_init(&amp;amp;m_advertising, &amp;amp;init);
&amp;#160; &amp;#160; APP_ERROR_CHECK(err_code);

&amp;#160; &amp;#160; ble_advertising_conn_cfg_tag_set(&amp;amp;m_advertising, APP_BLE_CONN_CFG_TAG);
}&lt;/pre&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;regards&lt;/div&gt;
&lt;div&gt;Jared&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>