<?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:LE audio  Stream stopped.INSUFFICIENT_RESOURCES</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104999/nrf5340-audio-le-audio-stream-stopped-insufficient_resources</link><description>We have an nrf5340 audio application, and there were no problems with the previous development. But when I want to extend the CIS function, especially when enabling bidirectional transmission, an error occurs, but I cannot determine the reason. 00&amp;gt; HL</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Nov 2023 07:39:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104999/nrf5340-audio-le-audio-stream-stopped-insufficient_resources" /><item><title>RE: nrf5340 audio:LE audio  Stream stopped.INSUFFICIENT_RESOURCES</title><link>https://devzone.nordicsemi.com/thread/456596?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2023 07:39:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:319a7e53-0254-4181-93b4-7fe9ee639552</guid><dc:creator>Reskyllr</dc:creator><description>&lt;p&gt;Hi dejans,&lt;br /&gt;Thanks so much for testing, I now understand where its upper limit is.&lt;/p&gt;
&lt;p&gt;Reskyllr&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 audio:LE audio  Stream stopped.INSUFFICIENT_RESOURCES</title><link>https://devzone.nordicsemi.com/thread/456358?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2023 10:22:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77070bf1-f0e8-4370-bf3f-c91bf84373ba</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Reskyllr,&lt;br /&gt;&lt;br /&gt;I am sorry for delayed reply. I was out of the office.&lt;br /&gt;&lt;br /&gt;We have tested bidirectional streams with bitrate 48000 which seems to be working for both USB and I2S input on the gateway. These are relevant configuration options:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_STREAM_BIDIRECTIONAL=y
CONFIG_BT_AUDIO_BITRATE_UNICAST_SINK=48000
CONFIG_BT_AUDIO_BITRATE_UNICAST_SRC=48000&lt;/pre&gt;&lt;br /&gt;The highest bidirectional stream bitrate is 64000 bits/s (SDU size of 80). For unidirectional streams, bitrate could go up to 96000. The lowest bitrate is 32000 and it is given by&amp;nbsp;CONFIG_LC3_BITRATE_MIN.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 audio:LE audio  Stream stopped.INSUFFICIENT_RESOURCES</title><link>https://devzone.nordicsemi.com/thread/453599?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2023 00:53:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be2c7507-77eb-44e2-b066-1b47e4ecb15f</guid><dc:creator>Reskyllr</dc:creator><description>&lt;p&gt;Hi dejans,&lt;/p&gt;
&lt;p&gt;Thank you very much, I will wait.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Reskyllr&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 audio:LE audio  Stream stopped.INSUFFICIENT_RESOURCES</title><link>https://devzone.nordicsemi.com/thread/453301?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2023 13:54:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a74fa2b-4cc8-4198-9013-934ace09d47c</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Reskyllr,&lt;br /&gt;&lt;br /&gt;I have asked internally about supported bitrate/SDU values. I&amp;#39;ll get back to you when I get this information, hopefully till the end of this 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 audio:LE audio  Stream stopped.INSUFFICIENT_RESOURCES</title><link>https://devzone.nordicsemi.com/thread/453164?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2023 00:57:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f82f0d36-3816-433e-b66d-4ee5314ce8d5</guid><dc:creator>Reskyllr</dc:creator><description>&lt;p&gt;2.4.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 audio:LE audio  Stream stopped.INSUFFICIENT_RESOURCES</title><link>https://devzone.nordicsemi.com/thread/453020?ContentTypeID=1</link><pubDate>Mon, 30 Oct 2023 12:17:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af284924-1f97-4bd5-ad99-0274525e5bbb</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Reskyllr,&lt;br /&gt;&lt;br /&gt;Which NCS version do you use?&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 audio:LE audio  Stream stopped.INSUFFICIENT_RESOURCES</title><link>https://devzone.nordicsemi.com/thread/452904?ContentTypeID=1</link><pubDate>Mon, 30 Oct 2023 00:56:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:957fc5bd-b68e-40a9-a36d-20cb182ffaaf</guid><dc:creator>Reskyllr</dc:creator><description>&lt;p&gt;I know very well how to modify the bitrate, but when modified to 48000, it doesn&amp;#39;t work, and when it is 64000, it works.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Reskyllr&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 audio:LE audio  Stream stopped.INSUFFICIENT_RESOURCES</title><link>https://devzone.nordicsemi.com/thread/452735?ContentTypeID=1</link><pubDate>Fri, 27 Oct 2023 08:35:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55dd33cf-8f8f-4289-99e8-8c1ae6d28395</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Bitrates are set using&amp;nbsp;CONFIG_BT_AUDIO_BITRATE_UNICAST_SINK and&amp;nbsp;CONFIG_BT_AUDIO_BITRATE_UNICAST_SRC. Default values can be found in &amp;lt;your_project_folder&amp;gt;\src\bluetooth\Kconfig.&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 audio:LE audio  Stream stopped.INSUFFICIENT_RESOURCES</title><link>https://devzone.nordicsemi.com/thread/452449?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 08:25:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:698838de-bcea-44f3-b5cd-a103b3a388f2</guid><dc:creator>Reskyllr</dc:creator><description>&lt;p&gt;Report new progress:&lt;br /&gt;When the bitrate is 64000 (SDU 80) it works fine, why is this? Can I set it to 60 and still have it work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 audio:LE audio  Stream stopped.INSUFFICIENT_RESOURCES</title><link>https://devzone.nordicsemi.com/thread/452436?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 07:58:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c034ada-7a79-49e7-8848-e25c7485f4f3</guid><dc:creator>Reskyllr</dc:creator><description>&lt;p&gt;When I tried to change the bitrate from 96000 -&amp;gt; 48000 (SDU 120 -&amp;gt; 60), there was a problem of direct disconnection after connection. The log is as follows. I just changed the 4 parameters (CONFIG_LC3_BITRATE, CONFIG_BT_AUDIO_BITRATE_UNICAST_SINK, CONFIG_BT_AUDIO_BITRATE_UNICAST_SRC, CONFIG_BT_AUDIO_BITRATE_ BROADCAST_SRC) from 96000 is modified to 48000&lt;br /&gt;The log is as follows:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; HL [00:00:02.862,548] &amp;lt;dbg&amp;gt; cis_gateway: le_audio_play_pause_cb: Play/pause cb, state: 1
00&amp;gt; HL [00:00:02.862,548] &amp;lt;dbg&amp;gt; cis_gateway: ep_state_check: Endpoint is NULL
00&amp;gt; HL [00:00:02.862,548] &amp;lt;dbg&amp;gt; cis_gateway: ep_state_check: Endpoint is NULL
00&amp;gt; HL [00:03:10.986,694] &amp;lt;inf&amp;gt; cis_gateway: [BLE] start_scan
00&amp;gt; HL [00:03:10.986,694] &amp;lt;inf&amp;gt; cis_gateway: Scanning successfully started
00&amp;gt; HL [00:03:11.055,389] &amp;lt;inf&amp;gt; cis_gateway: Device found FSC-BT631D-LE-76DC
00&amp;gt; HL [00:03:11.086,242] &amp;lt;inf&amp;gt; cis_gateway: Connected: 5F:55:C7:4F:47:64 (random)
00&amp;gt; HL [00:03:11.086,669] &amp;lt;dbg&amp;gt; cis_gateway: connected_cb: TX power set to 0 dBm for connection 0x20004990
00&amp;gt; HL [00:03:11.696,350] &amp;lt;dbg&amp;gt; cis_gateway: security_changed_cb: Security changed: level 2
00&amp;gt; HL [00:03:12.334,136] &amp;lt;inf&amp;gt; cis_gateway: [BLE] start_scan
00&amp;gt; HL [00:03:12.334,838] &amp;lt;inf&amp;gt; cis_gateway: Scanning successfully started
00&amp;gt; HL [00:03:12.774,322] &amp;lt;dbg&amp;gt; cis_gateway: available_contexts_cb: conn: 5F:55:C7:4F:47:64 (random), snk ctx 5 src ctx 0
00&amp;gt; 
00&amp;gt; HL [00:03:13.414,184] &amp;lt;dbg&amp;gt; cis_gateway: discover_sink_cb: Sink discover complete: err 0
00&amp;gt; HL [00:03:13.414,215] &amp;lt;dbg&amp;gt; bt_bap_stream: bt_bap_stream_config: conn 0x20004990 stream 0x20002edc, ep 0x20030814 codec 0x200007a8 codec id 0x06 codec cid 0x0000 codec vid 0x0000
00&amp;gt; HL [00:03:13.414,245] &amp;lt;dbg&amp;gt; bt_bap_stream: bt_bap_stream_attach: conn 0x20004990 stream 0x20002edc ep 0x20030814 codec 0x200007a8
00&amp;gt; HL [00:03:13.495,605] &amp;lt;inf&amp;gt; cis_gateway: LEFT sink stream configured
00&amp;gt; HL [00:03:13.495,605] &amp;lt;dbg&amp;gt; cis_gateway: stream_configured_cb: Set LEFT headset, connection 0x2000331c, stream 0x20002edc
00&amp;gt; HL [00:03:13.495,635] &amp;lt;dbg&amp;gt; bt_bap_stream: bt_bap_stream_qos: conn 0x20004990 group 0x20030b94
00&amp;gt; HL [00:03:13.495,635] &amp;lt;dbg&amp;gt; bt_bap_stream: bt_bap_stream_verify_qos: Latency 20 higher than preferred max 10
00&amp;gt; HL [00:03:13.574,310] &amp;lt;inf&amp;gt; cis_gateway: Set LEFT to PD: 10000
00&amp;gt; HL [00:03:13.574,310] &amp;lt;dbg&amp;gt; bt_bap_stream: bt_bap_stream_enable: stream 0x20002edc
00&amp;gt; HL [00:03:13.574,371] &amp;lt;inf&amp;gt; cis_gateway: Enable stream 0x20002edc
00&amp;gt; HL [00:03:13.614,593] &amp;lt;dbg&amp;gt; cis_gateway: stream_enabled_cb: Stream enabled: 0x20002edc
00&amp;gt; HL [00:03:13.614,624] &amp;lt;dbg&amp;gt; cis_gateway: stream_enabled_cb: k_msg_put: ch: 0, dir: 1, retries 0
00&amp;gt; HL [00:03:13.614,898] &amp;lt;dbg&amp;gt; cis_gateway: work_stream_start: k_msg_get: ch: 0, dir: 1, retries 0
00&amp;gt; HL [00:03:13.614,898] &amp;lt;dbg&amp;gt; bt_bap_stream: bt_bap_stream_start: stream 0x20002edc ep 0x20030814
00&amp;gt; HL [00:03:13.899,902] &amp;lt;inf&amp;gt; bt_iso: hci_le_cis_established
00&amp;gt; HL [00:03:13.899,932] &amp;lt;dbg&amp;gt; bt_iso: hci_le_cis_established: status 0 handle 2
00&amp;gt; HL [00:03:13.899,932] &amp;lt;dbg&amp;gt; bt_iso: hci_le_cis_established: iso_chan 0x2003040c tx 0x2003047c rx 0x20030444
00&amp;gt; HL [00:03:13.899,963] &amp;lt;dbg&amp;gt; bt_iso: bt_iso_connected: 0x20004f00
00&amp;gt; HL [00:03:14.890,075] &amp;lt;dbg&amp;gt; bt_iso: bt_iso_disconnected: 0x20004f00
00&amp;gt; HL [00:03:14.890,075] &amp;lt;dbg&amp;gt; bt_iso: bt_iso_chan_disconnected: 0x2003040c, reason 0x13
00&amp;gt; HL [00:03:14.890,075] &amp;lt;dbg&amp;gt; bt_iso: bt_iso_cleanup_acl: 0x20004f00
00&amp;gt; HL [00:03:14.890,136] &amp;lt;dbg&amp;gt; bt_iso: bt_iso_remove_data_path: 0x20004f00
00&amp;gt; HL [00:03:14.890,441] &amp;lt;wrn&amp;gt; bt_hci_core: opcode 0x206f status 0x0c
00&amp;gt; HL [00:03:14.890,930] &amp;lt;wrn&amp;gt; bt_hci_core: opcode 0x206f status 0x12
00&amp;gt; HL [00:03:14.890,930] &amp;lt;inf&amp;gt; cis_gateway: Stream 0x20002edc stopped. Reason 19
00&amp;gt; HL [00:03:14.890,960] &amp;lt;dbg&amp;gt; cis_gateway: ep_state_check: Endpoint is NULL
00&amp;gt; HL [00:03:14.891,235] &amp;lt;inf&amp;gt; streamctrl: LE audio evt not_streaming
00&amp;gt; HL [00:03:14.893,127] &amp;lt;dbg&amp;gt; bt_bap_stream: bt_bap_stream_reset: stream 0x20002edc
00&amp;gt; HL [00:03:14.893,127] &amp;lt;dbg&amp;gt; bt_bap_stream: bt_bap_stream_detach: stream 0x20002edc
00&amp;gt; HL [00:03:14.893,157] &amp;lt;dbg&amp;gt; bt_bap_stream: bt_bap_stream_disconnect: stream 0x20002edc iso (nil)
00&amp;gt; HL [00:03:14.893,157] &amp;lt;dbg&amp;gt; cis_gateway: stream_released_cb: Audio Stream 0x20002edc released
00&amp;gt; HL [00:03:14.893,157] &amp;lt;dbg&amp;gt; cis_gateway: ep_state_check: Endpoint is NULL
00&amp;gt; HL [00:03:14.893,371] &amp;lt;inf&amp;gt; cis_gateway: Disconnected: 5F:55:C7:4F:47:64 (random) (reason 0x08)
00&amp;gt; HL [00:03:14.893,432] &amp;lt;inf&amp;gt; cis_gateway: [BLE] start_scan
00&amp;gt; HL [00:03:14.893,463] &amp;lt;inf&amp;gt; cis_gateway: Scanning successfully started
00&amp;gt; HL [00:03:14.893,951] &amp;lt;inf&amp;gt; streamctrl: LE audio evt not_streaming
00&amp;gt; HL [00:03:14.907,257] &amp;lt;inf&amp;gt; cis_gateway: Device found FSC-BT631D-LE-76DC&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Any advice to offer?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Reskyllr&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 audio:LE audio  Stream stopped.INSUFFICIENT_RESOURCES</title><link>https://devzone.nordicsemi.com/thread/452395?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 01:42:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4091a385-9a80-40e5-a285-7f1fbfbb30e7</guid><dc:creator>Reskyllr</dc:creator><description>&lt;p&gt;Hi,dejans&lt;/p&gt;
&lt;p&gt;I understand your statement.&lt;br /&gt;In addition to SDU, it seems to be related to CONFIG_BT_AUDIO_RETRANSMITS.&lt;br /&gt;When CIS SDU = 120, CONFIG_BT_AUDIO_RETRANSMITS=2, it works normally. CONFIG_BT_AUDIO_RETRANSMITS=4, BT_HCI_ERR_INSUFFICIENT_RESOURCES appears.&lt;br /&gt;What is the conversion relationship between them? Do you mean that the two-way SDU needs to be limited to less than 80? Does it mean that the total SDU cannot exceed 160?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 audio:LE audio  Stream stopped.INSUFFICIENT_RESOURCES</title><link>https://devzone.nordicsemi.com/thread/452323?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2023 14:40:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7adeec64-99ca-4b48-8e75-03f39f5d7ae3</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Reskyllr,&lt;br /&gt;&lt;br /&gt;I have spoken to our developers. They have tested CONFIG_STREAM_BIDIRECTIONAL=y in prj.conf in the main branch and it seemed to be working without issues. Regarding SDU, it is not possible to put SDU to the value of 240 for bidirectional communication due to scheduling issues in a current version of the controller. The maximum size of SDU in each direction that is tested and expected to be working is 80.&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 audio:LE audio  Stream stopped.INSUFFICIENT_RESOURCES</title><link>https://devzone.nordicsemi.com/thread/452111?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2023 01:28:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff43ab2f-24d4-4e23-85e1-e84ae8618722</guid><dc:creator>Reskyllr</dc:creator><description>&lt;p&gt;Hi dejans,&lt;/p&gt;
&lt;p&gt;Yes, I added CONFIG_STREAM_BIDIRECTIONAL=y, I want to use CIS intercom functionality, but that&amp;#39;s not my main goal.&lt;br /&gt;I want to know what causes BT_HCI_ERR_INSUFFICIENT_RESOURCES.&lt;br /&gt;Because there is another situation where the same error occurs:&lt;br /&gt;I expanded the SDU size to 240 (used to transmit stereo sound) in BIS mode, and everything worked fine.&lt;br /&gt;When I want to do the same work in CIS mode, Stream stop: Reason 13(BT_HCI_ERR_INSUFFICIENT_RESOURCES) appears.&lt;br /&gt;If you restore the SDU size to 120 (mono transmission), it works normally.&lt;br /&gt;But when adding CONFIG_STREAM_BIDIRECTIONAL=y, the same error (BT_HCI_ERR_INSUFFICIENT_RESOURCES) occurred again.&lt;/p&gt;
&lt;p&gt;You don&amp;#39;t need to understand it, I just want to know the cause of this error and how to fix it.&lt;br /&gt;Thanks,&lt;br /&gt;Reskyllr&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 audio:LE audio  Stream stopped.INSUFFICIENT_RESOURCES</title><link>https://devzone.nordicsemi.com/thread/451971?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2023 12:46:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7248cdec-afd6-4205-8c75-fd94858c94c2</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Support for bidirectional streams to or from 2 headsets was added in&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.2/nrf/releases/release-notes-2.3.0.html#nrf5340-audio"&gt;NCS v2.3.0&lt;/a&gt;.&amp;nbsp;Have you selected CONFIG_STREAM_BIDIRECTIONAL=y in your project configuration?&lt;br /&gt;&lt;br /&gt;Could you please provide information on what you try to achieve?&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>