<?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>Advertise full name only</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74728/advertise-full-name-only</link><description>Hi, 
 I have the following initialization for advertising: 
 
 The name consists of an acronym od three letters and a underscore e,g, XXX_ and a six digit ID. Like XXX_12E124. 
 On iOS I can see the full name normally, on android aswell but sometimes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 May 2021 07:54:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74728/advertise-full-name-only" /><item><title>RE: Advertise full name only</title><link>https://devzone.nordicsemi.com/thread/309129?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 07:54:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a926ed0-c870-4dbc-afd0-02c7efb231a8</guid><dc:creator>Constantin</dc:creator><description>&lt;p&gt;Okay I guess I have the solution:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    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.srdata.name_type = BLE_ADVDATA_NO_NAME;
    init.srdata.include_appearance      = false;
    init.srdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids[0]) / sizeof(m_adv_uuids[0]);
    init.srdata.uuids_complete.p_uuids  = &amp;amp;m_adv_uuids[service_index];
    NRF_LOG_INFO(&amp;quot;UUID %i, index %i&amp;quot;, init.srdata.uuids_complete.p_uuids-&amp;gt;uuid, service_index);


    init.config.ble_adv_fast_enabled  = true;
    init.config.ble_adv_fast_interval = APP_ADV_INTERVAL;
    init.config.ble_adv_fast_timeout  = APP_ADV_TIMEOUT_IN_SECONDS;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I moved the entire UUID and service stuff into the srdata. To speed up the advertisment I set the include_appearance flag to true. No avoid duplicates the srdata does not include the full name. But I guess it does not matter if it is included. In my tests this yield the fastest scanning and connection time.&lt;/p&gt;
&lt;p&gt;cheers,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Constantin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertise full name only</title><link>https://devzone.nordicsemi.com/thread/309119?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 07:26:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aaa9b1d2-ac16-4dd7-8364-102544479f5d</guid><dc:creator>Constantin</dc:creator><description>&lt;p&gt;Hi Henry,&lt;/p&gt;
&lt;p&gt;your advice helped already a bit. By disabling the include_appearance the name is advertised with 8 symbols at least.&lt;/p&gt;
&lt;p&gt;But the full name (10 letters) is still not advertised. Or only later. I disabled as well the scan response but still no change.&lt;/p&gt;
&lt;p&gt;What could influence the amount of data advertised?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Constantin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertise full name only</title><link>https://devzone.nordicsemi.com/thread/308316?ContentTypeID=1</link><pubDate>Wed, 05 May 2021 09:44:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33161cbc-0ae8-4852-a1ca-9589962ff29a</guid><dc:creator>Henry_Chou</dc:creator><description>&lt;p&gt;Your appearance is enable....So how about your appearance data ?&lt;/p&gt;
&lt;p&gt;My project is appearance is disable.&lt;/p&gt;
&lt;p&gt;#define DEVICE_NAME&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;FOXLINK_BLE&amp;quot;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;static void advertising_init(void)&lt;br /&gt;{&lt;br /&gt; uint32_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;init.advdata.name_type = BLE_ADVDATA_FULL_NAME;&lt;br /&gt; init.advdata.include_appearance = false;&lt;br /&gt; init.advdata.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE;&lt;/p&gt;
&lt;p&gt;init.srdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);&lt;br /&gt; init.srdata.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;br /&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;p&gt;static void gap_params_init(void)&lt;br /&gt;{&lt;br /&gt; uint32_t err_code;&lt;br /&gt; ble_gap_conn_params_t gap_conn_params;&lt;br /&gt; ble_gap_conn_sec_mode_t sec_mode;&lt;/p&gt;
&lt;p&gt;BLE_GAP_CONN_SEC_MODE_SET_OPEN(&amp;amp;sec_mode);&lt;/p&gt;
&lt;p&gt;err_code = sd_ble_gap_device_name_set(&amp;amp;sec_mode,&lt;br /&gt; (const uint8_t *) FL310_name,&lt;br /&gt; strlen(FL310_name));&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;memset(&amp;amp;gap_conn_params, 0, sizeof(gap_conn_params));&lt;/p&gt;
&lt;p&gt;gap_conn_params.min_conn_interval = MIN_CONN_INTERVAL;&lt;br /&gt; gap_conn_params.max_conn_interval = MAX_CONN_INTERVAL;&lt;br /&gt; gap_conn_params.slave_latency = SLAVE_LATENCY;&lt;br /&gt; gap_conn_params.conn_sup_timeout = CONN_SUP_TIMEOUT;&lt;/p&gt;
&lt;p&gt;err_code = sd_ble_gap_ppcp_set(&amp;amp;gap_conn_params);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;The ios&amp;amp; android can advertise the full name.&lt;/p&gt;
&lt;p&gt;You may check your adv. package type &amp;amp; length.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertise full name only</title><link>https://devzone.nordicsemi.com/thread/308311?ContentTypeID=1</link><pubDate>Wed, 05 May 2021 09:24:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7ddad9d-0125-4230-85cc-ca211a9d3186</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Could the short name be due to adding too much data to your advertising packet?&lt;/p&gt;
&lt;p&gt;The inbuilt functionality will automatically shorten the adv name if there is too much data in the advertising packet (limit of 31 bytes). &lt;br /&gt;I see that you have included the full advertising name in the scan response packet as well. Is that where you see the full name?&lt;/p&gt;
&lt;p&gt;Br, &lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>