<?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>The CONFIG_BT_MAX_CONN of nRF5340 audio application on SDK V2.6.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113551/the-config_bt_max_conn-of-nrf5340-audio-application-on-sdk-v2-6-0</link><description>Hello, 
 Because i want to connect more than two headset to one gateway, so i modify the prj.conf as follow 
 
 
 
 CONFIG_AUDIO_DEV =2 
 
 CONFIG_BT_MAX_CONN =4 
 CONFIG_BT_MAX_PAIRED =4 
 
 But when it will crashed when the gateway started to run: </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Sep 2024 09:06:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113551/the-config_bt_max_conn-of-nrf5340-audio-application-on-sdk-v2-6-0" /><item><title>RE: The CONFIG_BT_MAX_CONN of nRF5340 audio application on SDK V2.6.0</title><link>https://devzone.nordicsemi.com/thread/501309?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2024 09:06:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ecef01e-8a7f-476c-b3df-f2bcb1ea86ef</guid><dc:creator>huma</dc:creator><description>&lt;p&gt;Hello&lt;span&gt;, Amanda&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thank you very much! I will test it later. If there is some result, i will report to you.&lt;/p&gt;
&lt;p&gt;Thank.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The CONFIG_BT_MAX_CONN of nRF5340 audio application on SDK V2.6.0</title><link>https://devzone.nordicsemi.com/thread/501189?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 14:01:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1734f374-cf1f-44b4-8bff-880322857e4a</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="huma"]But if i make the &amp;quot;&lt;span&gt;CONFIG_BT_MAX_CONN&amp;nbsp;&lt;/span&gt;&amp;quot; to 3, when the gateway start, it will crashed, even there is no headset connect to it. It will log out it have&amp;nbsp;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;BT_HCI_ERR_MEM_CAPACITY_EXCEEDED&lt;/span&gt;&lt;span&gt;&amp;quot; error.&lt;/span&gt;[/quote]
&lt;p&gt;Try to increase the value in&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.7.0/applications/nrf5340_audio/sysbuild/ipc_radio/prj.conf#L26-L33"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.7.0/applications/nrf5340_audio/sysbuild/ipc_radio/prj.conf#L26-L33&lt;/a&gt;&amp;nbsp;for network core.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The CONFIG_BT_MAX_CONN of nRF5340 audio application on SDK V2.6.0</title><link>https://devzone.nordicsemi.com/thread/501055?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 01:18:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99f96667-c339-42f7-877e-af9c693846a5</guid><dc:creator>huma</dc:creator><description>&lt;p&gt;Hello, Amanda&lt;/p&gt;
&lt;p&gt;Yes, of course i follow your suggestions. I have add the following code to prj.conf&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/pastedimage1725411750505v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;And for the audio channel, i think i can send the same channel signal to different headset, for example, i can send left channel to headset 1th and 2th, send right channle to headset 3th, 4th. I only want to increase the connection numbers first.&lt;/p&gt;
&lt;p&gt;And I also briefly browsed through the project you sent me.(&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a title="https://github.com/alexsven/sdk-nrf/commit/68a7ac3452a5c55a25ab275d761393dbdea4d5df" href="https://github.com/alexsven/sdk-nrf/commit/68a7ac3452a5c55a25ab275d761393dbdea4d5df" rel="noopener noreferrer" target="_blank"&gt;https://github.com/alexsven/sdk-nrf/commit/68a7ac3452a5c55a25ab275d761393dbdea4d5df&lt;/a&gt;), I found it also deal with the tx part, but it not modify the&amp;nbsp;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;CONFIG_BT_MAX_CONN&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;quot;, so I feel a littgle confused, and i do not know what the version of SDK it based on, so i can not test it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But what ever, I think the first thing is i can make the gateway connect to at least 3 headset at same time, even if i do not have 3 channel signal input.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;But if i make the &amp;quot;&lt;span&gt;CONFIG_BT_MAX_CONN&amp;nbsp;&lt;/span&gt;&amp;quot; to 3, when the gateway start, it will crashed, even there is no headset connect to it. It will log out it have&amp;nbsp;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;BT_HCI_ERR_MEM_CAPACITY_EXCEEDED&lt;/span&gt;&lt;span&gt;&amp;quot; error.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;So, do you have some suggestions about that? Can you give me some help, it very hard to continue.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;Thank you very much and looking forward to your reply!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The CONFIG_BT_MAX_CONN of nRF5340 audio application on SDK V2.6.0</title><link>https://devzone.nordicsemi.com/thread/501012?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2024 14:56:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0126f561-8d5f-4e80-bfdb-2746b5ff8cc7</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you follow my suggestion in the previous reply to modify?&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The CONFIG_BT_MAX_CONN of nRF5340 audio application on SDK V2.6.0</title><link>https://devzone.nordicsemi.com/thread/500709?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2024 08:39:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97ef1539-d547-40f1-a513-82a7c63b207e</guid><dc:creator>huma</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;Amanda&lt;/p&gt;
&lt;p&gt;Sorry for late, because i was deal with another function..&lt;/p&gt;
&lt;p&gt;Now, i am back to this question. i use the v2.7.0 SDK, and when i modify the&amp;nbsp;&lt;span&gt;CONFIG_BT_MAX_CONN to 3, it will crashed, i followed the code, found the status is 7 means there is a &amp;quot;&lt;/span&gt;BT_HCI_ERR_MEM_CAPACITY_EXCEEDED&lt;span&gt;&amp;quot; error.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I don&amp;#39;t understand where the memory is insufficient, is it the network core or the application core?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/pastedimage1725265671445v5.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/pastedimage1725265696191v6.png" alt=" " /&gt;&lt;/span&gt;&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/pastedimage1725265624323v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;It hard to continue... I found if the &amp;quot;&lt;span&gt;param&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;params_count&amp;quot; is more than 2, in the for loop if the &amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;unicast_group_add_stream_pair&lt;/span&gt;&amp;quot; called more than 2 times, the &amp;ldquo;bt_audio_cig_create&amp;rdquo; will failed.&lt;/div&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/pastedimage1725266138966v7.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Can you give me some suggestions about that,&amp;nbsp;&lt;span&gt;Thank you very much and looking forward to your reply!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The CONFIG_BT_MAX_CONN of nRF5340 audio application on SDK V2.6.0</title><link>https://devzone.nordicsemi.com/thread/497040?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2024 17:34:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c9d0191-7d32-44aa-962b-d1eab610601e</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="huma"]can i decrease the&amp;nbsp;quality to increase the connection number? If i can, how much will the audio quality will decrease? I need to test and evaluate this result. So do you have any suggestions for me?[/quote]
&lt;p&gt;This is not easy, since the nRF5340 audio project is designed for the TWS earbuds solution.&lt;/p&gt;
&lt;p&gt;But you could make a trial with&lt;/p&gt;
&lt;p&gt;1. In the default CIS demo, add the following configs for evaluating the CPU usage&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Use I2S interface

CONFIG_AUDIO_SOURCE_I2S=y

# Change the bitrate between 32000 to 96000, the low bitrate leads to lower CPU rate

CONFIG_BT_AUDIO_BITRATE_UNICAST_SRC=32000 

# Change the sampling frequency
CONFIG_BT_AUDIO_PREF_SAMPLE_RATE_16KHZ=y

# Print CPU usage numbers
CONFIG_THREAD_ANALYZER=y

CONFIG_THREAD_ANALYZER_USE_PRINTK=y

CONFIG_THREAD_ANALYZER_AUTO=y

CONFIG_THREAD_ANALYZER_AUTO_INTERVAL=5&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. You would need to figure out a way to input a multiple-channel audio stream since I2S only supports two channels.&lt;/p&gt;
&lt;p&gt;If you are not going to send live streams, you could store the encoded LC3 in the SD card or flash and then send the encoded streams.&lt;/p&gt;
&lt;p&gt;3. You would need to study the nrf/applications/nrf5340_audio/src/bluetooth/bt_stream/unicast/unicast_client.c because that is the core of the unicast client.&lt;/p&gt;
&lt;p&gt;A lot of exchange will be expected. Here is a reference based on old NCS for showing how to make the unicast client be able to handle multiple unicast servers&amp;nbsp;&lt;a title="https://github.com/alexsven/sdk-nrf/commit/68a7ac3452a5c55a25ab275d761393dbdea4d5df" href="https://github.com/alexsven/sdk-nrf/commit/68a7ac3452a5c55a25ab275d761393dbdea4d5df" rel="noopener noreferrer" target="_blank"&gt;https://github.com/alexsven/sdk-nrf/commit/68a7ac3452a5c55a25ab275d761393dbdea4d5df&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The CONFIG_BT_MAX_CONN of nRF5340 audio application on SDK V2.6.0</title><link>https://devzone.nordicsemi.com/thread/496739?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2024 01:27:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90180d47-38f0-4692-a735-546deeb5c794</guid><dc:creator>huma</dc:creator><description>&lt;p&gt;Hello Amanda&lt;/p&gt;
&lt;p&gt;Thank you for your reply!&amp;nbsp;I think I understand what you mean.&lt;/p&gt;
&lt;p&gt;But please forgive me, I still want to ask one more questions.&lt;/p&gt;
&lt;p&gt;Now I am using the I2S in, so the USB function actually disabled. I want to ask if i only use the I2S in, is there enough resources can connect more than two headsets?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you very much and looking forward to your reply!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The CONFIG_BT_MAX_CONN of nRF5340 audio application on SDK V2.6.0</title><link>https://devzone.nordicsemi.com/thread/496710?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 19:38:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc8a6f1b-24b4-4ef2-8682-03d7f91cc931</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Unfortunately, the current audio application cannot support more than 2 headsets&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The CPU resource is not enough since stereo channels could need ~66% CPU. It will increase the CPU workload while&amp;nbsp;using the USB interface. It also requires more CPU workload to decode with BIDIR.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;The current configuration on the unicast client is for connecting two headsets and then setting them separately for L and R channels. Then the unicast client will send the streams to each of them. The application won&amp;#39;t be able to support the extra headsets.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The CONFIG_BT_MAX_CONN of nRF5340 audio application on SDK V2.6.0</title><link>https://devzone.nordicsemi.com/thread/496484?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 00:58:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47e13e22-53cc-4ca5-9ad2-1219edb00385</guid><dc:creator>huma</dc:creator><description>&lt;p&gt;Hello Amanda&lt;/p&gt;
&lt;p&gt;Thank you for your reply!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Would you like to make every headset get different streams or&amp;nbsp;share the same stream contents?&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yes, in our user&amp;nbsp;scenarios, the gateway may be send different signal to more than two headsets, &amp;nbsp;and this&amp;nbsp;scenarios in our product in not work in the BIS mode. So i need to check the limitation of connection.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So, can i decrease the&amp;nbsp;quality to increase the connection number? If i can, how much will the audio quality will decrease? I need to test and evaluate this result. So do you have any suggestions for me?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you very much and looking forward to your reply!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The CONFIG_BT_MAX_CONN of nRF5340 audio application on SDK V2.6.0</title><link>https://devzone.nordicsemi.com/thread/496466?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2024 18:09:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12a3028f-0362-420a-a2b1-55320a0a809a</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;The&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/applications/nrf5340_audio/unicast_client/README.html"&gt;nRF5340 Audio: Unicast client&lt;/a&gt;&amp;nbsp;currently&lt;span&gt;&lt;span&gt;&amp;nbsp;supports up to&amp;nbsp;&lt;span dir="ltr"&gt;2 headsets, one for left and one for right.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span dir="ltr"&gt;The default configuration will try to allocate high-quality QoS settings for two headsets. Trying to extend the BT_MAX_CONN will make the controller cannot allocate the proper resource (out of bandwidth).&amp;nbsp;The crash error code shows the controller cannot allocate proper timing resources when creating CIG (connected isochronous group).&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Would you like to make every headset get different streams or&amp;nbsp;share the same stream contents?&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span dir="ltr"&gt;If you want to share the same stream with multiple headsets, BIS would be the better way.&amp;nbsp;BIS is a unidirectional communication protocol that allows for broadcasting one or more audio streams from a source device to an unlimited number of receivers that are not connected to the source.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>