-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Bluetooth: Controller: Ext Adv Auxiliary PDUs with ticks_slot_window #80733
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
22cc3d7
13be5a7
c5a2130
4ef16d0
f01f803
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| CONFIG_IPC_SERVICE=y | ||
| CONFIG_MBOX=y | ||
|
|
||
| CONFIG_HEAP_MEM_POOL_SIZE=8192 | ||
| CONFIG_HEAP_MEM_POOL_SIZE=6144 | ||
|
||
|
|
||
| CONFIG_MAIN_STACK_SIZE=512 | ||
| CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,7 @@ CONFIG_ISR_STACK_SIZE=1024 | |
| CONFIG_IDLE_STACK_SIZE=256 | ||
| CONFIG_MAIN_STACK_SIZE=512 | ||
| CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512 | ||
| CONFIG_HEAP_MEM_POOL_SIZE=8192 | ||
| CONFIG_HEAP_MEM_POOL_SIZE=6144 | ||
|
||
|
|
||
| CONFIG_BT=y | ||
| CONFIG_BT_HCI_RAW=y | ||
|
|
@@ -39,7 +39,11 @@ CONFIG_BT_ISO_PERIPHERAL=y | |
|
|
||
| # ISO Streams | ||
| CONFIG_BT_ISO_MAX_CHAN=4 | ||
| CONFIG_BT_ISO_TX_BUF_COUNT=1 | ||
| # In theory, CONFIG_BT_ISO_TX_BUF_COUNT=1, should be sufficient but this count | ||
| # is used in the context of IPC which falls into a "Newton's Cradle" effect | ||
| # where probably (CONFIG_BT_CTLR_ISO_TX_BUFFERS - CONFIG_BT_ISO_TX_BUF_COUNT) | ||
| # buffers get throttled. Hence, always have the value equal or greater. | ||
| CONFIG_BT_ISO_TX_BUF_COUNT=12 | ||
| CONFIG_BT_ISO_RX_BUF_COUNT=1 | ||
|
|
||
| # Controller | ||
|
|
@@ -82,8 +86,8 @@ CONFIG_BT_CTLR_LLCP_LOCAL_PROC_CTX_BUF_NUM=6 | |
| # ISO Connection Oriented | ||
| CONFIG_BT_CTLR_CENTRAL_ISO=y | ||
| CONFIG_BT_CTLR_PERIPHERAL_ISO=y | ||
| CONFIG_BT_CTLR_CONN_ISO_STREAMS=2 | ||
| CONFIG_BT_CTLR_CONN_ISO_GROUPS=1 | ||
| CONFIG_BT_CTLR_CONN_ISO_STREAMS=2 | ||
| CONFIG_BT_CTLR_CONN_ISO_STREAMS_PER_GROUP=2 | ||
| CONFIG_BT_CTLR_CONN_ISO_SDU_LEN_MAX=247 | ||
| CONFIG_BT_CTLR_CONN_ISO_PDU_LEN_MAX=251 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,7 @@ CONFIG_ISR_STACK_SIZE=1024 | |
| CONFIG_IDLE_STACK_SIZE=256 | ||
| CONFIG_MAIN_STACK_SIZE=512 | ||
| CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512 | ||
| CONFIG_HEAP_MEM_POOL_SIZE=8192 | ||
| CONFIG_HEAP_MEM_POOL_SIZE=6144 | ||
|
||
|
|
||
| CONFIG_BT=y | ||
| CONFIG_BT_HCI_RAW=y | ||
|
|
||
Thalley marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,6 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # Reduce from 310 bytes, in nrf5340_cpunet_iso-bt_ll_sw_split.conf | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # to be able to fit in 64KB RAM, in case needed in the future. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # Example: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # CONFIG_BT_ISO_TX_MTU=247 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # CONFIG_BT_ISO_RX_MTU=251 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Processing order | |
| **************** | |
| Snippets are processed in the order they are listed in the :makevar:`SNIPPET` | |
| variable, or in the order of the ``-S`` arguments if using west. | |
| To apply ``bar`` after ``foo``: | |
| .. code-block:: console | |
| cmake -Sapp -Bbuild -DSNIPPET="foo;bar" [...] | |
| cmake --build build | |
| The same can be achieved with west as follows: | |
| .. code-block:: console | |
| west build -S foo -S bar [...] app | |
| When multiple snippets set the same configuration, the configuration value set | |
| by the last processed snippet ends up in the final configurations. | |
| For instance, if ``foo`` sets ``CONFIG_FOO=1`` and ``bar`` sets | |
| ``CONFIG_FOO=2`` in the above example, the resulting final configuration will | |
| be ``CONFIG_FOO=2`` because ``bar`` is processed after ``foo``. | |
| This principle applies to both Kconfig fragments (``.conf`` files) and | |
| devicetree overlays (``.overlay`` files). | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be further explained in a GH issue?
This isn't something I understand as it is written here
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I will create a detailed GH issue in the coming days... need to put some effort on simple sample rather that the audio tests to be able to reproduce/demo the issue.
The related code is:
zephyr/samples/bluetooth/hci_ipc/src/main.c
Lines 165 to 199 in 9a80457
This function can return without call to
k_fifo_put(), and there is no resumption/dequeue of Rx when the buffers are available later in time, causing the buffers/stream inside IPC to be stagnate until any next trigger that would call thehci_ipc_rx()again.The next trigger would be a num complete event (or disconnect or any reports?) going upstream (one side of the Newton's Cradle, say one item strikes), consequently (other side of the Newton's Cradle, one item now strikes) new buffers are enqueued from upstream.
This effect can happen in either direction, I believe.