<?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>Enable event lenght extension on sdk 1.7.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83088/enable-event-lenght-extension-on-sdk-1-7-0</link><description>Hi, 
 I am trying to enable event length extension on uart example provided on the sdk. I look for information on how to done it and i found links like that: 
 https://devzone.nordicsemi.com/f/nordic-q-a/22698/setting-gap-connection-event-length---ble</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Jan 2022 09:36:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83088/enable-event-lenght-extension-on-sdk-1-7-0" /><item><title>RE: Enable event lenght extension on sdk 1.7.0</title><link>https://devzone.nordicsemi.com/thread/345842?ContentTypeID=1</link><pubDate>Tue, 04 Jan 2022 09:36:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3423755-c2f3-4eae-9122-a099a5851b43</guid><dc:creator>Martijn Jonkers</dc:creator><description>&lt;p&gt;could it be the&amp;nbsp;&amp;#39;&lt;span&gt;dynamic event length&amp;#39;&lt;/span&gt;&amp;nbsp;is already enabled by default in the throughput example?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable event lenght extension on sdk 1.7.0</title><link>https://devzone.nordicsemi.com/thread/345841?ContentTypeID=1</link><pubDate>Tue, 04 Jan 2022 09:32:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59625bff-f932-4d95-b256-a9b30bd2fde2</guid><dc:creator>sotillo2409</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see a similar implementation on another example, could you check that this is correct?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static int EvtLen(void)
{       
        int err;
	struct net_buf *buf;
	sdc_hci_cmd_vs_conn_event_extend_t *evt_enable;

	buf = bt_hci_cmd_create(SDC_HCI_OPCODE_CMD_VS_CONN_EVENT_EXTEND,
				sizeof(*evt_enable));
	if (!buf) {
		printk(&amp;quot;Could not allocate LLPM command buffer\n&amp;quot;);
		return -ENOMEM;
	}
        evt_enable = net_buf_add(buf, sizeof(*evt_enable));
	evt_enable-&amp;gt;enable = 2;

	err = bt_hci_cmd_send_sync(SDC_HCI_OPCODE_CMD_VS_CONN_EVENT_EXTEND, buf, NULL);
	if (err) {
		printk(&amp;quot;Error enabling EVENT %d\n&amp;quot;, err);
		return err;
	}

	printk(&amp;quot;EVENT mode enabled\n&amp;quot;);
	return 0;
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable event lenght extension on sdk 1.7.0</title><link>https://devzone.nordicsemi.com/thread/345820?ContentTypeID=1</link><pubDate>Tue, 04 Jan 2022 08:37:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce920041-c072-4330-a797-68613dd96121</guid><dc:creator>sotillo2409</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;that was an usefull information, i appreciate it. But I am not able to implement a way to enable/disable extended connection events.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;        sdc_hci_cmd_vs_conn_event_extend_t x={0};

        erri=sdc_hci_cmd_vs_conn_event_extend(&amp;amp;x);
        
        if(erri)printk(&amp;quot;FALLO CON EVT LEN&amp;quot;);
        else printk(&amp;quot;OK EVT LEN&amp;quot;);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I am trying this, and the function is returning 0 always, inclusive when i pass a 2 on the argument.&lt;/p&gt;
&lt;p&gt;Could you tell me what is the propper way to&amp;nbsp;&lt;/p&gt;
[quote userid="72692" url="~/f/nordic-q-a/83088/enable-event-lenght-extension-on-sdk-1-7-0/345707#345707"] send the HCI command&amp;nbsp;&lt;span&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrfxlib/blob/v1.8.0/softdevice_controller/include/sdc_hci_vs.h#L63"&gt;SDC_HCI_OPCODE_CMD_VS_CONN_EVENT_EXTEND&lt;/a&gt; from the BLE host to the BLE&lt;/span&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am trying to follow this ticket:&lt;/p&gt;
[quote userid="72692" url="~/f/nordic-q-a/83088/enable-event-lenght-extension-on-sdk-1-7-0/345707#345707"]This ticket[/quote]
&lt;p&gt;But on the actual ncs 1.7.0 i am not able to reproduce it. I am working with nrf52840.&lt;/p&gt;
&lt;p&gt;Thank you for the help and regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable event lenght extension on sdk 1.7.0</title><link>https://devzone.nordicsemi.com/thread/345707?ContentTypeID=1</link><pubDate>Mon, 03 Jan 2022 14:44:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5127c99-28e6-4a55-9d57-8f5fd2831f95</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Sorry for being too quick and not answering your question. Let&amp;#39;s try again&lt;/p&gt;
&lt;p&gt;Regarding the event length, see the&amp;nbsp;comment in&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrfxlib/blob/v1.8.0/softdevice_controller/include/sdc_hci_vs.h#L589-L595"&gt;softdevice_controller/include/sdc_hci_vs.h&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;* When Extended Connection Events are disabled, the maximum connection event length is set by @ref&lt;br /&gt; * sdc_hci_cmd_vs_event_length_set().&lt;br /&gt; * When Extended Connection Events are enabled, the controller will extend the connection event as&lt;br /&gt; * much as possible, if:&lt;br /&gt; * - Either of the peers has more data to send.&lt;br /&gt; * See also: Core v5.1, Vol 6, Part B, Section 4.5.6&lt;br /&gt; * - There are no conflicts with other concurrent links.&lt;br /&gt; *&lt;br /&gt; * A connection event can not be extended beyond the connection interval.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;So, if you &lt;strong&gt;enable extended connection events&amp;nbsp;&lt;/strong&gt;(dynamic eventh length), the maximum event length is set by the connection interval. To set the connection interval check out &lt;span&gt;the example&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/v1.8.0/samples/bluetooth/throughput"&gt;nrf/samples/bluetooth/throughput&lt;/a&gt;&amp;nbsp;and this case:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/69473/ncs-connection-interval-changing-to-config_bt_peripheral_pref_max_int-after-5s"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/69473/ncs-connection-interval-changing-to-config_bt_peripheral_pref_max_int-after-5s&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you &lt;strong&gt;disable extended connection events &lt;/strong&gt;(constant eventh length), the maximum event length is set by the event length, which can be set through the config&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.8.0/subsys/bluetooth/controller/Kconfig#L96-L103"&gt; CONFIG_SDC_MAX_CONN_EVENT_LEN_DEFAULT&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To &lt;strong&gt;enable/disable extended connection events&lt;/strong&gt;, send the HCI command&amp;nbsp;&lt;span&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrfxlib/blob/v1.8.0/softdevice_controller/include/sdc_hci_vs.h#L63"&gt;SDC_HCI_OPCODE_CMD_VS_CONN_EVENT_EXTEND&lt;/a&gt; from the BLE host to the BLE controller, which &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.8.0/subsys/bluetooth/controller/hci_internal.c#L939-L940"&gt;will trigger&lt;/a&gt; the function&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrfxlib/blob/v1.8.0/softdevice_controller/include/sdc_hci_vs.h#L607"&gt;sdc_hci_cmd_vs_conn_event_extend()&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/22698/setting-gap-connection-event-length---ble-hrs-c-demo/89234#89234"&gt;This ticket&lt;/a&gt; explains event length/event length extension in great details&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable event lenght extension on sdk 1.7.0</title><link>https://devzone.nordicsemi.com/thread/345574?ContentTypeID=1</link><pubDate>Mon, 03 Jan 2022 07:36:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2c11e66-4cf1-423c-8aa0-205d22f6e8e9</guid><dc:creator>sotillo2409</dc:creator><description>&lt;p&gt;On another words, i need to know how to modify&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;on the actual ncs, because of i can&amp;#39;t find any k_config for this.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable event lenght extension on sdk 1.7.0</title><link>https://devzone.nordicsemi.com/thread/345568?ContentTypeID=1</link><pubDate>Mon, 03 Jan 2022 06:54:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c329fa5-105f-421c-a1d4-0afd3df2a10c</guid><dc:creator>sotillo2409</dc:creator><description>&lt;p&gt;Sorry for the&amp;nbsp;misunderstanding, i am using nRF Connect for Desktop v3.9.1, wth NCS 1.7.0.&lt;/p&gt;
[quote userid="72692" url="~/f/nordic-q-a/83088/enable-event-lenght-extension-on-sdk-1-7-0/345276#345276"]Regarding data length extension, check out the example &lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/v1.8.0/samples/bluetooth/throughput"&gt;nrf/samples/bluetooth/throughput&lt;/a&gt;, which uses a data length of 251[/quote]
&lt;p&gt;I am not speaking about DATA length extension, I want to know a way to have control on the EVENT length extension that softdevice uses to allocae every peripheral on it&amp;nbsp;schedule. On another words, if is there some method to have control on Event length extension, to fix a constant time to every peripheral connection.&lt;/p&gt;
&lt;p&gt;On addition i want to know where and how enable the event length extension.&lt;/p&gt;
&lt;p&gt;The aim of this is have total control on number of packets per every ble connection interval.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable event lenght extension on sdk 1.7.0</title><link>https://devzone.nordicsemi.com/thread/345276?ContentTypeID=1</link><pubDate>Tue, 28 Dec 2021 15:19:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cef67578-6af9-4497-b1ce-7b4686cacaed</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;&lt;strong&gt;Modified jan 4 2022: &lt;/strong&gt;Applied strikethrough since I didn&amp;#39;t address the question&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:line-through;"&gt;Be aware that we offer two SDKs, the nRF5 SDK and the nRF Connect SDK (NCS).&amp;nbsp;In the tickets you referred to, the nRF5 SDK was used, and those won&amp;#39;t help you since you&amp;#39;re using NCS.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:line-through;"&gt;Read about the differences here:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:line-through;"&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/nrf-connect-sdk-and-nrf5-sdk-statement"&gt;https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/nrf-connect-sdk-and-nrf5-sdk-statement&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:line-through;"&gt;Regarding data length extension, check out the example &lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/v1.8.0/samples/bluetooth/throughput"&gt;nrf/samples/bluetooth/throughput&lt;/a&gt;, which uses a data length of 251 bytes by default. Read more about it in the documentation&amp;nbsp;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/nrf/samples/bluetooth/throughput/README.html#overview"&gt;http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/nrf/samples/bluetooth/throughput/README.html#overview&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>