<?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>How to implement CODED_PHY in ble_app_uart in SDK 15.3.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49202/how-to-implement-coded_phy-in-ble_app_uart-in-sdk-15-3-0</link><description>I am working long nrf52840 and trying to implement long range in my project. There were examples in SDK 15.2.0 but i couldn&amp;#39;t find any example or post which is related to SDK 15.3.0. I tried my own modification like changing the advertising layer from</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Jul 2019 07:11:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49202/how-to-implement-coded_phy-in-ble_app_uart-in-sdk-15-3-0" /><item><title>RE: How to implement CODED_PHY in ble_app_uart in SDK 15.3.0</title><link>https://devzone.nordicsemi.com/thread/201127?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 07:11:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91cbd67c-14cb-4391-9481-f559769434bb</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been on holiday.&lt;/p&gt;
&lt;p&gt;When ble_nus_data_send() returns NRF_ERROR_NOT_FOUND it is because the connection handle is wrong or the client context is NULL, you have to fix that.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement CODED_PHY in ble_app_uart in SDK 15.3.0</title><link>https://devzone.nordicsemi.com/thread/198212?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 14:16:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00131cdd-5713-4df3-afde-8a40a4cc8d24</guid><dc:creator>Yogeshwaran</dc:creator><description>&lt;p&gt;i have tried your code but when program is at &lt;pre class="ui-code" data-mode="c_cpp"&gt;err_code = ble_nus_data_send(&amp;amp;m_nus, data_array, &amp;amp;length, m_conn_handle);&lt;/pre&gt; the error code is &amp;#39;5&amp;#39; that means NRF_ERROR_NOT_FOUND and how can i solve that?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;or can you please kindly do some modification such that peripheral will transmit continuously and central will receive the data?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement CODED_PHY in ble_app_uart in SDK 15.3.0</title><link>https://devzone.nordicsemi.com/thread/196928?ContentTypeID=1</link><pubDate>Sat, 06 Jul 2019 03:27:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:378033e2-f7ef-4ff7-9dc1-dc3c9b1d2679</guid><dc:creator>Yogeshwaran</dc:creator><description>&lt;p&gt;k cool let me try that&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement CODED_PHY in ble_app_uart in SDK 15.3.0</title><link>https://devzone.nordicsemi.com/thread/196926?ContentTypeID=1</link><pubDate>Sat, 06 Jul 2019 01:40:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eec9f4ed-ff27-43e7-8e69-219fd5b1c4dd</guid><dc:creator>Jimmy Wong</dc:creator><description>&lt;p&gt;you can send the data through uart either central or peripheral.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement CODED_PHY in ble_app_uart in SDK 15.3.0</title><link>https://devzone.nordicsemi.com/thread/196922?ContentTypeID=1</link><pubDate>Sat, 06 Jul 2019 01:39:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:997a4dbe-7ba8-45b2-8e25-a8018fe09f7e</guid><dc:creator>Jimmy Wong</dc:creator><description>&lt;p&gt;This demo is mainly to show the long range connection and send the long MTU up to 244 bytes.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement CODED_PHY in ble_app_uart in SDK 15.3.0</title><link>https://devzone.nordicsemi.com/thread/196920?ContentTypeID=1</link><pubDate>Sat, 06 Jul 2019 00:33:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab16cd0d-2daf-4efb-8a41-54170ee48741</guid><dc:creator>Yogeshwaran</dc:creator><description>&lt;p&gt;i&amp;nbsp; am using nrf52840 DK and i can able to receive data whenever i reset the central only one data i am getting. your demo code will receive packets continuously or only once?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement CODED_PHY in ble_app_uart in SDK 15.3.0</title><link>https://devzone.nordicsemi.com/thread/196919?ContentTypeID=1</link><pubDate>Sat, 06 Jul 2019 00:29:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc63ebaf-1d4d-4fae-be7a-a1383e9cced7</guid><dc:creator>Jimmy Wong</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;May i know which HW do you use?&lt;/p&gt;
&lt;p&gt;Please make sure that the long range should be tested on the NRF52840 DK instead of PDK (preview DK).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement CODED_PHY in ble_app_uart in SDK 15.3.0</title><link>https://devzone.nordicsemi.com/thread/196899?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2019 17:14:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:456105d6-a505-4cca-aa9b-42c315a784a8</guid><dc:creator>Yogeshwaran</dc:creator><description>&lt;p&gt;I am using now demo code which is jimmy wang git hub repo for testing the long range in 15.3.0 sdk and i didn&amp;#39;t merge into my code. In his code i am facing the above mentioned issue like receiving packet whenever i reset the central.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement CODED_PHY in ble_app_uart in SDK 15.3.0</title><link>https://devzone.nordicsemi.com/thread/196788?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2019 10:24:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cea2b215-ffae-42a9-8e64-2f2f9c3a7b4b</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Are you running the demo code? Or have you combined the demo code with your code?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement CODED_PHY in ble_app_uart in SDK 15.3.0</title><link>https://devzone.nordicsemi.com/thread/196635?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 14:57:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03e928c5-264d-4199-9fc5-0208c1cfdb9a</guid><dc:creator>Yogeshwaran</dc:creator><description>&lt;p&gt;Yeah Thanks for you help! AndreasF.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement CODED_PHY in ble_app_uart in SDK 15.3.0</title><link>https://devzone.nordicsemi.com/thread/196634?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 14:56:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92825691-a17e-4424-a515-2bfe73ff63e6</guid><dc:creator>Yogeshwaran</dc:creator><description>&lt;p&gt;i have tried your code now what is happening is peripheral is transmitting and central is powered but it is not receiving any packet from peripheral. It receives only one packet whenever i hit reset button in central and stops. can you tell me how to receive packets continue?&lt;/p&gt;
&lt;p&gt;i added RSSI print in BLE_GAP_EVT_ADV_REPORT switch case in ble_evt_handler() function to check the packets are receiving are not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement CODED_PHY in ble_app_uart in SDK 15.3.0</title><link>https://devzone.nordicsemi.com/thread/196501?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 11:01:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62ab5d3f-a92b-4a47-bcd9-97da74439021</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;You really should not modify source files inside the SDK, this can have unwelcome consequences.&lt;/p&gt;
&lt;p&gt;I suggest that you revert the modifications you have made in ble_advertisng.c, and take a look at how &lt;a href="https://devzone.nordicsemi.com/members/jimmy-wong"&gt;Jimmy Wong&lt;/a&gt; have implemented BLE_GAP_PHY_CODED in the GitHub link he attached in his reply, you should only have to modify &lt;strong&gt;advertising_init &lt;/strong&gt;in order to configure coded phy.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement CODED_PHY in ble_app_uart in SDK 15.3.0</title><link>https://devzone.nordicsemi.com/thread/196473?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 10:08:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c783795-f242-4909-8ccb-7dc84ff5b8e7</guid><dc:creator>Yogeshwaran</dc:creator><description>&lt;p&gt;i have attached the main.c file and copy of ble_advertisng.c where i made changes for coded mode testing.is there any changes need to be done in sdk_config.h also?&lt;pre class="ui-code" data-mode="c_cpp"&gt;// ble_advertising.c 

