<?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>Extended Advertising on NRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46017/extended-advertising-on-nrf52832</link><description>Hi 
 
 Using SD Version 6.1.1 and NRF Version 15.3.0. 
 
 Using the following advertising params I can set non-extended advertising 
 ble_gap_adv_params_t advertisingParameters; 
 advertisingParameters.properties.type = BLE_GAP_ADV_TYPE_CONNECTABLE_SCANNABLE_UNDIRECTED;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Apr 2019 12:32:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46017/extended-advertising-on-nrf52832" /><item><title>RE: Extended Advertising on NRF52832</title><link>https://devzone.nordicsemi.com/thread/181595?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 12:32:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1853374-bd45-4a7c-aabf-e73bef3dc51f</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;There&amp;#39;s more to the initialization function. More specifically you are probably calling sd_ble_gap_adv_set_configure() in the end to configure the advertising paramters.&lt;/p&gt;
&lt;p&gt;Anyways, here&amp;#39;s an example I tested with here, and is working with extended advertising:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void extended_adv_init(void)
{
    memset(&amp;amp;m_adv_params, 0, sizeof(m_adv_params));
    //m_adv_params.properties.type = BLE_GAP_ADV_TYPE_CONNECTABLE_SCANNABLE_UNDIRECTED;
    m_adv_params.properties.type = BLE_GAP_ADV_TYPE_EXTENDED_CONNECTABLE_NONSCANNABLE_UNDIRECTED;
    m_adv_params.p_peer_addr     = NULL;
    m_adv_params.duration        = BLE_GAP_ADV_TIMEOUT_GENERAL_UNLIMITED;
    m_adv_params.interval      = 0x40;
    m_adv_params.primary_phy   = BLE_GAP_PHY_AUTO;
    m_adv_params.secondary_phy   = BLE_GAP_PHY_AUTO;
    m_adv_params.set_id         = 4;
    m_adv_params.filter_policy = BLE_GAP_ADV_FP_ANY;
}

static void advertising_init(void)
{
    ret_code_t               err_code;
    ble_advdata_t            advdata;
    ble_advdata_manuf_data_t manuf_data;

    memset(&amp;amp;advdata, 0, sizeof(advdata));

    manuf_data.company_identifier = COMPANY_IDENTIFIER;
    manuf_data.data.size          = ADV_ADDL_MANUF_DATA_LEN;
    manuf_data.data.p_data        = m_addl_adv_manuf_data;

    advdata.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;
    advdata.p_manuf_specific_data = &amp;amp;manuf_data;

    err_code = ble_advdata_encode(&amp;amp;advdata, m_adv_data.adv_data.p_data, &amp;amp;m_adv_data.adv_data.len);
    APP_ERROR_CHECK(err_code);

    err_code = sd_ble_gap_adv_set_configure(&amp;amp;m_adv_handle, &amp;amp;m_adv_data, &amp;amp;m_adv_params);
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extended Advertising on NRF52832</title><link>https://devzone.nordicsemi.com/thread/181475?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 07:59:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c408bf7-4371-4cca-84aa-1a827a06fde6</guid><dc:creator>NordJus</dc:creator><description>&lt;p&gt;Hi&lt;br /&gt;&lt;br /&gt;Here is the rest of the setup&lt;br /&gt;&lt;br /&gt;memset(&amp;amp;&lt;span&gt;advertisingParameters,0x00,sizeof(advertisingParameters));&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;advertisingParameters.properties.type = &lt;span&gt;BLE_GAP_ADV_TYPE_EXTENDED_CONNECTABLE_NONSCANNABLE_UNDIRECTED&lt;/span&gt;;&amp;nbsp;&lt;br /&gt; advertisingParameters.p_peer_addr = NULL;&amp;nbsp;&lt;br /&gt; advertisingParameters.duration = BLE_GAP_ADV_TIMEOUT_GENERAL_UNLIMITED;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;advertisingParameters.interval = 0x40;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;advertisingParameters.primary_phy = BLE_GAP_PHY_AUTO;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;advertisingParameters.secondary_phy = BLE_GAP_PHY_AUTO;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt; advertisingParameters.set_id = 4;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;advertisingParameters.filter_policy = BLE_GAP_ADV_FP_ANY;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;From a working&amp;nbsp;instance where a remote central sees the advertising&amp;nbsp;the only line I have changed&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;advertisingParameters.properties.type = BLE_GAP_ADV_TYPE_CONNECTABLE_SCANNABLE_UNDIRECTED;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Many thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extended Advertising on NRF52832</title><link>https://devzone.nordicsemi.com/thread/181368?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2019 14:55:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8938aef5-3816-40ee-b800-b92bb3930612</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, can you please post the rest of the advertising init function?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>