<?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>Integrate NUS into BLE Audio code</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107763/integrate-nus-into-ble-audio-code</link><description>Hi, 
 I&amp;#39;m working with nRF5340 Audio DK. 
 I&amp;#39;m able to successfully run the audio example in BIS mode (with gateway and headset devices), and also to run the Peripheral UART Bluetooth example separately on my DK. 
 My goal is to open another BT connection</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Apr 2024 07:55:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107763/integrate-nus-into-ble-audio-code" /><item><title>RE: Integrate NUS into BLE Audio code</title><link>https://devzone.nordicsemi.com/thread/478883?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2024 07:55:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edd06ae3-689f-4936-ae9e-5e4fdf4b3168</guid><dc:creator>Brian Kim</dc:creator><description>&lt;p&gt;Hello Dekel,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sorry for this delay. I just saw this reply. Now that the new request is totally different one, we should discuss on another thread. I believe this is already requested with another case:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/110090/nrf5340-audio---configure-gateway-unit-also-as-acl-peripheral"&gt;nRF5340 Audio - configure gateway unit also as ACL peripheral&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If that is about it, we can close this case and keep talking in the the case. Feel free to comment.&lt;/p&gt;
&lt;p&gt;//Brian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrate NUS into BLE Audio code</title><link>https://devzone.nordicsemi.com/thread/477583?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 12:59:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55b737dd-0dfc-4985-ab2c-bc273476cbbf</guid><dc:creator>Dekel</dc:creator><description>&lt;p&gt;Hi Brian,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s actually not completely fixed.&lt;/p&gt;
&lt;p&gt;We&amp;#39;ve figured out that it will be easier if the broadcaster side, which is in peripheral role in terms of audio, will also be the peripheral in terms of ACL connection. Meaning, we&amp;#39;d like it to advertise both audio stream and ACL connection for commands.&lt;/p&gt;
&lt;p&gt;I was able to take the code you&amp;#39;ve supplied and apply it on the headset side. Namely, I have now a headset which is also able to connect through ACL as central (in parallel to audio stream receival) and communicate through NUS.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;I would appreciate your help with the broadcast side implementation.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I tried it myself and I&amp;#39;m on the brink of success, but calling&amp;nbsp;bt_le_ext_adv_create() twice (once for audio and once for ACL) fails with EIO (I/O error). It&amp;#39;s unclear to me why it happens.&lt;/p&gt;
[quote userid="132468" url="~/f/nordic-q-a/107763/integrate-nus-into-ble-audio-code/475788"]I came across&amp;nbsp;the following repository&amp;nbsp;through a DevZone post (I am unable to find the original post through a simple google search)[/quote]
&lt;p&gt;Thank you for that! I took a look on it, but since it relates to CIS while my project is BIS, it&amp;#39;s difficult for me to understand the necessary modifications.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrate NUS into BLE Audio code</title><link>https://devzone.nordicsemi.com/thread/476440?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 07:15:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4017ddb-8242-45d9-8093-6856e582659f</guid><dc:creator>Brian Kim</dc:creator><description>&lt;p&gt;Thanks for the good news, Dekel!&lt;/p&gt;
&lt;p&gt;Now that it seems to be fixed, please close this case. You can create new case any time if you faced another issue. :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrate NUS into BLE Audio code</title><link>https://devzone.nordicsemi.com/thread/475788?ContentTypeID=1</link><pubDate>Tue, 26 Mar 2024 00:39:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1242b51-f585-4e82-aaac-d34c4872b17c</guid><dc:creator>mk102</dc:creator><description>&lt;p&gt;Hi Dekel,&lt;br /&gt;&lt;br /&gt;I came across&amp;nbsp;the following repository&amp;nbsp;through a DevZone post (I am unable to find the original post through a simple google search)&lt;br /&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/compare/v2.3-branch...rick1082:sdk-nrf:audio_with_nus_example?diff=split&amp;amp;w="&gt;&lt;br /&gt;https://github.com/nrfconnect/sdk-nrf/compare/v2.3-branch...rick1082:sdk-nrf:audio_with_nus_example?diff=split&amp;amp;w=&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;This combines the audio example with NUS example with minimal changes. You will still have to play around with the settings like `CONFIG_BT_BUF_ACL_RX_SIZE`, `CONFIG_BT_BUF_ACL_TX_SIZE`, `CONFIG_BT_AUDIO_BITRATE_UNICAST_SINK` based on your requirements. You can refer to samples like ble-throughput&amp;nbsp;to understand what each of these configs do.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;This was written&amp;nbsp;based on nrf &lt;span&gt;SDK&amp;nbsp;&lt;/span&gt;v2.3.0, and I was able to get it to work with the latest&amp;nbsp;v2.6.0 SDK. I am able to communicate&amp;nbsp;simultaneously transfer data over ACL while playing/receiving audio between two Audio DKs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrate NUS into BLE Audio code</title><link>https://devzone.nordicsemi.com/thread/475494?ContentTypeID=1</link><pubDate>Sun, 24 Mar 2024 08:25:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5ccd147-ad8a-4caf-b4bd-fbac23204fe7</guid><dc:creator>Dekel</dc:creator><description>&lt;p&gt;Hi Brian,&lt;/p&gt;
[quote userid="2124" url="~/f/nordic-q-a/107763/integrate-nus-into-ble-audio-code/475140"]If you want to send the other way, it&amp;#39;s already implemented[/quote]
&lt;p&gt;I can see that on my devices, similar to the screenshot you&amp;#39;ve shared.&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f44d_2D00_1f3fc.svg" title="Thumbsup tone2"&gt;&amp;#x1f44d;&amp;#x1f3fc;&lt;/span&gt;&lt;/p&gt;
[quote userid="2124" url="~/f/nordic-q-a/107763/integrate-nus-into-ble-audio-code/475140"][P.S] you don&amp;#39;t need to use the option,-ctlr=&amp;quot;SDC&amp;quot; any more because it&amp;#39;s default option since NCS 2.6.0.[/quote]
&lt;p&gt;Good to know &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
[quote userid="2124" url="~/f/nordic-q-a/107763/integrate-nus-into-ble-audio-code/475140"]&lt;div&gt;3. In order to integrate the ACL into the BLE Audio system, it&amp;#39;s necessary for the headset units to be able to serve as preipherals. Is this implementation easier now that we have your implementation on gateway side?&lt;/div&gt;
&lt;div&gt;4. Following my previous question, I&amp;#39;ll share that in order to achieve the goal of our project, a full solution of this would be to be able to configure the gateway unit both as central and peripheral in terms of ACL connection (for connection with a smartphone app). Is it achieveable? What will it require?&lt;/div&gt;[/quote]
&lt;p&gt;I would truely appreciate your help with these topics, they&amp;#39;re crucial to our project&amp;#39;s progress.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Dekel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrate NUS into BLE Audio code</title><link>https://devzone.nordicsemi.com/thread/475140?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2024 13:43:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5c78b92-17cf-466e-91c9-0021267f07ed</guid><dc:creator>Brian Kim</dc:creator><description>&lt;p&gt;Hello Dekel,&lt;/p&gt;
&lt;p&gt;Thanks for the good news!&amp;nbsp;&lt;/p&gt;
[quote user="Dekel"]1. Regarding the automatic ACL connection that the gateway establishes - is it name-based? does it mean that it will try to connect to all units with the name &amp;quot;Nordic_UART_Service&amp;quot;?[/quote]
&lt;p&gt;Yes, it corresponds with&amp;nbsp;REMOTE_DEVICE_NAME_PEER.&lt;/p&gt;
[quote user="Dekel"]&lt;div&gt;2. How can I test the other direction of messaging? Namely, sending data from the gateway to the peripheral over ACL?&lt;/div&gt;
&lt;div&gt;3. In order to integrate the ACL into the BLE Audio system, it&amp;#39;s necessary for the headset units to be able to serve as preipherals. Is this implementation easier now that we have your implementation on gateway side?&lt;/div&gt;
&lt;div&gt;4. Following my previous question, I&amp;#39;ll share that in order to achieve the goal of our project, a full solution of this would be to be able to configure the gateway unit both as central and peripheral in terms of ACL connection (for connection with a smartphone app). Is it achieveable? What will it require?&lt;/div&gt;[/quote]
&lt;p&gt;The screen shot I shared below was about sending data from the gateway(ACL central) to the peripherals. If you want to send the other way, it&amp;#39;s already implemented. Once data is transmitted from any peripheral, you will see it in&amp;nbsp;ble_data_received.&lt;/p&gt;
&lt;p&gt;I simply tried and confirmed it works as intended like this. :)&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2742.pastedimage1711028475527v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;[P.S] you don&amp;#39;t need to use the option,-ctlr=&amp;quot;SDC&amp;quot; any more because it&amp;#39;s default option since NCS 2.6.0.&lt;/p&gt;
&lt;p&gt;//Brian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrate NUS into BLE Audio code</title><link>https://devzone.nordicsemi.com/thread/474955?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2024 16:57:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e3ba64a-eba3-4c66-a8da-7b5f12a4e305</guid><dc:creator>Dekel</dc:creator><description>&lt;p&gt;Hi Brian,&lt;/p&gt;
&lt;p&gt;First of all, thank you so much for your efforts and for sharing all that information! this is very helpful to us.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Based on my tests, things look good! I&amp;#39;ll describe my process:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve installed NCS2.6.0 through the Toolchain Manager and replaced the 3 files you&amp;#39;ve attached in the zip file.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve successfully built and flashed the program using this command (flashed gateway &amp;amp; headset units):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;python buildprog.py -c both -b debug -d both -p --ctlr=&amp;quot;SDC&amp;quot; --recover_on_fail&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The gateway receives audio data through USB (I&amp;#39;ve removed&amp;nbsp;&lt;span&gt;CONFIG_AUDIO_SOURCE_I2S from&amp;nbsp;&lt;/span&gt;proj.conf for that) and it&amp;#39;s successfully heard on the headset side, to which I&amp;#39;ve connected a speaker.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;I&amp;#39;ve also flashed a third unit, nRf52833DK, with the &amp;quot;peripheral UART&amp;quot; example code. On startup, while the broadcaster is already running and music is playing, an ACL connection was established automatically and I was able to write from the peripheral (&lt;span&gt;nRf52833DK) to the central (gateway) using TeraTerm.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;This is great! It may serve as infrastructure for sending sensor data from the headset units towards the gateway.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;I&amp;#39;d like to ask a few questions please:&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;1. Regarding the automatic ACL connection that the gateway establishes - is it name-based? does it mean that it will try to connect to all units with the name &amp;quot;Nordic_UART_Service&amp;quot;?&lt;/div&gt;
&lt;div&gt;2. How can I test the other direction of messaging? Namely, sending data from the gateway to the peripheral over ACL?&lt;/div&gt;
&lt;div&gt;3. In order to integrate the ACL into the BLE Audio system, it&amp;#39;s necessary for the headset units to be able to serve as preipherals. Is this implementation easier now that we have your implementation on gateway side?&lt;/div&gt;
&lt;div&gt;4. Following my previous question, I&amp;#39;ll share that in order to achieve the goal of our project, a full solution of this would be to be able to configure the gateway unit both as central and peripheral in terms of ACL connection (for connection with a smartphone app). Is it achieveable? What will it require?&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Thank you,&lt;/div&gt;
&lt;div&gt;Dekel&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrate NUS into BLE Audio code</title><link>https://devzone.nordicsemi.com/thread/474679?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 15:03:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b237e9e-4c73-4af8-a64b-7cbb6a536834</guid><dc:creator>Brian Kim</dc:creator><description>&lt;p&gt;Hello Dekel,&lt;/p&gt;
&lt;p&gt;I am sharing very initial reference for your application working as a BIS broadcaster and NUS central simultaneously based on NCS1.6.0.&lt;/p&gt;
&lt;p&gt;6-8 concurrent ACL link might be challenging, but you can tweak related parameters properly , like the connection interval(currently 20ms) or CONFIG_BT_MAX_CONN(currently 4).&lt;/p&gt;
&lt;div&gt;Please note that this is just a rough reference not guarantee the stability, so you should verify and purify it.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;The modified&amp;nbsp;files :&lt;/div&gt;
&lt;p&gt;nrf/applications/nrf5340_audio/broadcast_source/main.c&lt;br /&gt;nrf/applications/nrf5340_audio/prj.conf&lt;br /&gt;nrf/applications/nrf5340_audio/src/bluetooth/bt_management/bt_mgmt.c&lt;/p&gt;
&lt;p&gt;And also please refer the screen shot of the operation. I tested with three devices in total, BIS broadcaster, BIS headset, nRF52DK(1st NUS server) and nRF52840 DK(2nd NUS server).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span style="color:rgba(255, 0, 0, 1);"&gt;[updated 20.03]&lt;/span&gt; &lt;/strong&gt;replaced with one zip file for easier access.( also changed one parameter(CONFIG_BT_AUDIO_RETRANSMITS=3 from 10)on prj.conf for faster ACL communication.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/8461.pastedimage1710860507091v1.jpeg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf5340_5F00_audio_5F00_gw_5F00_central.zip"&gt;devzone.nordicsemi.com/.../nrf5340_5F00_audio_5F00_gw_5F00_central.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrate NUS into BLE Audio code</title><link>https://devzone.nordicsemi.com/thread/471956?ContentTypeID=1</link><pubDate>Mon, 04 Mar 2024 08:39:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:144809ec-43cd-4fea-83db-afda4519dde1</guid><dc:creator>Dekel</dc:creator><description>&lt;p&gt;I&amp;#39;ll share current code modifications with a hope for help:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/modifications.rar"&gt;devzone.nordicsemi.com/.../modifications.rar&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrate NUS into BLE Audio code</title><link>https://devzone.nordicsemi.com/thread/471244?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2024 10:32:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8188c161-284f-4d9f-bb82-af4db28cbfca</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="Dekel"]No, the NUS is not integrated yet. Only the ability to have a connectable advertisement in parallel to BLE Audio.[/quote]
&lt;p&gt;Thank you for clarifying. Being able to establish the additional ACL connection in parallel is a big step in the right direction - now all that remains is to include and enable the NUS service (and to debug the instability issue, of course).&lt;/p&gt;
[quote user="Dekel"]I assume I&amp;#39;ll have to use SoftDevice in order to be able to debug with VSCode and have logs. Is that correct?[/quote]
&lt;p&gt;In general yes - and please remember that the ISO support in the SoftDevice Controller is still experimental - but in this case you can also just provide the log output over the UART from your debugger, if you are using the LE Audio controller.&lt;br /&gt;I.e run the application as usual, and open a serial monitor (like PuTTy, or a nRF Terminal in VSC) to see the applications logs.&lt;/p&gt;
[quote user="Dekel"]I&amp;#39;m not familiar with it, but I&amp;#39;ll take a look, thanks.[/quote]
&lt;p&gt;All right, great! The sniffer is a very powerful tool to wield when developing BLE applications. Please keep in mind that the nRF Sniffer only supports sniffing of ALC (&amp;#39;regular&amp;#39; BLE communication), and not the contents of ISO channels.&lt;br /&gt;For the debugging we are doing now all we need is to look at what is being sent between the devices leading up to the instability you have observed.&lt;br /&gt;It can be daunting to familiarize with the nRF Sniffer tool at first, so please do not hesitate to ask if you should encounter any issues or questions! :)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrate NUS into BLE Audio code</title><link>https://devzone.nordicsemi.com/thread/471190?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2024 07:22:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6a1f4db-7164-4396-9473-16b608ad23e2</guid><dc:creator>Dekel</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/107763/integrate-nus-into-ble-audio-code/470926"]Does this mean that you have got NUS up and running on your headset device alongside the ISO functionality, so that you are able to see and interact with the NUS service when connecting to the peripheral advertisement that is running alongside the ISO functionality?[/quote]
&lt;p&gt;No, the NUS is not integrated yet. Only the ability to have a connectable advertisement in parallel to BLE Audio.&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/107763/integrate-nus-into-ble-audio-code/470926"]If so, could you share the logs from your peripheral device when it fails those 4-5 times before achieving a stable connection?[/quote]
&lt;p&gt;I assume I&amp;#39;ll have to use SoftDevice in order to be able to debug with VSCode and have logs. Is that correct?&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/107763/integrate-nus-into-ble-audio-code/470926"]If nothing stands out in the logs we will need to get a sniffer trace of the communication when you attempt to connect to the peripheral&amp;#39;s advertisements - are you familiar with using &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-sniffer-for-bluetooth-le"&gt;the nRF Sniffer tool&lt;/a&gt;?[/quote]
&lt;p&gt;I&amp;#39;m not familiar with it, but I&amp;#39;ll take a look, thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrate NUS into BLE Audio code</title><link>https://devzone.nordicsemi.com/thread/470926?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 07:39:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:695bad5f-0225-4943-8207-34a905859f54</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Thank you both for your patience with this.&lt;/p&gt;
[quote user="elecia"]&lt;p&gt;However, the &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;bt_nus_shell.py&amp;nbsp;&lt;/span&gt;python script expects the NUS to be part of the scan response of the advertisement. (As do the other NUS tools.)&lt;/p&gt;
&lt;p&gt;It looks like the nrf5340_audio starts the advertisement via &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;bt_mgmt_adc.c&amp;#39;s&amp;nbsp;bt_mgmt_adv_start(...)&lt;/span&gt; in &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;streamctrl_unicast_server.c&lt;/span&gt;. I don&amp;#39;t see how to modify that to add NUS to this.&lt;/p&gt;
&lt;p&gt;Anyway, looking at &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;nrf/samples/bluetooth/multiple_adv_sets&lt;/span&gt;, I can see how two advertisements are being created with different data. I haven&amp;#39;t gotten it working with NUS yet but it seems like I need to send a additional advertisements and include the NUS data as scan response? Probably&amp;nbsp; in &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;bt_mgmt_adv.c&amp;#39;&lt;span&gt;advertising_process()&lt;/span&gt;&lt;/span&gt;?&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Or is there a simpler way?&lt;/strong&gt;&lt;/p&gt;[/quote]
&lt;p&gt;You can add the NUS UUID to &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/18ecc33e0a635b4a60964971ffdcada01d83ae31/applications/nrf5340_audio/src/bluetooth/bt_management/advertising/bt_mgmt_adv.c#L187C9-L187C31"&gt;the scan reponse data by populating the second to last parameter in the extended advertising creation&lt;/a&gt;&amp;nbsp;call, or you can modify the filter parameters of the NUS central devices to connect to the name (or other data) advertised by your device.&lt;/p&gt;
[quote user="Dekel"]How can I configure that?[/quote]
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;To use buildprog.py, we can add the command &lt;code&gt;--ctlr=&amp;quot;SDC&amp;quot; parameter to switch to the SDC controller.&lt;/code&gt;&lt;br /&gt;E.g., &lt;br /&gt;$ python buildprog.py -c both -b debug -d both -p --pristine--ctlr=&amp;quot;SDC&amp;quot;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;span dir="ltr"&gt;To use west instead, you can add &lt;code&gt;-DCONFIG_BT_LL_ACS_NRF53=n&lt;/code&gt;&lt;br /&gt;E.g., &lt;br /&gt;$ west build -b nrf5340_audio_dk_nrf5340_cpuapp -d build_headset -p -- -DCONFIG_AUDIO_DEV=1 -DCONFIG_BT_LL_ACS_NRF53=n; west flash --build-dir=build_headset&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="Dekel"] I&amp;#39;m able to connect to my customized advertisement in an unstable way - seems that my phone has to be in constant connecting retries and only then the DK should be powered ON, and that sometimes works only after 4-5 tries. Bottom line, I&amp;#39;ve established an ACL connection in parallel to LE Audio broadcasting and I&amp;#39;m able to read basic data from the MCU (e.g. model number and manufacturer). I don&amp;#39;t have much clue about how to integrate a bidirectional communication platform in order to send data from the app to the MCU. I would appreciate ideas about that.[/quote]
&lt;p&gt;Does this mean that you have got NUS up and running on your headset device alongside the ISO functionality, so that you are able to see and interact with the NUS service when connecting to the peripheral advertisement that is running alongside the ISO functionality?&lt;br /&gt;If so, could you share the logs from your peripheral device when it fails those 4-5 times before achieving a stable connection?&lt;br /&gt;If nothing stands out in the logs we will need to get a sniffer trace of the communication when you attempt to connect to the peripheral&amp;#39;s advertisements - are you familiar with using &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-sniffer-for-bluetooth-le"&gt;the nRF Sniffer tool&lt;/a&gt;?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrate NUS into BLE Audio code</title><link>https://devzone.nordicsemi.com/thread/470077?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2024 15:29:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16c695ef-0923-4091-89e9-b105b352080e</guid><dc:creator>Dekel</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/107763/integrate-nus-into-ble-audio-code/469905"]so long as you make sure that you are using the SoftDevice Controller.[/quote]
&lt;p&gt;How can I configure that?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/107763/integrate-nus-into-ble-audio-code/469905"]Which functionality from the &amp;#39;multiple advertising sets&amp;#39; example code will you be merging into the nRF5340 LE Audio reference application?[/quote]
&lt;p&gt;The connectable advertisement functionality. I would like to have it in parallel to LE Audio.&lt;/p&gt;
[quote userid="44804" url="~/f/nordic-q-a/107763/integrate-nus-into-ble-audio-code/469916"]Thank you both, Karl and Dekel, it has been really useful to read this thread.[/quote]
&lt;p&gt;I&amp;#39;m glad to hear that! thank you for contributing, it really seems that we are headed in the same direction.&lt;/p&gt;
[quote userid="44804" url="~/f/nordic-q-a/107763/integrate-nus-into-ble-audio-code/469916"]It looks like the nrf5340_audio starts the advertisement via &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;bt_mgmt_adc.c&amp;#39;s&amp;nbsp;bt_mgmt_adv_start(...)&lt;/span&gt; in &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;streamctrl_unicast_server.c&lt;/span&gt;. I don&amp;#39;t see how to modify that to add NUS to this.[/quote]
&lt;p&gt;I encountered the same issue. The NUS seems to be deeply rooted within the SDK.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll share that at this point I&amp;#39;m able to find both LE Audio broadcast and my customized connectable advertisement with nRF Connect Mobile (with my iPhone). In parallel to audio receiving with another DK (as headset), I&amp;#39;m able to connect to my customized advertisement in an unstable way - seems that my phone has to be in constant connecting retries and only then the DK should be powered ON, and that sometimes works only after 4-5 tries. Bottom line, I&amp;#39;ve established an ACL connection in parallel to LE Audio broadcasting and I&amp;#39;m able to read basic data from the MCU (e.g. model number and manufacturer). I don&amp;#39;t have much clue about how to integrate a bidirectional communication platform in order to send data from the app to the MCU. I would appreciate ideas about that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrate NUS into BLE Audio code</title><link>https://devzone.nordicsemi.com/thread/469916?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2024 00:40:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65ade54c-3714-493e-a4f6-d2d211971b29</guid><dc:creator>EchoCharlieWhiskey</dc:creator><description>&lt;p&gt;I&amp;#39;ve been following this with interest and the multiple advertising sets was quite helpful as a hint for adding NUS to LE Audio.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m starting with &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;nrf/application/nrf5340_audio&lt;/span&gt; (2.5.1 SDK). I want to add NUS to make a Zephyr console to my audio application (headset).&lt;/p&gt;
&lt;p&gt;I can get the console on NUS from &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;nrf/samples/bluetooth/shell_bt_nus&lt;/span&gt;. Standalone, that works with &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;nrf/scripts/shell/bt_nus_shell.py&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve merged&amp;nbsp;&lt;span&gt;shell_bt_nus into nrf5340_audio, adding&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;CONFIG_SHELL_BT_NUS=y&lt;/span&gt; and&amp;nbsp; &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;CONFIG_BT_MAX_CONN=2&lt;/span&gt; into my &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;prj.conf&lt;/span&gt; then modifying&amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;bt_mgmt.c&lt;/span&gt;&amp;#39;s connect to call &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;shell_bt_nus_enable&lt;/span&gt; (and disconnect to call disable).&lt;/p&gt;
&lt;p&gt;However, the &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;bt_nus_shell.py&amp;nbsp;&lt;/span&gt;python script expects the NUS to be part of the scan response of the advertisement. (As do the other NUS tools.)&lt;/p&gt;
&lt;p&gt;It looks like the nrf5340_audio starts the advertisement via &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;bt_mgmt_adc.c&amp;#39;s&amp;nbsp;bt_mgmt_adv_start(...)&lt;/span&gt; in &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;streamctrl_unicast_server.c&lt;/span&gt;. I don&amp;#39;t see how to modify that to add NUS to this.&lt;/p&gt;
&lt;p&gt;Anyway, looking at &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;nrf/samples/bluetooth/multiple_adv_sets&lt;/span&gt;, I can see how two advertisements are being created with different data. I haven&amp;#39;t gotten it working with NUS yet but it seems like I need to send a additional advertisements and include the NUS data as scan response? Probably&amp;nbsp; in &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;bt_mgmt_adv.c&amp;#39;&lt;span&gt;advertising_process()&lt;/span&gt;&lt;/span&gt;?&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Or is there a simpler way?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;(I did look at the older&amp;nbsp;&lt;a href="https://github.com/rick1082/sdk-nrf/commits/iso_peripheral_example"&gt;iso_peripheral_example&lt;/a&gt;&amp;nbsp;but&amp;nbsp;that code looks very different than the current LE audio applications, I couldn&amp;#39;t see how to fit it in.)&lt;/p&gt;
&lt;p&gt;It also seems like the Zephyr Settings API is being used to set the name from CONFIG_BT_DEVICE_NAME (and possibly other advertisement settings). I haven&amp;#39;t explored that much. I know that is where the name comes from (&lt;span&gt;&lt;span&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;commit_settings&lt;/span&gt; calls&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;bt_set_name&lt;/span&gt;) but I couldn&amp;#39;t see a way to add the NUS scan response in that code.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Finally, I too would like step-through debugging with VSC. The&amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;buildprog.py&lt;/span&gt; script is super handy getting going but now that I&amp;#39;m digging into development on my headset features, I want to focus on that code, including stepping through my algorithms.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Thank you both, Karl and Dekel, it has been really useful to read this thread. I think Dekel and I are headed in the same direction which is why we have such similar needs and questions. I hope I&amp;#39;ve represented Dekel&amp;#39;s concerns in my summary.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best wishes,&lt;br /&gt;ECW&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrate NUS into BLE Audio code</title><link>https://devzone.nordicsemi.com/thread/469905?ContentTypeID=1</link><pubDate>Tue, 20 Feb 2024 19:54:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac104440-053d-4ca5-acbb-2f30b3aca6b2</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again, Dekel&lt;br /&gt;&lt;br /&gt;In the past thread debugging in VSC was not supported by the LE Audio controller, but now that we have ISO support for the SoftDevice Controller there should be no issue using all the tools available in the nRF Connect VSC extension to work with the application, so long as you make sure that you are using the SoftDevice Controller.&lt;br /&gt;I am however having some troubles verifying that all the functionality works as expected, but I suspect that this is due to some recent changes I&amp;#39;ve made to my development setup, and so I&amp;#39;ll keep looking into that.&lt;/p&gt;
[quote user="Dekel"]I&amp;#39;ll mention that I encountered the &amp;quot;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/multiple_adv_sets/README.html"&gt;multiple advertising sets&lt;/a&gt;&amp;quot; example code, which seems like a good direction to follow. It&amp;#39;s not completely strightforward to me, but I&amp;#39;ve made some progress. I&amp;#39;ll keep you updated.[/quote]
&lt;p&gt;Which functionality from the &amp;#39;multiple advertising sets&amp;#39; example code will you be merging into the nRF5340 LE Audio reference application? Please do not hesitate to ask if you should encounter any issues or questions while working with this! :)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrate NUS into BLE Audio code</title><link>https://devzone.nordicsemi.com/thread/469349?ContentTypeID=1</link><pubDate>Sun, 18 Feb 2024 07:43:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e3a551e-6241-40b3-be0e-d2ed49a03e56</guid><dc:creator>Dekel</dc:creator><description>&lt;p&gt;Thanks Karl.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll mention that I encountered the &amp;quot;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/multiple_adv_sets/README.html"&gt;multiple advertising sets&lt;/a&gt;&amp;quot; example code, which seems like a good direction to follow. It&amp;#39;s not completely strightforward to me, but I&amp;#39;ve made some progress. I&amp;#39;ll keep you updated.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Dekel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrate NUS into BLE Audio code</title><link>https://devzone.nordicsemi.com/thread/469107?ContentTypeID=1</link><pubDate>Thu, 15 Feb 2024 16:14:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1f8b620-4c2d-40eb-9ca0-138ceb5d0e1a</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again Dekel,&lt;br /&gt;&lt;br /&gt;Thank you for your extreme patience with this!&lt;br /&gt;&lt;br /&gt;I have been out of office for some days, but now I am back.&lt;br /&gt;I am checking some things and I will get back to you with a proper answer to your questions tomorrow!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrate NUS into BLE Audio code</title><link>https://devzone.nordicsemi.com/thread/467070?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2024 08:42:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf5061cd-507e-4083-a449-61b879d34205</guid><dc:creator>Dekel</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/107763/integrate-nus-into-ble-audio-code/466945"]but the command line and buildprog approaches are very convenient once you get familiar with them! :)[/quote]
&lt;p&gt;Do these approaches allow runtime debugging?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="114336" url="~/f/nordic-q-a/107763/integrate-nus-into-ble-audio-code/466354"]How should I continue from here?[/quote]
&lt;p&gt;I would appreciate your comment for that, since I&amp;#39;m stuck at this point.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Dekel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrate NUS into BLE Audio code</title><link>https://devzone.nordicsemi.com/thread/466945?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2024 13:15:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5075952-5083-4ed6-9b96-db2225817dfa</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
[quote user="Dekel"]I appreciate your quick and detailed response![/quote]
&lt;p&gt;No problem at all, Dekel - I am happy to help! :)&amp;nbsp;&lt;/p&gt;
[quote user="Dekel"]In addition, I&amp;#39;m not sure how to work with the example code that you&amp;#39;ve mentioned (NUS integration) - they use there&amp;nbsp;&lt;span&gt;bt_le_adv_start(), compared to&amp;nbsp;&lt;/span&gt;bt_mgmt_adv_start() in the audio example code. I assume only one should be used. Which one is it?[/quote]
&lt;p&gt;This example is very old - it is made using NCS v2.3.0 - so if you wish to run it as is you will need to also use the v2.3.0 code. However, the example still serves as a good illustration of the general approach you must use, and the things you will need to add, in order to merge NUS functionality into the existing nRF5340 LE Audio reference application.&lt;/p&gt;
[quote user="Dekel"]What are the currently available options for debugging the&amp;nbsp;&lt;span&gt;audio example code? I&amp;#39;m asking this since this is my base-code, and when building &amp;amp; flashing with buildproj.py it&amp;#39;s obviously not possible. In addition, when using VSCode with the nRF extension things don&amp;#39;t work as expected, which aligns with the note on the example&amp;#39;s &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/nrf5340_audio/doc/building.html"&gt;documentation page&lt;/a&gt;.&lt;/span&gt;[/quote]
&lt;p&gt;Which issues are you encountering with the nRF extensions?&lt;br /&gt;You are correct that building and flashing is not supported for the nRF5340 LE Audio application through VSC yet, unfortunately - but the command line and buildprog approaches are very convenient once you get familiar with them! :)&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrate NUS into BLE Audio code</title><link>https://devzone.nordicsemi.com/thread/466354?ContentTypeID=1</link><pubDate>Sun, 28 Jan 2024 15:54:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09e242b7-897c-4763-b396-127789ca086b</guid><dc:creator>Dekel</dc:creator><description>&lt;p&gt;Hi Karl,&lt;/p&gt;
&lt;p&gt;I appreciate your quick and detailed response!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;First, I&amp;#39;ve followed these steps:&lt;/p&gt;
&lt;p&gt;1. Cloned NCS repository and checked-out on the latest commit (main branch).&lt;/p&gt;
&lt;p&gt;2. Initialized West workspace in the repository&amp;#39;s directory (&amp;quot;west init&amp;quot; and then &amp;quot;west update&amp;quot;, which both completed successfully).&lt;/p&gt;
&lt;p&gt;3. As a sanity check, I tried to build the code with the original buildproj.py. Unfortunately, I got stuck with this error:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1706455323642v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Therefore, I decided to go with the nRF Toolchain Manager for installing SDK v2.5.1. After successfully achieving that, once again I&amp;#39;ve done my sanity check. This time it worked. So my first question is what am I doing wrong with the cloned NCS? How can I fix that?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Continuing with NCS v2.5.1 from the Toolchain Manager, I&amp;#39;ve followed these steps:&lt;/p&gt;
&lt;p&gt;1. Replaced 6 files in the NCS with the files from the two pull-requests you&amp;#39;ve mentioned (3 files from each PR).&lt;/p&gt;
&lt;p&gt;2. A&lt;span&gt;s a sanity check, I tried to build the code with the new buildproj.py by using this command:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;python buildprog.py -c both -b debug -d both -p --pristine --ctlr=&amp;quot;SDC&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Unfortunately, I&amp;#39;m stuck with the error of &amp;quot;no such file or directory&amp;quot; for ble_hci_vsc.h, which is included by&amp;nbsp;bt_mgmt_ctlr_cfg.c and&amp;nbsp;bt_mgmt.c:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1706457071490v3.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How should I continue from here?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;In addition, I&amp;#39;m not sure how to work with the example code that you&amp;#39;ve mentioned (NUS integration) - they use there&amp;nbsp;&lt;span&gt;bt_le_adv_start(), compared to&amp;nbsp;&lt;/span&gt;bt_mgmt_adv_start() in the audio example code. I assume only one should be used. Which one is it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Another important thing I&amp;#39;ve been wondering about:&lt;/p&gt;
&lt;p&gt;What are the currently available options for debugging the&amp;nbsp;&lt;span&gt;audio example code? I&amp;#39;m asking this since this is my base-code, and when building &amp;amp; flashing with buildproj.py it&amp;#39;s obviously not possible. In addition, when using VSCode with the nRF extension things don&amp;#39;t work as expected, which aligns with the note on the example&amp;#39;s &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/nrf5340_audio/doc/building.html"&gt;documentation page&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is a critical part of my development process.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Dekel&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrate NUS into BLE Audio code</title><link>https://devzone.nordicsemi.com/thread/466066?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2024 15:07:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b12472e6-dee7-42d6-8568-092157086ebd</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello Dekel,&lt;/p&gt;
[quote user=""]Is it possible? If so, which BT controller should be used? How should proj.conf should look like? What other configurations are required?[/quote]
&lt;p&gt;Yes, this is possible - what other requirements do you have to the application / Audio streams?&lt;br /&gt;With the Packetcraft controller there is a hard limitation on the total number of concurrent connections: 2 ISO + 2 ACL, and so you could for instance use this for 2 CIS (1 CIS requires 1 ISO + 1 ACL), or a combination of 1 or 2 BIS + 1 or 2 ACLs.&lt;br /&gt;In case of the latter, you can see &lt;a href="https://github.com/rick1082/sdk-nrf/commits/iso_peripheral_example"&gt;an example of how to do this here&lt;/a&gt;, but please keep in mind that this is an old example that we do not maintain, but it highlights the general approach you should take to achieve this.&lt;br /&gt;&lt;br /&gt;With the SoftDevice Controller there is no such hard limit on the number of concurrent connections, but the downside to using it is that it was very recently updated with ISO functionality, and so it is still experimental and undergoing testing and integration with the nRF5340 LE Audio reference application.&lt;br /&gt;If you would like to give this controller a try (which I recommend), you be on the ncs main, and you must follow the same outline for the NUS inclusion as demonstrated in the referenced example above, but you must also perform these steps when building and flashing the application &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/nrf5340_audio/doc/building.html#building-and-programming-using-script"&gt;using the buildprog script&lt;/a&gt;:&lt;br /&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Checkout latest NCS main, since SDC with ISO is merged after NCS v2.5.0, and also some modification are needed for application to run with SDC&lt;/span&gt;&lt;br /&gt;&lt;span&gt;The PR which brings ISO on SDC: &lt;/span&gt;&lt;a title="https://github.com/nrfconnect/sdk-nrf/pull/12508" href="https://github.com/nrfconnect/sdk-nrf/pull/12508" rel="noopener noreferrer" target="_blank"&gt;https://github.com/nrfconnect/sdk-nrf/pull/12508&lt;/a&gt;&lt;br /&gt;&lt;span&gt;The PR which update buildprog.py for switching between SDC and PCFT &lt;/span&gt;&lt;a title="https://github.com/nrfconnect/sdk-nrf/pull/12996" href="https://github.com/nrfconnect/sdk-nrf/pull/12996" rel="noopener noreferrer" target="_blank"&gt;https://github.com/nrfconnect/sdk-nrf/pull/12996&lt;/a&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;For using buildprog.py, we can add the command &lt;code&gt;--ctlr=&amp;quot;SDC&amp;quot;&lt;/code&gt; in the end&lt;/span&gt;&lt;br /&gt;&lt;span&gt;E.g., $ python buildprog.py -c both -b debug -d both -p --pristine--ctlr=&amp;quot;SDC&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Please also keep in mind that the SoftDevice Controller still does not have support for DFU with the nRF5340 LE Audio application for the time being.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>