<?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 set BLE connection event length extension?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82099/how-to-set-ble-connection-event-length-extension</link><description>Hi everyone! 
 I&amp;#39;m working at ble multilink throughput, and the basic info shows as follows. 
 chip: nRF52832(one central and eight peripherals) 
 sdk: nRF5 SDK v17.0.2 
 softdevice: s132 v7.0.1 
 central example: https://github.com/NordicPlayground/nrf52</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Nov 2021 12:08:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82099/how-to-set-ble-connection-event-length-extension" /><item><title>RE: How to set BLE connection event length extension?</title><link>https://devzone.nordicsemi.com/thread/341060?ContentTypeID=1</link><pubDate>Mon, 29 Nov 2021 12:08:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c28b81bf-d14c-44db-9d09-b0f61effdeb1</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. Yes,&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__nrf__sdh__ble__config.html#gae8ebe11ee1b9ed9b0f57e6b0df122070"&gt;&lt;span&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH&lt;/span&gt;&lt;/a&gt;&amp;nbsp;is t&lt;span&gt;he time set aside for this connection on every connection interval in 1.25 ms units. 6x1.25ms=7.5ms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. Yes.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set BLE connection event length extension?</title><link>https://devzone.nordicsemi.com/thread/341006?ContentTypeID=1</link><pubDate>Mon, 29 Nov 2021 09:02:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1372e2ff-e0e7-4279-b697-a246778ff6a2</guid><dc:creator>ReedLi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1. For example, if i want to set connect event length 7.5ms, should central and peripherals all set&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH 6？&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2.&amp;nbsp; If central and peripheral all need to call&amp;nbsp;conn_evt_len_ext_set() to allow extend connect event length.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set BLE connection event length extension?</title><link>https://devzone.nordicsemi.com/thread/341003?ContentTypeID=1</link><pubDate>Mon, 29 Nov 2021 08:51:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed536c2c-d029-40f0-9962-728498fa9656</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1. When adjusting the define NRF_SDH_BLE_GAP_EVENT_LENGTH, you will extend the amount of data that the peripheral can send, but this might still be restricted by the central side.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. Yes.&amp;nbsp;You could use this conn_evt_len_ext_set function&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void conn_evt_len_ext_set(void)
{
    ret_code_t err_code;
    ble_opt_t  opt;

    memset(&amp;amp;opt, 0x00, sizeof(opt));
    opt.common_opt.conn_evt_ext.enable = 1;

    err_code = sd_ble_opt_set(BLE_COMMON_OPT_CONN_EVT_EXT, &amp;amp;opt);
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and call it after&amp;nbsp;ble_stack_init() in main() to&amp;nbsp;enable&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.1.1/structble__common__opt__conn__evt__ext__t.html?cp=3_5_2_2_2_0_2_3_9"&gt;extended BLE connection events&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>