Skip to content

Commit 45d4d4f

Browse files
cvinayakcfriedt
authored andcommitted
samples: Bluetooth: Fix BAP unicast client and server buffer counts
Fix BAP unicast and server sample ISO Tx buffer count to match the minimum required to consistently transmit SDUs in every ISO interval. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 7fd5dea commit 45d4d4f

File tree

2 files changed

+26
-13
lines changed

2 files changed

+26
-13
lines changed

samples/bluetooth/bap_unicast_client/overlay-bt_ll_sw_split.conf

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
1+
# Zephyr Bluetooth Controller needs 3 Tx Buffers enqueued as the Number of Completed Packets event
2+
# is returned one ISO interval later, i.e. the PDU flush is checked at the prepare of radio events.
3+
CONFIG_BT_ISO_TX_BUF_COUNT=6
4+
5+
# Zephyr Bluetooth Controller
16
CONFIG_BT_LL_SW_SPLIT=y
2-
CONFIG_BT_CTLR_SCAN_DATA_LEN_MAX=1650
3-
CONFIG_BT_CTLR_ISO_TX_BUFFERS=4
7+
8+
# Supports the highest advertising data that is set in a single HCI command in
9+
# Zephyr Bluetooth Controller
10+
CONFIG_BT_CTLR_SCAN_DATA_LEN_MAX=191
11+
12+
# Number of supported streams
413
CONFIG_BT_CTLR_ISOAL_SOURCES=2
514
CONFIG_BT_CTLR_ISOAL_SINKS=1
615

16+
# Numbe of ISO Tx Buffers
17+
CONFIG_BT_CTLR_ISO_TX_BUFFERS=6
18+
719
# Support the highest SDU size required by any BAP LC3 presets (155) + 8 bytes of HCI ISO Data
820
# packet overhead (the Packet_Sequence_Number, ISO_SDU_Length, Packet_Status_Flag fields; and
921
# the optional Time_Stamp field, if supplied)
1022
CONFIG_BT_CTLR_ISO_TX_BUFFER_SIZE=163
1123
CONFIG_BT_CTLR_ISO_TX_SDU_LEN_MAX=155
12-
13-
CONFIG_BT_CTLR_ADVANCED_FEATURES=y
14-
CONFIG_BT_CTLR_CONN_ISO_LOW_LATENCY_POLICY=y
15-
16-
# Use the below if the sample is sending stale packet sequence number
17-
# CONFIG_BT_CTLR_ISOAL_SN_STRICT=n

samples/bluetooth/bap_unicast_server/overlay-bt_ll_sw_split.conf

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
1+
# Zephyr Bluetooth Controller needs 3 Tx Buffers enqueued as the Number of Completed Packets event
2+
# is returned one ISO interval later, i.e. the PDU flush is checked at the prepare of radio events.
3+
CONFIG_BT_ISO_TX_BUF_COUNT=3
4+
5+
# Zephyr Bluetooth Controller
16
CONFIG_BT_LL_SW_SPLIT=y
7+
8+
# Zephyr Controller tested maximum advertising data that can be set in a single HCI command
29
CONFIG_BT_CTLR_ADV_DATA_LEN_MAX=191
3-
CONFIG_BT_CTLR_ISO_TX_BUFFERS=2
10+
11+
# Number of supported streams
412
CONFIG_BT_CTLR_ISOAL_SOURCES=1
513
CONFIG_BT_CTLR_ISOAL_SINKS=2
614

15+
# Numbe of ISO Tx Buffers
16+
CONFIG_BT_CTLR_ISO_TX_BUFFERS=3
17+
718
# Support the highest SDU size required by any BAP LC3 presets (155) + 8 bytes of HCI ISO Data
819
# packet overhead (the Packet_Sequence_Number, ISO_SDU_Length, Packet_Status_Flag fields; and
920
# the optional Time_Stamp field, if supplied)
1021
CONFIG_BT_CTLR_ISO_TX_BUFFER_SIZE=163
1122
CONFIG_BT_CTLR_ISO_TX_SDU_LEN_MAX=155
12-
13-
# Use the below if the sample is sending stale packet sequence number
14-
# CONFIG_BT_CTLR_ADVANCED_FEATURES=y
15-
# CONFIG_BT_CTLR_ISOAL_SN_STRICT=n

0 commit comments

Comments
 (0)