<?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>nRF5340 Dynamic Connection Event Length</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119819/nrf5340-dynamic-connection-event-length</link><description>Hi, 
 I need to use two or more different event lengths for different modes. The event length should be set based on the mode before establishing a connection. I found that sdc_hci_cmd_vs_event_length_set() can be used for this purpose. 
 To implement</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Mar 2025 09:57:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119819/nrf5340-dynamic-connection-event-length" /><item><title>RE: nRF5340 Dynamic Connection Event Length</title><link>https://devzone.nordicsemi.com/thread/529005?ContentTypeID=1</link><pubDate>Wed, 26 Mar 2025 09:57:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e575ff4-7fcf-4fb2-95ad-8a84296fb9a0</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Yes, it is available starting from NCS v2.9.0.&lt;br /&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/v2.9.0/samples/bluetooth/scanning_while_connecting"&gt;https://github.com/nrfconnect/sdk-nrf/tree/v2.9.0/samples/bluetooth/scanning_while_connecting&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Dynamic Connection Event Length</title><link>https://devzone.nordicsemi.com/thread/528813?ContentTypeID=1</link><pubDate>Tue, 25 Mar 2025 11:14:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b14213e-e5ce-4228-8930-f3e6abb7026b</guid><dc:creator>AKV</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The file&amp;nbsp;hci_vs_sdc.h is not there in my NCS 2.6.1 folder.&lt;/p&gt;
&lt;p&gt;Is this file available only in a higher version?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Dynamic Connection Event Length</title><link>https://devzone.nordicsemi.com/thread/528376?ContentTypeID=1</link><pubDate>Fri, 21 Mar 2025 10:31:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47fbcbf7-3aac-44fb-b901-7b5dd628a72a</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;There is a sample that demonstrates how to use&amp;nbsp;hci_vs_sdc_event_length_set() -&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/bluetooth/scanning_while_connecting/src/main.c#L444"&gt;scanning while connecting&lt;/a&gt;. This sample builds for nrf53. In this sample, SoftDevice controller is on the network core while Zephyr host and application reside on the application core, and no cmake changes are needed.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Dynamic Connection Event Length</title><link>https://devzone.nordicsemi.com/thread/527939?ContentTypeID=1</link><pubDate>Wed, 19 Mar 2025 06:26:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f86898b9-02a0-4cb1-ad4e-d5515f5d1384</guid><dc:creator>AKV</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1. I have added the hci_vs_sdc.h file to the NCS library path:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;nRFConnectSDK\v2.6.1\zephyr\include\zephyr\bluetooth\hci_vs_sdc.h&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;2. I have added the hci_vs_sdc.c file to the NCS library path:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;nRFConnectSDK\v2.6.1\zephyr\subsys\bluetooth\hci_vs_sdc.c&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;3. I have modified the CMakeLists.txt file in the NCS library path:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;nRFConnectSDK\v2.6.1\zephyr\subsys\bluetooth\CMakeLists.txt&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Added the following line:&lt;/p&gt;
&lt;p&gt;zephyr_sources_ifdef(CONFIG_BT_LL_SOFTDEVICE hci_vs_sdc.c)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# SPDX-License-Identifier: Apache-2.0

add_library(subsys__bluetooth INTERFACE)

target_include_directories(subsys__bluetooth INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})

add_subdirectory(common)
add_subdirectory_ifdef(CONFIG_BT_HCI host)
add_subdirectory_ifdef(CONFIG_BT_SHELL shell)
add_subdirectory_ifdef(CONFIG_BT_CONN services)
add_subdirectory_ifdef(CONFIG_BT_MESH mesh)
add_subdirectory_ifdef(CONFIG_BT_AUDIO audio)
add_subdirectory_ifdef(CONFIG_BT_CRYPTO crypto)

zephyr_sources_ifdef(CONFIG_BT_LL_SOFTDEVICE hci_vs_sdc.c)

if(CONFIG_BT_CTLR AND CONFIG_BT_LL_SW_SPLIT)
  add_subdirectory(controller)
endif()

zephyr_include_directories(${ZEPHYR_BASE}/subsys/bluetooth)

