<?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 Audio - 4 streams broadcasting ncs v2.6.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109283/nrf5340-audio---4-streams-broadcasting-ncs-v2-6-0</link><description>Dear Nordic team, 
 I&amp;#39;m evaluating nRF5340 Audio DK for the use-case of broadcasting multiple streams; NCS v2.6.0-rc1. 
 Until now I&amp;#39;ve succeeded broadcasted 4 streams (LC4 bitrate set up to 48kbps) in NCS v2.2.0, now I&amp;#39;ve migrated the nrf5340_audio application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Mar 2024 13:31:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109283/nrf5340-audio---4-streams-broadcasting-ncs-v2-6-0" /><item><title>RE: nrf5340 Audio - 4 streams broadcasting ncs v2.6.0</title><link>https://devzone.nordicsemi.com/thread/475932?ContentTypeID=1</link><pubDate>Tue, 26 Mar 2024 13:31:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a3b3318-bf64-4d04-9cc4-9286abeb897f</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Karl&amp;nbsp;&lt;/span&gt;is out of the office for the Easter holiday, so I take this case.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please update the hci_ipc.conf with:&lt;/p&gt;
&lt;p&gt;CONFIG_BT_CTLR_ADV_ISO_STREAM_COUNT=4&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;According to the description, this is for:&lt;/p&gt;
&lt;p&gt;&amp;quot;Maximum Broadcast ISO Streams supported in the Controller across all Broadcast ISO groups&amp;quot;&lt;/p&gt;
&lt;p&gt;And now that is 2 in the default.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Please note that we are a bit low on staff due to the Easter holidays in Norway. So please expect some delays and thanks for your patience in advance.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 Audio - 4 streams broadcasting ncs v2.6.0</title><link>https://devzone.nordicsemi.com/thread/475308?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 08:13:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54d09aab-c367-4ac8-8bfb-7ba34263d08f</guid><dc:creator>catalinio</dc:creator><description>&lt;p&gt;Hi Karl,&lt;/p&gt;
&lt;p&gt;I still can&amp;#39;t make 4 streams broadcast, as BIG can&amp;#39;t be created. I&amp;#39;ll resume debug some weeks later.&lt;/p&gt;
&lt;p&gt;For the reference, I&amp;#39;m attaching the prj.conf, hci_ipc.conf and build\dev_gateway\build_debug\zephyr\.config files.&lt;/p&gt;
&lt;p&gt;Also the last debug output is here:&lt;/p&gt;
&lt;p&gt;*** Booting nRF Connect SDK v3.5.99-ncs1-rc1 ***&lt;br /&gt;GW [00:00:00.430,541] &amp;lt;inf&amp;gt; board_version: Compatible board/HW version found: 1.0.0&lt;br /&gt;GW [00:00:00.481,872] &amp;lt;inf&amp;gt; fw_info: &lt;br /&gt; nRF5340 Audio nRF5340 Audio DK cpuapp &lt;br /&gt; NCS base version: 2.6.0-rc1 &lt;br /&gt; Cmake run : Fri Mar 22 08:43:22 2024&lt;br /&gt;GW [00:00:00.481,872] &amp;lt;inf&amp;gt; fw_info: ------- DEBUG BUILD -------&lt;br /&gt;GW [00:00:00.481,903] &amp;lt;inf&amp;gt; fw_info: Compiled for GATEWAY device&lt;br /&gt;GW [00:00:00.491,485] &amp;lt;inf&amp;gt; bt_hci_core: HW Platform: Nordic Semiconductor (0x0002)&lt;br /&gt;GW [00:00:00.491,516] &amp;lt;inf&amp;gt; bt_hci_core: HW Variant: nRF53x (0x0003)&lt;br /&gt;GW [00:00:00.491,516] &amp;lt;inf&amp;gt; bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 230.392 Build 2708674828&lt;br /&gt;GW [00:00:00.492,004] &amp;lt;inf&amp;gt; bt_hci_core: Identity: F9:1F:05:AB:3A:5C (random)&lt;br /&gt;GW [00:00:00.492,004] &amp;lt;inf&amp;gt; bt_hci_core: HCI: version 5.4 (0x0d) revision 0x2188, manufacturer 0x0059&lt;br /&gt;GW [00:00:00.492,034] &amp;lt;inf&amp;gt; bt_hci_core: LMP: version 5.4 (0x0d) subver 0x2188&lt;br /&gt;GW [00:00:00.492,431] &amp;lt;inf&amp;gt; bt_mgmt_ctlr_cfg: Controller: SoftDevice: Version 5.4 (0x0d), Revision 8584&lt;br /&gt;GW [00:00:00.492,645] &amp;lt;inf&amp;gt; bt_mgmt: Local identity addr: F9:1F:05:AB:3A:5C (random)&lt;br /&gt;GW [00:00:00.492,919] &amp;lt;inf&amp;gt; broadcast_source: Enabling broadcast_source NRF5340_BROADCASTER&lt;br /&gt;GW [00:00:00.496,734] &amp;lt;inf&amp;gt; bt_mgmt_adv: Local addr: 24:F7:01:A1:61:A2 (random)&lt;br /&gt;GW [00:00:00.498,809] &amp;lt;inf&amp;gt; main: Ext adv ready&lt;br /&gt;GW [00:00:00.498,809] &amp;lt;inf&amp;gt; broadcast_source: Starting broadcast source&lt;br /&gt;GW [00:00:00.499,267] &amp;lt;wrn&amp;gt; bt_hci_core: Z opcode 0x2068 status 0x0d&lt;br /&gt;GW [00:00:00.499,267] &amp;lt;wrn&amp;gt; bt_iso: Could not create BIG -12&lt;br /&gt;GW [00:00:00.499,267] &amp;lt;wrn&amp;gt; bt_bap_broadcast_source: Failed to create BIG: -12&lt;br /&gt;GW [00:00:00.499,267] &amp;lt;wrn&amp;gt; broadcast_source: Failed to start broadcast, ret: -12&lt;br /&gt;GW [00:00:00.499,298] &amp;lt;err&amp;gt; main: Failed to start broadcaster: -12&lt;br /&gt;GW [00:00:00.499,298] &amp;lt;inf&amp;gt; bt_mgmt_adv: Advertising successfully started&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7026.zephyr_5F00_config.txt"&gt;devzone.nordicsemi.com/.../7026.zephyr_5F00_config.txt&lt;/a&gt;&amp;nbsp; &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3716.hci_5F00_ipc.conf"&gt;devzone.nordicsemi.com/.../3716.hci_5F00_ipc.conf&lt;/a&gt;&amp;nbsp; &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8507.prj.conf"&gt;devzone.nordicsemi.com/.../8507.prj.conf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Catalin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 Audio - 4 streams broadcasting ncs v2.6.0</title><link>https://devzone.nordicsemi.com/thread/474589?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 12:04:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5890ac05-6b63-4cea-b013-1147a333d575</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello Catalin,&lt;/p&gt;
[quote user="catalinio"]I&amp;#39;m encoding 32kbps streams, in ncs 2.2, the CPU was used ~85% for encoding 6 streams; I think for 4 low bitrate streams the CPU should be fine.[/quote]
&lt;p&gt;Yes, with lower quality audio that should be fine - I was just mentioning the rule of thumb since I was not sure which bitrates you intended to use. Glad to hear that you have already tested the CPU load previously for this configuration as well!&lt;/p&gt;
[quote user="catalinio"]I&amp;#39;m just using the default hci_ipc.conf from &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.6.0-rc1/applications/nrf5340_audio/child_image/hci_ipc.conf"&gt;here&lt;/a&gt;.I want to stream just 4 broadcast streams, no CIS. Which CONF_BT_CTLR_xxx should be set for BIS?[/quote]
&lt;p&gt;You can &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/applications/nrf5340_audio/broadcast_source/Kconfig.defaults"&gt;see the necessary strictly for the broadcast source channels kconfig configurations here&lt;/a&gt;.&lt;br /&gt;These would be in addition to the ones you already have in place regarding the LC3 and the rest of the application in general.&lt;br /&gt;You should then remove the CIS related kconfigs since these too will allocate memory in the controller if left in place.&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: nrf5340 Audio - 4 streams broadcasting ncs v2.6.0</title><link>https://devzone.nordicsemi.com/thread/474414?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2024 15:47:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a4b5acf-dd6e-4e81-8861-cef9dea170b4</guid><dc:creator>catalinio</dc:creator><description>&lt;p&gt;Hi Karl,&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/109283/nrf5340-audio---4-streams-broadcasting-ncs-v2-6-0/474135"]Are you certain that you are using the same iso channel and audio quality configuration now as previously? The rule of thumb for encoding of a 96 kbps audio stream is that it will take roughly ~31% CPU to encode, and ~15% CPU to decode, so you will be nearing that if you intend to encode 4 channels concurrently.[/quote]
&lt;p&gt;I&amp;#39;m encoding 32kbps streams, in ncs 2.2, the CPU was used ~85% for encoding 6 streams; I think for 4 low bitrate streams the CPU should be fine.&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/109283/nrf5340-audio---4-streams-broadcasting-ncs-v2-6-0/474135"]Is your intentions to have concurrent BIS and CISs, and if so, how many of each?[/quote]
&lt;p&gt;I&amp;#39;m just using the default hci_ipc.conf from &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.6.0-rc1/applications/nrf5340_audio/child_image/hci_ipc.conf"&gt;here&lt;/a&gt;.I want to stream just 4 broadcast streams, no CIS. Which CONF_BT_CTLR_xxx should be set for BIS?&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;catalin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 Audio - 4 streams broadcasting ncs v2.6.0</title><link>https://devzone.nordicsemi.com/thread/474135?ContentTypeID=1</link><pubDate>Fri, 15 Mar 2024 15:53:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eac60174-66f3-4584-bef6-11794e10df04</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello Catalin,&lt;/p&gt;
[quote user="catalinio"]I have duplicated the application from ncs v2.6 (verified it and it works fine on my boards, 2 gateway scenario also fine) and added manually my code modifications from the old project based on v2.2[/quote]
&lt;p&gt;Are you certain that you are using the same iso channel and audio quality configuration now as previously? The rule of thumb for encoding of a 96 kbps audio stream is that it will take roughly ~31% CPU to encode, and ~15% CPU to decode, so you will be nearing that if you intend to encode 4 channels concurrently.&lt;/p&gt;
[quote user="catalinio"]&lt;p&gt;Now, I&amp;#39;ve just modified the .\child_image\hci_ipc.conf; I&amp;#39;ve attached the modified content, but the ENOMEM error is still there.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve increased the&amp;nbsp;CONFIG_BT_CTLR_CONN_ISO_STREAMS to 4, and the&amp;nbsp;&lt;span&gt;CONFIG_BT_MAX_CONN to&amp;nbsp;&lt;/span&gt;&lt;span&gt;5.&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;In your hci_ipc.conf you are also enabling&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;CONFIG_BT_CTLR_CONN_ISO_GROUPS&lt;br /&gt;and&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_CTLR_CONN_ISO_STREAMS&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
Which will both are for CIS&amp;#39;s, but in your description you explicitly mentions broadcasting 4 streams (BIS).&lt;br /&gt;Is your intentions to have concurrent BIS and CISs, and if so, how many of each?&lt;br /&gt;Please keep in mind that each CIS will require 1 ISO channel and 1 ACL channel.&lt;/div&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 Audio - 4 streams broadcasting ncs v2.6.0</title><link>https://devzone.nordicsemi.com/thread/474015?ContentTypeID=1</link><pubDate>Fri, 15 Mar 2024 08:07:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4864436d-8bce-4bc6-a7e1-f05b7aa287c2</guid><dc:creator>catalinio</dc:creator><description>&lt;p&gt;Hi Karl,&lt;/p&gt;
&lt;p&gt;Now, I&amp;#39;ve just modified the .\child_image\hci_ipc.conf; I&amp;#39;ve attached the modified content, but the ENOMEM error is still there.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve increased the&amp;nbsp;CONFIG_BT_CTLR_CONN_ISO_STREAMS to 4, and the&amp;nbsp;&lt;span&gt;CONFIG_BT_MAX_CONN to&amp;nbsp;&lt;/span&gt;&lt;span&gt;5.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/hci_5F00_ipc.conf"&gt;devzone.nordicsemi.com/.../hci_5F00_ipc.conf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Catalin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 Audio - 4 streams broadcasting ncs v2.6.0</title><link>https://devzone.nordicsemi.com/thread/473970?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2024 18:49:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c957c890-479d-42a0-a121-c45c12b4c88d</guid><dc:creator>catalinio</dc:creator><description>&lt;p&gt;Attached it&amp;#39;s the&amp;nbsp;&lt;em&gt;build/zephyr/.config&amp;nbsp;&lt;/em&gt;file.&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/109283/nrf5340-audio---4-streams-broadcasting-ncs-v2-6-0/473871"]The return code 12 means ENOMEM, and so it seems that it is not configured enough memory to accommodate all the streams.[/quote]
&lt;p&gt;I&amp;#39;ll recheck the streams structures to see if memory is allocated for 4 streams (though in broadcast_source.c the structures are based on the size of&amp;nbsp;CONFIG_BT_BAP_BROADCAST_SRC_STREAM_COUNT, which is 4).&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/109283/nrf5340-audio---4-streams-broadcasting-ncs-v2-6-0/473871"]Do I understand it correctly that this is the same application you had working with v2.2, which you now have upgraded? Or have you made a new one based on v2.6, and followed the same approach as previous?[/quote]
&lt;p&gt;I have duplicated the application from ncs v2.6 (verified it and it works fine on my boards, 2 gateway scenario also fine) and added manually my code modifications from the old project based on v2.2&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/109283/nrf5340-audio---4-streams-broadcasting-ncs-v2-6-0/473871"]By the way, how are you programming your application?[/quote]
&lt;p&gt;The application is programmed using the buildprog.py script; eg:&amp;nbsp;python buildprog.py -c both -b debug -d gateway -p&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/zephyr_5F00_config.txt"&gt;devzone.nordicsemi.com/.../zephyr_5F00_config.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 Audio - 4 streams broadcasting ncs v2.6.0</title><link>https://devzone.nordicsemi.com/thread/473871?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2024 13:17:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f5be3f8-47e7-4bb9-84ed-ea1a1a67fb47</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]GW [00:00:00.464,416] &amp;lt;wrn&amp;gt; broadcast_source: Failed to start broadcast, ret: -12&lt;br /&gt;GW [00:00:00.464,416] &amp;lt;err&amp;gt; main: Failed to start broadcaster: -12[/quote]
&lt;p&gt;The return code 12 means ENOMEM, and so it seems that it is not configured enough memory to accommodate all the streams.&lt;br /&gt;&lt;br /&gt;Could you share your .conf file, which is located in the&amp;nbsp;&lt;em&gt;build/zephyr/&lt;/em&gt; directory for this build?&lt;br /&gt;&lt;br /&gt;Do I understand it correctly that this is the same application you had working with v2.2, which you now have upgraded? Or have you made a new one based on v2.6, and followed the same approach as previous?&lt;/p&gt;
[quote user=""]this is produced by the binary from the network core (flashed from the corresponding path: C:\ncs\v2.6.0-rc1\nrf\lib\bin\bt_ll_acs_nrf53\bin\).[/quote]
&lt;p&gt;Not quite - the binary in this location is the older LE Audio Controller which was deprecated upon the nRF Connect SDK v2.6 release - now the default and recommended controller for LE Audio Development is the SoftDevice Controller, which the application will use by default.&lt;br /&gt;It seems from your logs that you are already using the SoftDevice Controller, so no worries there.&lt;br /&gt;&lt;br /&gt;By the way, how are you programming your application?&lt;/p&gt;
[quote user=""]So, is my assumption right? Were the 2 broadcasted streams limited somewhere between ncs v2.2 and v2.6? Am I missing some configuration or code change?[/quote]
&lt;p&gt;No, there is no such hard limitation when working with the SoftDevice Controller.&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>