#define BLE_APP_UART_CODED_ENABLED 1

uint32_t ble_advertising_init(ble_advertising_t            * const p_advertising,
                              ble_advertising_init_t const * const p_init)
{
    uint32_t ret;
    if ((p_init == NULL) || (p_advertising == NULL))
    {
        return NRF_ERROR_NULL;
    }
    if (!config_is_valid(&amp;amp;p_init-&amp;gt;config))
    {
        return NRF_ERROR_INVALID_PARAM;
    }
    p_advertising-&amp;gt;adv_mode_current               = BLE_ADV_MODE_FAST;
    p_advertising-&amp;gt;adv_modes_config               = p_init-&amp;gt;config;
    p_advertising-&amp;gt;conn_cfg_tag                   = BLE_CONN_CFG_TAG_DEFAULT;
    p_advertising-&amp;gt;evt_handler                    = p_init-&amp;gt;evt_handler;
    p_advertising-&amp;gt;error_handler                  = p_init-&amp;gt;error_handler;
    p_advertising-&amp;gt;current_slave_link_conn_handle = BLE_CONN_HANDLE_INVALID;
    p_advertising-&amp;gt;p_adv_data                     = &amp;amp;p_advertising-&amp;gt;adv_data;
    //p_advertising-&amp;gt;adv_modes_config.ble_adv_extended_enabled = true;

    memset(&amp;amp;p_advertising-&amp;gt;peer_address, 0, sizeof(p_advertising-&amp;gt;peer_address));

    // Copy advertising data.
    if (!p_advertising-&amp;gt;initialized)
    {
        p_advertising-&amp;gt;adv_handle = BLE_GAP_ADV_SET_HANDLE_NOT_SET;
    }
    p_advertising-&amp;gt;adv_data.adv_data.p_data = p_advertising-&amp;gt;enc_advdata;

    if (p_advertising-&amp;gt;adv_modes_config.ble_adv_extended_enabled == true)
    {
#ifdef BLE_GAP_ADV_SET_DATA_SIZE_EXTENDED_CONNECTABLE_MAX_SUPPORTED
        p_advertising-&amp;gt;adv_data.adv_data.len = BLE_GAP_ADV_SET_DATA_SIZE_EXTENDED_CONNECTABLE_MAX_SUPPORTED;
#else
    p_advertising-&amp;gt;adv_data.adv_data.len = BLE_GAP_ADV_SET_DATA_SIZE_MAX;
#endif // BLE_GAP_ADV_SET_DATA_SIZE_EXTENDED_CONNECTABLE_MAX_SUPPORTED
    }
    else
    {
        p_advertising-&amp;gt;adv_data.adv_data.len = BLE_GAP_ADV_SET_DATA_SIZE_MAX;
    }

    ret = ble_advdata_encode(&amp;amp;p_init-&amp;gt;advdata, p_advertising-&amp;gt;enc_advdata, &amp;amp;p_advertising-&amp;gt;adv_data.adv_data.len);
    VERIFY_SUCCESS(ret);

    p_advertising-&amp;gt;adv_data.scan_rsp_data.p_data = p_advertising-&amp;gt;enc_scan_rsp_data;
    if (p_advertising-&amp;gt;adv_modes_config.ble_adv_extended_enabled == true)
    {
#ifdef BLE_GAP_ADV_SET_DATA_SIZE_EXTENDED_CONNECTABLE_MAX_SUPPORTED
        p_advertising-&amp;gt;adv_data.scan_rsp_data.len = BLE_GAP_ADV_SET_DATA_SIZE_EXTENDED_CONNECTABLE_MAX_SUPPORTED;
#else
        p_advertising-&amp;gt;adv_data.scan_rsp_data.len = BLE_GAP_ADV_SET_DATA_SIZE_MAX;
#endif // BLE_GAP_ADV_SET_DATA_SIZE_EXTENDED_CONNECTABLE_MAX_SUPPORTED
    }
    else
    {
        p_advertising-&amp;gt;adv_data.scan_rsp_data.len = BLE_GAP_ADV_SET_DATA_SIZE_MAX;
    }
    ret = ble_advdata_encode(&amp;amp;p_init-&amp;gt;srdata,
                              p_advertising-&amp;gt;adv_data.scan_rsp_data.p_data,
                             &amp;amp;p_advertising-&amp;gt;adv_data.scan_rsp_data.len);
    VERIFY_SUCCESS(ret);

    // Configure a initial advertising configuration. The advertising data and and advertising
    // parameters will be changed later when we call @ref ble_advertising_start, but must be set
    // to legal values here to define an advertising handle.
    p_advertising-&amp;gt;adv_params.primary_phy     = BLE_GAP_PHY_1MBPS;
    #ifdef BLE_APP_UART_CODED
    p_advertising-&amp;gt;adv_params.primary_phy     = BLE_GAP_PHY_CODED;
    p_advertising-&amp;gt;adv_params.secondary_phy   = BLE_GAP_PHY_CODED;
    #endif
    p_advertising-&amp;gt;adv_params.duration        = p_advertising-&amp;gt;adv_modes_config.ble_adv_fast_timeout;
    p_advertising-&amp;gt;adv_params.properties.type = BLE_GAP_ADV_TYPE_NONCONNECTABLE_SCANNABLE_UNDIRECTED;
    #ifdef BLE_APP_UART_CODED
    p_advertising-&amp;gt;adv_params.properties.type = BLE_GAP_ADV_TYPE_EXTENDED_NONCONNECTABLE_SCANNABLE_UNDIRECTED;
    #endif
    p_advertising-&amp;gt;adv_params.p_peer_addr     = NULL;
    p_advertising-&amp;gt;adv_params.filter_policy   = BLE_GAP_ADV_FP_ANY;
    p_advertising-&amp;gt;adv_params.interval        = p_advertising-&amp;gt;adv_modes_config.ble_adv_fast_interval;

    ret = sd_ble_gap_adv_set_configure(&amp;amp;p_advertising-&amp;gt;adv_handle, &amp;amp;p_advertising-&amp;gt;adv_data, &amp;amp;p_advertising-&amp;gt;adv_params);
    VERIFY_SUCCESS(ret);

    p_advertising-&amp;gt;initialized = true;
    return ret;
}

