<?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>Configuring the Link Layer for DLE with s132 v4.0.2?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21391/configuring-the-link-layer-for-dle-with-s132-v4-0-2</link><description>With s132 v3, in addition to configuring the GATT to receive larger packets like so: 
 
 ble_enable_params.gatt_enable_params.att_mtu = 247; 
err_code = softdevice_enable(&amp;amp;ble_enable_params); 
 
 you also had to configure the link layer: 
 
 ble_opts</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 May 2017 15:56:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21391/configuring-the-link-layer-for-dle-with-s132-v4-0-2" /><item><title>RE: Configuring the Link Layer for DLE with s132 v4.0.2?</title><link>https://devzone.nordicsemi.com/thread/83825?ContentTypeID=1</link><pubDate>Tue, 16 May 2017 15:56:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d990f0ba-2580-4642-8a6f-81f5a9cfb14c</guid><dc:creator>Elias</dc:creator><description>&lt;p&gt;Please ask your own question. I don&amp;#39;t need to be notified of your troubles.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring the Link Layer for DLE with s132 v4.0.2?</title><link>https://devzone.nordicsemi.com/thread/83827?ContentTypeID=1</link><pubDate>Tue, 16 May 2017 12:02:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b0f3b7f-9087-4282-8751-2f83db98cd65</guid><dc:creator>Andrzej Kuros</dc:creator><description>&lt;p&gt;What will happen if I do exchange mtu procedure but not execute sd_ble_gap_data_length_update(). Do I need to execute both procedures? If sd_ble_gap_data_length_update() procedure is not called but ATT_MTU is raised to say 247 bytes, will WriteCommand (3.4.5.3 od BT 4.2 core spec) be sliced somehow to fit smaller LL data size? What about limit of 6 transmissions
per connection event?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring the Link Layer for DLE with s132 v4.0.2?</title><link>https://devzone.nordicsemi.com/thread/83823?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 21:20:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02b2f420-9b25-406a-ab8e-7d12f53d125e</guid><dc:creator>Elias</dc:creator><description>&lt;p&gt;Turns out my issue was the maximum event length. Please report a note to change the description of NRF_ERROR_RESOURCES for sd_ble_gap_data_length_update(). No idea where/what &amp;quot;p_dl_limitation&amp;quot; is, and referencing the event length would be much more helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring the Link Layer for DLE with s132 v4.0.2?</title><link>https://devzone.nordicsemi.com/thread/83826?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2017 22:22:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c8b82dd-5166-4bb6-978b-2c302aa10a9e</guid><dc:creator>xeem</dc:creator><description>&lt;p&gt;Is there any reason that the MTU is limited to 247?  I would think you could increase this number by changing the starting RAM but it looks like the new API automatically allocates memory?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring the Link Layer for DLE with s132 v4.0.2?</title><link>https://devzone.nordicsemi.com/thread/83824?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2017 23:28:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e560dbb-69c0-47d2-9dd1-7f1e612c60d2</guid><dc:creator>Elias</dc:creator><description>&lt;p&gt;Not directly. Edited my question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring the Link Layer for DLE with s132 v4.0.2?</title><link>https://devzone.nordicsemi.com/thread/83822?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2017 15:14:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7726c5c9-e0c6-4daf-b8f8-b0d0a8c9198a</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Does the Data Length Update Procedure section in the migration document answer your question?&lt;/p&gt;
&lt;p&gt;Edit 19.03.2017:&lt;/p&gt;
&lt;p&gt;If you want to increase the ATT MTU you should add the following configuration:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define CONN_CFG_TAG                    1
#define NRF_BLE_GATT_MAX_MTU_SIZE       247

memset(&amp;amp;ble_cfg, 0x00, sizeof(ble_cfg));
ble_cfg.conn_cfg.conn_cfg_tag                 = CONN_CFG_TAG;
ble_cfg.conn_cfg.params.gatt_conn_cfg.att_mtu = NRF_BLE_GATT_MAX_MTU_SIZE;
err_code = sd_ble_cfg_set(BLE_CONN_CFG_GATT, &amp;amp;ble_cfg, ram_start);
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And reference this tag when you advertise or connect:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sd_ble_gap_adv_start(&amp;amp;adv_params, CONN_CFG_TAG);

sd_ble_gap_connect(&amp;amp;p_gap_evt-&amp;gt;params.adv_report.peer_addr,
                                  &amp;amp;m_scan_param,
                                  &amp;amp;m_conn_param,
                                  CONN_CFG_TAG);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And then call &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v4.0.2/group___b_l_e___g_a_t_t_c___m_t_u___e_x_c_h_a_n_g_e.html?cp=2_3_0_1_1_2_2_3_0"&gt;sd_ble_gattc_exchange_mtu_request()&lt;/a&gt; and/or react to the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v4.0.2/group___b_l_e___g_a_t_t_s___m_t_u___e_x_c_h_a_n_g_e.html?cp=2_3_0_1_1_2_4_3_1"&gt;BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST&lt;/a&gt; event.&lt;/p&gt;
&lt;p&gt;If you want to increase the LL data length call &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v4.0.2/group___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?cp=2_3_0_1_1_2_1_3_6"&gt;sd_ble_gap_data_length_update() or react to the BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST event.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You should also modify the maximum connection event length, for example for a 400 ms connection interval:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// Configure the maximum event length.
memset(&amp;amp;ble_cfg, 0x00, sizeof(ble_cfg));
ble_cfg.conn_cfg.conn_cfg_tag                     = CONN_CFG_TAG;
ble_cfg.conn_cfg.params.gap_conn_cfg.event_length = 320;
ble_cfg.conn_cfg.params.gap_conn_cfg.conn_count   = BLE_GAP_CONN_COUNT_DEFAULT;
err_code = sd_ble_cfg_set(BLE_CONN_CFG_GAP, &amp;amp;ble_cfg, ram_start);
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I also recommend studying the ble_app_att_mtu_throughput example.&lt;/p&gt;
&lt;p&gt;Let me know if anything is unclear.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>