add_subdirectory(lib)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;4. I have enabled the CONFIG_BT_LL_SOFTDEVICE option by adding CONFIG_BT_LL_SOFTDEVICE=y in both the app core and net core config files.&lt;/p&gt;
&lt;p&gt;But still I am getting the error&amp;nbsp;&lt;/p&gt;
&lt;p&gt;main.c:118: undefined reference to `hci_vs_sdc_event_length_set&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/log19032025.txt"&gt;devzone.nordicsemi.com/.../log19032025.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Can you please confirm if the above steps are correct or if I am missing anything?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Dynamic Connection Event Length</title><link>https://devzone.nordicsemi.com/thread/527865?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 14:08:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f682856-3be2-4e33-b009-53f940236776</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;The issue you observed might be related to APIs inability to access controller which is on the network core.&lt;br /&gt;You could try to use &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/7d0cc70de6d5feb45b37656e73fb00618926ead2/include/bluetooth/hci_vs_sdc.h#L166"&gt;hci_vs_sdc&lt;/a&gt;&amp;nbsp;which is currently recommended API for sending VS commands to the controller. This API will build and send HCI command to the controller and works even if the controller is on another CPU compared to the host/application. You can look at this&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/commit/635fa76ef9b2e677b816d4442c5879976d58e5e6#diff-8b0f122c3f9566562d5c81a4aad3a632921c420acb5c749933603af84d33d0a5"&gt;commit&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Dynamic Connection Event Length</title><link>https://devzone.nordicsemi.com/thread/527845?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 13:07:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de18d3ab-5c82-4174-be1b-d42a17f19a03</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I have reproduced your issue. I will look further into it. I expect to get back to you by the end of the week.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Dynamic Connection Event Length</title><link>https://devzone.nordicsemi.com/thread/527721?ContentTypeID=1</link><pubDate>Mon, 17 Mar 2025 17:50:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:654e0c08-d0cc-45d5-838a-de9833023028</guid><dc:creator>AKV</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="111786" url="~/f/nordic-q-a/119819/nrf5340-dynamic-connection-event-length/527717"]There are many files (including several zip files) in your previous ticket. Which file contains your code?[/quote]
&lt;p&gt;You can download any code, If you need latest one you download &amp;quot;ridegrid_06_28012025&amp;quot;.&lt;/p&gt;
[quote userid="111786" url="~/f/nordic-q-a/119819/nrf5340-dynamic-connection-event-length/527717"]Can you look at the sample which I linked in my previous edited reply?[/quote]
&lt;p&gt;Yes, I have tried as given below. But the error is&amp;nbsp;&lt;/p&gt;
&lt;p&gt;main.c:30:10: fatal error: bluetooth/hci_vs_sdc.h: No such file or directory&lt;br /&gt; 30 | #include &amp;lt;bluetooth/hci_vs_sdc.h&amp;gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;bluetooth/hci_vs_sdc.h&amp;gt;
#include &amp;lt;zephyr/bluetooth/bluetooth.h&amp;gt;
#include &amp;lt;zephyr/bluetooth/addr.h&amp;gt;
#include &amp;lt;zephyr/bluetooth/conn.h&amp;gt;
#include &amp;lt;zephyr/bluetooth/hci.h&amp;gt;



sdc_hci_cmd_vs_event_length_set_t event_length_params = {
		.event_length_us = 2000,
	};

hci_vs_sdc_event_length_set(&amp;amp;event_length_params);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Dynamic Connection Event Length</title><link>https://devzone.nordicsemi.com/thread/527717?ContentTypeID=1</link><pubDate>Mon, 17 Mar 2025 16:38:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9322eec7-56bd-4de5-8a95-518b55e629de</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Thank you for additional information.&lt;/p&gt;
[quote user="AKV"]I have attached our code in this private ticket. If needed you can refer this.&amp;nbsp;&amp;nbsp;[/quote]
&lt;p&gt;There are many files (including several zip files) in your previous ticket. Which file contains your code?&lt;/p&gt;
[quote user="dejans"]Edit:&amp;nbsp; You can look at the&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/1057f5549861a70c57513b988318890394c2198f/samples/bluetooth/scanning_while_connecting/src/main.c"&gt;scanning while connecting&lt;/a&gt;&amp;nbsp;sample. It shows how to set&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/1057f5549861a70c57513b988318890394c2198f/samples/bluetooth/scanning_while_connecting/src/main.c#L440-L442"&gt;event_length_us&lt;/a&gt;&amp;nbsp;parameter.[/quote]
&lt;p&gt;Can you look at the sample which I linked in my previous edited reply?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Dynamic Connection Event Length</title><link>https://devzone.nordicsemi.com/thread/527582?ContentTypeID=1</link><pubDate>Mon, 17 Mar 2025 11:05:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:107886d1-2613-4c77-802e-667e38815f27</guid><dc:creator>AKV</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have developed a custom BLE application code by using this&amp;nbsp;&lt;/span&gt;&lt;a title="custom_ncs_ble_service_sample" href="https://github.com/edvinand/custom_ncs_ble_service_sample"&gt;custom_ncs_ble_service_sample&lt;/a&gt;&lt;span&gt;&amp;nbsp;tutorial. Its working fine.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We are developing a mesh network. Our requirement is the one device can connect to three other devices.&amp;nbsp;&lt;/span&gt;&lt;span&gt;Using one connection as a peripheral and up to two connections as a central&amp;nbsp;for mesh connections.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We are using nRF5340 and the nRF Connect SDK Version 2.6.1.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have attached our code in this private ticket. If needed you can refer this.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a title="Private Ticket" href="https://devzone.nordicsemi.com/support/332192"&gt;Private ticket of other issue&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Dynamic Connection Event Length</title><link>https://devzone.nordicsemi.com/thread/527567?ContentTypeID=1</link><pubDate>Mon, 17 Mar 2025 10:27:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8cbb469-ff72-418d-8a58-8f1386632f4f</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Can you provide more information about your application? Is it based on any of our Bluetooth samples?&lt;br /&gt;&lt;br /&gt;Edit:&amp;nbsp; You can look at the&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/1057f5549861a70c57513b988318890394c2198f/samples/bluetooth/scanning_while_connecting/src/main.c"&gt;scanning while connecting&lt;/a&gt;&amp;nbsp;sample. It shows how to set&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/1057f5549861a70c57513b988318890394c2198f/samples/bluetooth/scanning_while_connecting/src/main.c#L440-L442"&gt;event_length_us&lt;/a&gt;&amp;nbsp;parameter.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Dynamic Connection Event Length</title><link>https://devzone.nordicsemi.com/thread/527556?ContentTypeID=1</link><pubDate>Mon, 17 Mar 2025 09:51:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d23436da-e73b-4eab-a229-5040dbc5ec69</guid><dc:creator>AKV</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Any updates?&lt;/p&gt;
&lt;p&gt;If you can provide an example code or implementation, that would be great.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Dynamic Connection Event Length</title><link>https://devzone.nordicsemi.com/thread/527457?ContentTypeID=1</link><pubDate>Sat, 15 Mar 2025 03:24:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ef917c0-a026-4204-9db3-386e1c4db026</guid><dc:creator>AKV</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes I am using this in the net core file (custom_nrf5340_cpunet_defconfig file.)&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_CTLR_SDC_MAX_CONN_EVENT_LEN_DEFAULT&lt;/span&gt;&lt;span&gt;=5000.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I have tried removing this config, but still getting the same error.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Dynamic Connection Event Length</title><link>https://devzone.nordicsemi.com/thread/527427?ContentTypeID=1</link><pubDate>Fri, 14 Mar 2025 17:02:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbd12dfd-f629-4d73-a916-563f84059539</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Can you check if you have included &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.6.1/subsys/bluetooth/controller/Kconfig#L138"&gt;CONFIG_BT_CTLR_SDC_MAX_CONN_EVENT_LEN_DEFAULT&lt;/a&gt;&amp;nbsp;in your configuration for the bluetooth controller running on the network core as described in this&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/110367/how-to-set-up-ncs-so-that-the-bluetooth-connection-interval-can-always-send-data"&gt;ticket&lt;/a&gt;?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Dynamic Connection Event Length</title><link>https://devzone.nordicsemi.com/thread/527349?ContentTypeID=1</link><pubDate>Fri, 14 Mar 2025 11:24:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:feb184ff-6a58-49aa-a89e-a48e35fe63f7</guid><dc:creator>AKV</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="111786" url="~/f/nordic-q-a/119819/nrf5340-dynamic-connection-event-length/527348"]Which NCS version do you use?[/quote]
&lt;p&gt;NCS version 2.6.1.&lt;/p&gt;
[quote userid="111786" url="~/f/nordic-q-a/119819/nrf5340-dynamic-connection-event-length/527348"]Is your application based on any of our samples?&lt;br /&gt;[/quote]
&lt;p&gt;No, Our custom board code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please check the complete log.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/log14032025.txt"&gt;devzone.nordicsemi.com/.../log14032025.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Dynamic Connection Event Length</title><link>https://devzone.nordicsemi.com/thread/527348?ContentTypeID=1</link><pubDate>Fri, 14 Mar 2025 11:16:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ced2077-2222-4988-88e1-774cf1807ad5</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Is your application based on any of our samples?&lt;br /&gt;&lt;br /&gt;Which NCS version do you use?&lt;br /&gt;&lt;br /&gt;Can you provide complete error log?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>