<?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>Packet Length Extension</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36130/packet-length-extension</link><description>Using the nRF52832 device with the S132-v3.0 soft-device (s132_nrf52_3.0.0_softdevice) and SDK version 12 (SDK120200F12) (Customized for our application, which includes use of the non-blocking SAADC ) 
 
 1. Please provide actual functioning code that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 Oct 2018 10:08:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36130/packet-length-extension" /><item><title>RE: Packet Length Extension</title><link>https://devzone.nordicsemi.com/thread/150918?ContentTypeID=1</link><pubDate>Mon, 01 Oct 2018 10:08:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2af40a1-0124-4a09-a79e-20768eb38852</guid><dc:creator>veletron</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Just a note for others. A DLE example has appeared in SDK V15.2 See here:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.2.0%2Fble_sdk_app_att_mtu.html&amp;amp;cp=4_0_0_4_1_1_0"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.2.0%2Fble_sdk_app_att_mtu.html&amp;amp;cp=4_0_0_4_1_1_0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The DLE Update procedure for SoftDevice 132 V6.0.x can be found here:&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.0.0%2Fgroup___b_l_e___g_a_p___d_a_t_a___l_e_n_g_t_h___u_p_d_a_t_e___p_r_o_c_e_d_u_r_e___m_s_c.html&amp;amp;cp=2_3_1_1_0_2_1_3_6"&gt;http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.0.0%2Fgroup___b_l_e___g_a_p___d_a_t_a___l_e_n_g_t_h___u_p_d_a_t_e___p_r_o_c_e_d_u_r_e___m_s_c.html&amp;amp;cp=2_3_1_1_0_2_1_3_6&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Nigel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Packet Length Extension</title><link>https://devzone.nordicsemi.com/thread/150417?ContentTypeID=1</link><pubDate>Wed, 26 Sep 2018 08:46:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d51c8dbf-136d-4471-8a1f-f3cd2491c72c</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please refer to the Migration Document for S132 v6.0.0. It shows how to initiate (or respond to) a data length update procedure. You can find&amp;nbsp;the document&amp;nbsp;here:&amp;nbsp;&lt;a href="https://www.nordicsemi.com/eng/nordic/Products/nRF52-DK/S132-SD-v6/67250"&gt;https://www.nordicsemi.com/eng/nordic/Products/nRF52-DK/S132-SD-v6/67250&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Packet Length Extension</title><link>https://devzone.nordicsemi.com/thread/150295?ContentTypeID=1</link><pubDate>Tue, 25 Sep 2018 14:06:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09044eac-6563-4cad-849a-b93d73da21da</guid><dc:creator>veletron</dc:creator><description>&lt;p&gt;Can nordic provide similar code for Soft Device 132 V6.0.0, SDK 15.0 ?? The code&amp;nbsp;above&amp;nbsp; does not work for this soft device&amp;nbsp; as BLE_GAP_OPT_EXT_LEN is not defined and&amp;nbsp;ext_len is not a member of&amp;nbsp; gap_opt ?? I can find no exampled showing the correct way to do LE Length Extension...&lt;/p&gt;
&lt;p&gt;Nigel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Packet Length Extension</title><link>https://devzone.nordicsemi.com/thread/139260?ContentTypeID=1</link><pubDate>Fri, 06 Jul 2018 12:56:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b215d31c-bc25-4f3d-8a97-dd916be06ed2</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;To set the DLE to e.g. 50 you can use this code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void ble_stack_init(void)
{
    uint32_t err_code;

    nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;

    // Initialize SoftDevice.
    SOFTDEVICE_HANDLER_INIT(&amp;amp;clock_lf_cfg, NULL);

    ble_enable_params_t ble_enable_params;
    err_code = softdevice_enable_get_default_config(CENTRAL_LINK_COUNT,
                                                    PERIPHERAL_LINK_COUNT,
                                                    &amp;amp;ble_enable_params);
    APP_ERROR_CHECK(err_code);
    
    //Check the ram settings against the used number of links
    CHECK_RAM_START_ADDR(CENTRAL_LINK_COUNT,PERIPHERAL_LINK_COUNT);

    // Enable BLE stack.
#if (NRF_SD_BLE_API_VERSION == 3)
    ble_enable_params.gatt_enable_params.att_mtu = NRF_BLE_MAX_MTU_SIZE;
#endif
    err_code = softdevice_enable(&amp;amp;ble_enable_params);
    APP_ERROR_CHECK(err_code);

    // Subscribe for BLE events.
    err_code = softdevice_ble_evt_handler_set(ble_evt_dispatch);
    APP_ERROR_CHECK(err_code);
    
    
    ble_opt_t gap_opt;
    gap_opt.gap_opt.ext_len.rxtx_max_pdu_payload_size = 54; //Example: set max length to 54bytes
    err_code = sd_ble_opt_set(BLE_GAP_OPT_EXT_LEN, &amp;amp;gap_opt);
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;make sure to call sd_ble_opt_set()&amp;nbsp;&lt;em&gt;after&lt;/em&gt; you have enabled the Softdevice with&amp;nbsp;softdevice_enable(). Otherwise you will get error 0x3001.&lt;/p&gt;
&lt;p&gt;Also remember to increase the MTU size accordingly. In the BLE UART example you can do this by setting&amp;nbsp;GATT_MTU_SIZE_DEFAULT in ble_gatt.h to the value you want.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>