-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bluetooth: Controller: BT_CTLR_ISO_TX_BUFFER_SIZE from BT_ISO_TX_MTU
Derive BT_CTLR_ISO_TX_BUFFER_SIZE from BT_ISO_TX_MTU to have optimal Controller memory allocations. BT_CTLR_ISO_TX_BUFFER_SIZE can be set lower than BT_ISO_TX_MTU in which case upper layer can send fragmented SDU to the Controller. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
- Loading branch information
1 parent
3997479
commit 2c6306d
Showing
31 changed files
with
136 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Zephyr Bluetooth Controller | ||
CONFIG_BT_LL_SW_SPLIT=y | ||
|
||
# Zephyr Bluetooth LE Controller needs 16 event buffers to generate Extended | ||
# Advertising Report for receiving the complete 1650 bytes of data | ||
CONFIG_BT_BUF_EVT_RX_COUNT=16 | ||
|
||
# Set maximum scan data length for Extended Scanning in Bluetooth LE Controller | ||
CONFIG_BT_CTLR_SCAN_DATA_LEN_MAX=1650 | ||
|
||
# Increase Zephyr Bluetooth LE Controller Rx buffer to receive complete chain | ||
# of PDUs | ||
CONFIG_BT_CTLR_RX_BUFFERS=9 | ||
|
||
# Sufficient ISO SDU and PDU length for this sample with ISO_TX_MTU of 247 | ||
CONFIG_BT_CTLR_CONN_ISO_SDU_LEN_MAX=247 | ||
CONFIG_BT_CTLR_CONN_ISO_PDU_LEN_MAX=251 | ||
|
||
# Number of supported streami sources and sinks | ||
CONFIG_BT_CTLR_ISOAL_SOURCES=2 | ||
CONFIG_BT_CTLR_ISOAL_SINKS=1 | ||
|
||
# Support the highest SDU size required by this sample 247 + 8 bytes of HCI ISO Data | ||
# packet overhead (timestamp and HCI ISO Data packet header) | ||
CONFIG_BT_CTLR_ISO_TX_BUFFER_SIZE=255 | ||
CONFIG_BT_CTLR_ISO_TX_BUFFERS=4 | ||
|
||
# Use Low Latency Connected ISO policy | ||
CONFIG_BT_CTLR_ADVANCED_FEATURES=y | ||
CONFIG_BT_CTLR_CONN_ISO_LOW_LATENCY_POLICY=y | ||
|
||
# Use the below if the sample is sending stale packet sequence number | ||
# CONFIG_BT_CTLR_ISOAL_SN_STRICT=n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 14 additions & 7 deletions
21
samples/bluetooth/iso_broadcast/overlay-bt_ll_sw_split.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
# Zephyr Bluetooth Controller | ||
CONFIG_BT_LL_SW_SPLIT=y | ||
|
||
# Zephyr Controller tested maximum advertising data that can be set in a single HCI command | ||
CONFIG_BT_CTLR_ADV_DATA_LEN_MAX=191 | ||
|
||
# Enable support for Broadcast ISO in Zephyr Bluetooth Controller | ||
CONFIG_BT_CTLR_ADV_ISO=y | ||
|
||
# Sufficient ISO PDU length for this sample | ||
CONFIG_BT_CTLR_ADV_ISO_PDU_LEN_MAX=4 | ||
CONFIG_BT_CTLR_ADV_ISO_STREAM_MAX=2 | ||
|
||
# Number of supported streams | ||
CONFIG_BT_CTLR_ADV_ISO_STREAM_MAX=2 | ||
CONFIG_BT_CTLR_ISOAL_SOURCES=2 | ||
|
||
# FIXME: Host needs CONFIG_BT_ISO_TX_MTU + 4 bytes for sequence number, and | ||
# optionally additional + 4 bytes for timestamp when not using | ||
# BT_ISO_TIMESTAMP_NONE in bt_iso_chan_send(), otherwise Host tries to fragment | ||
# ISO data. | ||
# When Host is fixed, CONFIG_BT_CTLR_ISO_TX_BUFFER_SIZE can inherit the | ||
# CONFIG_BT_ISO_TX_MTU value. | ||
# Support the highest SDU size required by any BAP LC3 presets (155) + 8 bytes of HCI ISO Data | ||
# packet overhead (the Packet_Sequence_Number, ISO_SDU_Length, Packet_Status_Flag fields; and | ||
# the optional Time_Stamp field, if supplied) | ||
CONFIG_BT_CTLR_ISO_TX_BUFFER_SIZE=12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
samples/bluetooth/tmap_central/boards/nrf52840dk_nrf52840.conf
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
samples/bluetooth/tmap_peripheral/boards/nrf52840dk_nrf52840.conf
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
samples/bluetooth/unicast_audio_client/boards/nrf52840dk_nrf52840.conf
This file was deleted.
Oops, something went wrong.
7 changes: 6 additions & 1 deletion
7
samples/bluetooth/unicast_audio_client/overlay-bt_ll_sw_split.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
samples/bluetooth/unicast_audio_server/boards/nrf52840dk_nrf52840.conf
This file was deleted.
Oops, something went wrong.
6 changes: 5 additions & 1 deletion
6
samples/bluetooth/unicast_audio_server/overlay-bt_ll_sw_split.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
CONFIG_BT_LL_SW_SPLIT=y | ||
CONFIG_BT_CTLR_ADV_DATA_LEN_MAX=191 | ||
CONFIG_BT_CTLR_ISO_TX_BUFFERS=2 | ||
CONFIG_BT_CTLR_ISO_TX_BUFFER_SIZE=155 | ||
CONFIG_BT_CTLR_ISOAL_SOURCES=1 | ||
CONFIG_BT_CTLR_ISOAL_SINKS=2 | ||
|
||
# Support the highest SDU size required by any BAP LC3 presets (155) + 8 bytes of HCI ISO Data | ||
# packet overhead (the Packet_Sequence_Number, ISO_SDU_Length, Packet_Status_Flag fields; and | ||
# the optional Time_Stamp field, if supplied) | ||
CONFIG_BT_CTLR_ISO_TX_BUFFER_SIZE=163 | ||
|
||
# Use the below if the sample is sending stale packet sequence number | ||
# CONFIG_BT_CTLR_ADVANCED_FEATURES=y | ||
# CONFIG_BT_CTLR_ISOAL_SN_STRICT=n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.