<?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 Issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66046/device-name-issue</link><description>Hi, I am following the below link for creating custom services/characteristics. https://github.com/bjornspockeli/nRF52-Bluetooth-Course 
 
 
 I have set the device name as follows but BLE is advertising only with the first 4 chars. #define DEVICE_NAME</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Sep 2020 14:07:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66046/device-name-issue" /><item><title>RE: Device Name Issue</title><link>https://devzone.nordicsemi.com/thread/270887?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 14:07:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd37bd1e-f74e-4e1b-bf44-11111a3e7416</guid><dc:creator>Muqarrab</dc:creator><description>&lt;p&gt;Problem Solved. By&amp;nbsp;&lt;span&gt;moving&amp;nbsp;UUID&amp;#39;s to the scan response instead of the advertising. Like this.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    init.srdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
    init.srdata.uuids_complete.p_uuids  = m_adv_uuids;&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device Name Issue</title><link>https://devzone.nordicsemi.com/thread/270851?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 12:44:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6184ae79-78e5-43b4-a48b-8b92f629df10</guid><dc:creator>Muqarrab</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/simonr"&gt;Simonr&lt;/a&gt;&lt;br /&gt;I have checked the given link but still getting the issue.&lt;br /&gt;I am attaching the project. Can you please check where I am making mistake? Thanks&lt;br /&gt;&lt;a href="https://drive.google.com/file/d/1vyAiWqBLR1JBI3_RKTrWaRIRJ-eSiZTk/view?usp=sharing"&gt;Project&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device Name Issue</title><link>https://devzone.nordicsemi.com/thread/270474?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2020 07:54:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a2c52da-5ba2-411d-848a-0c1edb6a3573</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Okay, then you&amp;#39;re likely seeing this &amp;quot;short&amp;quot; device name because the advertising packet is filled with other advertising data, and only has room for 4 bytes for the advertising name. You have a few options here. If you &lt;strong&gt;need&amp;nbsp;&lt;/strong&gt;the full advertising name in the advertising packet, you can reduce the length of the advertising name, or you can remove some of the other advertising data. You can alternatively add the full name to a scan response packet if you&amp;#39;d like (see &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-advertising-a-beginners-tutorial"&gt;this guide for more information on scan response packets&lt;/a&gt;).&amp;nbsp;&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 Issue</title><link>https://devzone.nordicsemi.com/thread/270292?ContentTypeID=1</link><pubDate>Fri, 18 Sep 2020 09:41:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0457baff-a6ee-4f3b-a145-3421b26e369a</guid><dc:creator>Muqarrab</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/simonr"&gt;Simonr&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I have checked in&amp;nbsp;&amp;nbsp;advertising_init() . Here is the function.&lt;br /&gt;Its already&amp;nbsp;&amp;nbsp;&lt;strong&gt;BLE_ADVDATA_FULL_NAME&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;static void advertising_init(void)&lt;br /&gt;{&lt;br /&gt; ret_code_t err_code;&lt;br /&gt; ble_advertising_init_t init;&lt;/p&gt;
&lt;p&gt;memset(&amp;amp;init, 0, sizeof(init));&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;init.advdata.name_type = BLE_ADVDATA_FULL_NAME;&lt;/strong&gt;&lt;br /&gt; init.advdata.include_appearance = true;&lt;br /&gt; init.advdata.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;&lt;br /&gt; init.advdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);&lt;br /&gt; init.advdata.uuids_complete.p_uuids = m_adv_uuids;&lt;/p&gt;
&lt;p&gt;init.config.ble_adv_fast_enabled = true;&lt;br /&gt; init.config.ble_adv_fast_interval = APP_ADV_INTERVAL;&lt;br /&gt; init.config.ble_adv_fast_timeout = APP_ADV_DURATION;&lt;/p&gt;
&lt;p&gt;init.evt_handler = on_adv_evt;&lt;/p&gt;
&lt;p&gt;err_code = ble_advertising_init(&amp;amp;m_advertising, &amp;amp;init);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;ble_advertising_conn_cfg_tag_set(&amp;amp;m_advertising, APP_BLE_CONN_CFG_TAG);&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device Name Issue</title><link>https://devzone.nordicsemi.com/thread/270260?ContentTypeID=1</link><pubDate>Fri, 18 Sep 2020 08:26:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:813d1013-a04b-4e62-ae6e-c663da6034cc</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I think the advdata.name_type is set to BLE_ADVDATA_SHORT_NAME in your advertising_init() function, as this will only take up 4 bytes of the advertisement and use the first 4 characters of the device name. You can try changing this to&amp;nbsp;BLE_ADVDATA_FULL_NAME to add the full device name in your advertisement. Keep in mind that using a name as long as &lt;strong&gt;Nordic_Template&lt;/strong&gt; will take up 15/31 of the bytes that are available for an advertisement package, so you won&amp;#39;t be able to fit much else into that advertising packet.&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>