<?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>nRF5 SDK client scan does not see names advertised on nRF Connect peripheral</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105991/nrf5-sdk-client-scan-does-not-see-names-advertised-on-nrf-connect-peripheral</link><description>We have a number of products that were developed using nRF5 SDK. I am now in the process of porting these to nRF Connect SDK. 
 I have run into a problem with advertising on NCS that is not being correctly processed on older nRF5 SDK implementation. </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Nov 2023 09:01:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105991/nrf5-sdk-client-scan-does-not-see-names-advertised-on-nrf-connect-peripheral" /><item><title>RE: nRF5 SDK client scan does not see names advertised on nRF Connect peripheral</title><link>https://devzone.nordicsemi.com/thread/457280?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2023 09:01:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e63df5aa-8e3c-4f2f-b1d8-a81029d5a686</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;To put everything in the advertising packet, the snippet from your original post would look like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static char bt_device_name[CONFIG_BT_DEVICE_NAME_MAX + 1] = CONFIG_BT_DEVICE_NAME;
static uint32_t conntimeout;

static struct bt_data ad[] = {
        BT_DATA_BYTES(BT_DATA_FLAGS, (BT_LE_AD_GENERAL | BT_LE_AD_NO_BREDR)),
        BT_DATA_BYTES(BT_DATA_UUID128_ALL, MY_SERVICE_UUID),
        BT_DATA(BT_DATA_NAME_COMPLETE, bt_device_name, (sizeof(CONFIG_BT_DEVICE_NAME) - 1)),
}; 

// Start advertising
err = bt_le_adv_start(BT_LE_ADV_CONN, ad, ARRAY_SIZE(ad), NULL, 0);
if (err) 
{
        LOG_INF(&amp;quot;Advertising failed to start (err %d)\n&amp;quot;, err);
        return;
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK client scan does not see names advertised on nRF Connect peripheral</title><link>https://devzone.nordicsemi.com/thread/457253?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2023 03:51:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a01b817c-c45d-4d73-9969-6ee4ecf3c682</guid><dc:creator>fgeldenh</dc:creator><description>&lt;p&gt;Can you assist me getting this right. On the client I have a scan filter set up for the custom 128 bit UUID&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;MY_SERVICE_UUID&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;BT_UUID_128_ENCODE&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;0x9DAB8E8E&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0x75E9&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0x448B&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0xAD73&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0x98D596826FA8&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I would like to advertise with this UUID and a name of 8 characters.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;on the present nRF5 SDK Implementation the advertisement is set up as below. I would like to do the same in nRF Connect. I was under the impression that that is what I had done.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void advertising_init(void)
{
    ret_code_t    err_code;
    //ble_advertising_init_t init;

    memset(&amp;amp;adv_init, 0, sizeof(adv_init));

    adv_init.advdata.name_type               = BLE_ADVDATA_FULL_NAME;
    adv_init.advdata.include_appearance      = false;
    adv_init.advdata.flags                   = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;
    adv_init.advdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
    adv_init.advdata.uuids_complete.p_uuids  = m_adv_uuids;

    adv_init.config.ble_adv_fast_enabled   = true;
    adv_init.config.ble_adv_fast_interval  = APP_ADV_INTERVAL;
    adv_init.config.ble_adv_fast_timeout   = APP_ADV_DURATION;
    adv_init.config.ble_adv_on_disconnect_disabled = true;  // do not advertise after disconnect

    adv_init.evt_handler = on_adv_evt;

    err_code = ble_advertising_init(&amp;amp;m_advertising, &amp;amp;adv_init);
    APP_ERROR_CHECK(err_code);

    ble_advertising_conn_cfg_tag_set(&amp;amp;m_advertising, APP_BLE_CONN_CFG_TAG);
}
&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5 SDK client scan does not see names advertised on nRF Connect peripheral</title><link>https://devzone.nordicsemi.com/thread/457208?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2023 14:54:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:819f2d41-a7ce-4903-8bd1-23d8f03606e7</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;On the advertiser, you have the UUID in the advertising packet and the name in the scan response packet (which is an &amp;quot;extra&amp;quot; advertising packet). However, the scanner handles the advertising packets and scan response packets separately. So with this configuration it will not work (the UUID and name are not in the same packet). If you don&amp;#39;t need long advertising names, try fitting everything in an advertising packet and don&amp;#39;t use scan response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>