uint32_t ble_advertising_start(ble_advertising_t * const p_advertising,
                               ble_adv_mode_t            advertising_mode)
{
    uint32_t ret;

    if (p_advertising-&amp;gt;initialized == false)
    {
        return NRF_ERROR_INVALID_STATE;
    }

    p_advertising-&amp;gt;adv_mode_current = advertising_mode;

    memset(&amp;amp;p_advertising-&amp;gt;peer_address, 0, sizeof(p_advertising-&amp;gt;peer_address));

    if (  ((p_advertising-&amp;gt;adv_modes_config.ble_adv_directed_high_duty_enabled) &amp;amp;&amp;amp; (p_advertising-&amp;gt;adv_mode_current == BLE_ADV_MODE_DIRECTED_HIGH_DUTY))
        ||((p_advertising-&amp;gt;adv_modes_config.ble_adv_directed_enabled)           &amp;amp;&amp;amp; (p_advertising-&amp;gt;adv_mode_current == BLE_ADV_MODE_DIRECTED_HIGH_DUTY))
        ||((p_advertising-&amp;gt;adv_modes_config.ble_adv_directed_enabled)           &amp;amp;&amp;amp; (p_advertising-&amp;gt;adv_mode_current == BLE_ADV_MODE_DIRECTED))
       )
    {
        if (p_advertising-&amp;gt;evt_handler != NULL)
        {
            p_advertising-&amp;gt;peer_addr_reply_expected = true;
            p_advertising-&amp;gt;evt_handler(BLE_ADV_EVT_PEER_ADDR_REQUEST);
        }
        else
        {
            p_advertising-&amp;gt;peer_addr_reply_expected = false;
        }
    }

    p_advertising-&amp;gt;adv_mode_current = adv_mode_next_avail_get(p_advertising, advertising_mode);

    // Fetch the whitelist.
    if ((p_advertising-&amp;gt;evt_handler != NULL) &amp;amp;&amp;amp;
        (p_advertising-&amp;gt;adv_mode_current == BLE_ADV_MODE_FAST || p_advertising-&amp;gt;adv_mode_current == BLE_ADV_MODE_SLOW) &amp;amp;&amp;amp;
        (p_advertising-&amp;gt;adv_modes_config.ble_adv_whitelist_enabled) &amp;amp;&amp;amp;
        (!p_advertising-&amp;gt;whitelist_temporarily_disabled))
    {
        p_advertising-&amp;gt;whitelist_in_use         = false;
        p_advertising-&amp;gt;whitelist_reply_expected = true;
        p_advertising-&amp;gt;evt_handler(BLE_ADV_EVT_WHITELIST_REQUEST);
    }
    else
    {
        p_advertising-&amp;gt;whitelist_reply_expected = false;
    }

    // Initialize advertising parameters with default values.
    memset(&amp;amp;p_advertising-&amp;gt;adv_params, 0, sizeof(p_advertising-&amp;gt;adv_params));
    p_advertising-&amp;gt;adv_params.properties.type = BLE_GAP_ADV_TYPE_NONCONNECTABLE_SCANNABLE_UNDIRECTED;
    #ifdef BLE_APP_UART_CODED
    p_advertising-&amp;gt;adv_params.properties.type = BLE_GAP_ADV_TYPE_EXTENDED_NONCONNECTABLE_SCANNABLE_UNDIRECTED;
    #endif

    // Use 1MBIT as primary phy if no phy was selected.
    if (phy_is_valid(&amp;amp;p_advertising-&amp;gt;adv_modes_config.ble_adv_primary_phy))
    {
        p_advertising-&amp;gt;adv_params.primary_phy = p_advertising-&amp;gt;adv_modes_config.ble_adv_primary_phy;
 
    }
    else
    {
        p_advertising-&amp;gt;adv_params.primary_phy = BLE_GAP_PHY_1MBPS;
        #ifdef BLE_APP_UART_CODED
        p_advertising-&amp;gt;adv_params.primary_phy = BLE_GAP_PHY_CODED;
        #endif

    }

    if (p_advertising-&amp;gt;adv_modes_config.ble_adv_extended_enabled)
    {
        // Use 1MBIT as secondary phy if no phy was selected.
        if (phy_is_valid(&amp;amp;p_advertising-&amp;gt;adv_modes_config.ble_adv_primary_phy))
        {
            p_advertising-&amp;gt;adv_params.secondary_phy = p_advertising-&amp;gt;adv_modes_config.ble_adv_secondary_phy;

        }
        else
        {
            p_advertising-&amp;gt;adv_params.secondary_phy = BLE_GAP_PHY_1MBPS;
            #ifdef BLE_APP_UART_CODED
            p_advertising-&amp;gt;adv_params.secondary_phy = BLE_GAP_PHY_CODED;
            #endif
        }
    }
     p_advertising-&amp;gt;adv_params.filter_policy = BLE_GAP_ADV_FP_ANY;

    // Set advertising parameters and events according to selected advertising mode.
    switch (p_advertising-&amp;gt;adv_mode_current)
    {
        case BLE_ADV_MODE_DIRECTED_HIGH_DUTY:
            ret = set_adv_mode_directed_high_duty(p_advertising, &amp;amp;p_advertising-&amp;gt;adv_params);
            break;

        case BLE_ADV_MODE_DIRECTED:
            ret = set_adv_mode_directed(p_advertising, &amp;amp;p_advertising-&amp;gt;adv_params);
            break;

        case BLE_ADV_MODE_FAST:
            ret = set_adv_mode_fast(p_advertising, &amp;amp;p_advertising-&amp;gt;adv_params);
            break;

        case BLE_ADV_MODE_SLOW:
            ret = set_adv_mode_slow(p_advertising, &amp;amp;p_advertising-&amp;gt;adv_params);
            break;

        case BLE_ADV_MODE_IDLE:
            p_advertising-&amp;gt;adv_evt = BLE_ADV_EVT_IDLE;
            break;

        default:
            break;
    }

    if (p_advertising-&amp;gt;adv_mode_current != BLE_ADV_MODE_IDLE)
    {
        //#ifndef BLE_APP_UART_CODED
        uint8_t *p_data_test = p_advertising-&amp;gt;p_adv_data-&amp;gt;adv_data.p_data;
        for(int d=0;d&amp;lt;31;d++){
        printf(&amp;quot;\n value %d = %X&amp;quot;,d,*p_data_test);
        p_data_test++;
        nrf_delay_ms(10);
        }
        ret = sd_ble_gap_adv_set_configure(&amp;amp;p_advertising-&amp;gt;adv_handle, &amp;amp;p_advertising-&amp;gt;adv_data, &amp;amp;p_advertising-&amp;gt;adv_params);
        if (ret != NRF_SUCCESS)
        {
            return ret;
        }
        //#endif
        ret = sd_ble_gap_adv_start(p_advertising-&amp;gt;adv_handle, p_advertising-&amp;gt;conn_cfg_tag);

        if (ret != NRF_SUCCESS)
        {
            return ret;
        }
    }

    if (p_advertising-&amp;gt;evt_handler != NULL)
    {
        p_advertising-&amp;gt;evt_handler(p_advertising-&amp;gt;adv_evt);
    }

    return NRF_SUCCESS;
}
&lt;/pre&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3113.main.c"&gt;devzone.nordicsemi.com/.../3113.main.c&lt;/a&gt;whenever code is at&amp;nbsp;sd_ble_gap_adv_set_configure() device resets and if i comment it then it is advertising in legacy mode even if the primary_phy i made as coded phy in ble_advertisng_init().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement CODED_PHY in ble_app_uart in SDK 15.3.0</title><link>https://devzone.nordicsemi.com/thread/196424?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 08:36:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7bf0afd-b4ad-4221-bdb1-a957f515987b</guid><dc:creator>Yogeshwaran</dc:creator><description>&lt;p&gt;yeah sure i can share&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement CODED_PHY in ble_app_uart in SDK 15.3.0</title><link>https://devzone.nordicsemi.com/thread/196416?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 08:27:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98c44337-383d-4a62-b2e8-7a973d3367cc</guid><dc:creator>Jimmy Wong</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;you can find the demo code at&amp;nbsp;&lt;a href="https://github.com/jimmywong2003/nrf52-ble5-long-range-demo"&gt;https://github.com/jimmywong2003/nrf52-ble5-long-range-demo&lt;/a&gt;.&amp;nbsp; this demo is only long range advertising.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement CODED_PHY in ble_app_uart in SDK 15.3.0</title><link>https://devzone.nordicsemi.com/thread/196402?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 07:51:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25697f12-e9a5-4bc4-b519-0739fd7b8376</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not quite sure what you are talking about here, could you share your main.c file?&lt;/p&gt;
&lt;p&gt;I can make the case private if you like.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement CODED_PHY in ble_app_uart in SDK 15.3.0</title><link>https://devzone.nordicsemi.com/thread/196333?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2019 16:58:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f99dd04f-21ae-4451-9414-e9bc9141de5a</guid><dc:creator>Yogeshwaran</dc:creator><description>&lt;p&gt;I have did this already in my code. so whenever ble advertising is starting the device is resetting. Legacy mode is working perfectly without any issue in the same code. The point where it is &amp;#39;sd_ble_cfg_set()&amp;#39; function, so if i do the above change and comment out this part then it is advertising in legacy mode and once if i un comment the above function(already primary_phy and propertise.type are change to coded and extended respectively) then device resetting.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What could be the issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement CODED_PHY in ble_app_uart in SDK 15.3.0</title><link>https://devzone.nordicsemi.com/thread/195883?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 09:03:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf9fab3f-1fe0-4b93-9dca-117c57eac2db</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;You have to set the &lt;strong&gt;adv_params.primary_phy&lt;/strong&gt; to &lt;strong&gt;BLE_GAP_PHY_CODED&lt;/strong&gt;.and check that the &lt;strong&gt;adv_params.properties.type&lt;/strong&gt; is a &lt;strong&gt;EXTENDED&lt;/strong&gt; option.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>