forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: bsim: Bluetooth: nrRF53/54L: Throughput and multiple_id testing
Enable throughput and multiple_id testing on nRF5340bsim and nrf54l15bsim. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
- Loading branch information
Showing
15 changed files
with
157 additions
and
10 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
samples/bluetooth/bap_unicast_client/boards/nrf54l15bsim_nrf54l15_cpuapp.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# For LC3 the following configs are needed | ||
CONFIG_FPU=y | ||
CONFIG_LIBLC3=y |
3 changes: 3 additions & 0 deletions
3
samples/bluetooth/bap_unicast_server/boards/nrf54l15bsim_nrf54l15_cpuapp.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# For LC3 the following configs are needed | ||
CONFIG_FPU=y | ||
CONFIG_LIBLC3=y |
5 changes: 5 additions & 0 deletions
5
.../bsim/bluetooth/audio_samples/bap_unicast_client/boards/nrf54l15bsim_nrf54l15_cpuapp.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This file content is just a copy of the equivalent one in the unicast client sample | ||
|
||
# For LC3 the following configs are needed | ||
CONFIG_FPU=y | ||
CONFIG_LIBLC3=y |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Copyright 2023 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
source "share/sysbuild/Kconfig" | ||
|
||
config NET_CORE_BOARD | ||
string | ||
default "nrf5340bsim/nrf5340/cpunet" if $(BOARD_TARGET_STRING) = "NRF5340BSIM_NRF5340_CPUAPP" | ||
|
||
config NATIVE_SIMULATOR_PRIMARY_MCU_INDEX | ||
int | ||
# Let's pass the test arguments to the application MCU test | ||
# otherwise by default they would have gone to the net core. | ||
default 0 if $(BOARD_TARGET_STRING) = "NRF5340BSIM_NRF5340_CPUAPP" |
34 changes: 34 additions & 0 deletions
34
tests/bsim/bluetooth/ll/multiple_id/overlay-nrf5340_cpunet_iso-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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Maximum simultaneous ACL connections, today's maximum considering other | ||
# roles using ticker nodes count up to 255 (UINT8_MAX) in the hci_ipc with ISO | ||
# support | ||
CONFIG_BT_MAX_CONN=233 | ||
|
||
# Each PHY update can pause connections for 6 interval hence to let other | ||
# parallel connection establishment to succeed increase Rx buffer count. | ||
# A minimum of 1 Rx buffer is required to receive data PDU, during control | ||
# procedures Rx buffer could be held, preventing new connections to be | ||
# established, a value of 3 is tuned based on this test case execution for 2 | ||
# iterations. If there is buffer leak, simulated by using value of 2 here, the | ||
# test is failing. | ||
# If there is buffer leak, this test now should catch it. | ||
CONFIG_BT_CTLR_RX_BUFFERS=3 | ||
|
||
# Provide enough spacing between connections so that multiple peripheral roles | ||
# when connected to a single peer device (peripheral_identity sample) have | ||
# room for window widening and do not overlap with each other in that single | ||
# peer device. This can be tuned based on connection interval and clock | ||
# accuracy, current value here is sufficient for 500ppm at 1 second interval and | ||
# considering required connection event length for 251 byte PDU on 2M PHY. | ||
# (Event Overhead + Radio Ready Delay + Rx window + 1064 + 154 + 1064) | ||
CONFIG_BT_CTLR_ADVANCED_FEATURES=y | ||
CONFIG_BT_CTLR_CENTRAL_SPACING=3750 | ||
|
||
# Do not use max data PDU size time reservation for connection events spacing | ||
# instead use lesser value as supplied in CONFIG_BT_CTLR_CENTRAL_SPACING | ||
CONFIG_BT_CTLR_CENTRAL_RESERVE_MAX=n | ||
CONFIG_BT_CTLR_SLOT_RESERVATION_UPDATE=n | ||
|
||
# Required maximum simultaneous LLCP contexts | ||
CONFIG_BT_CTLR_LLCP_LOCAL_PROC_CTX_BUF_NUM=233 | ||
|
||
CONFIG_LOG=y |
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,29 @@ | ||
# Copyright (c) 2023 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
if(NOT("${SB_CONFIG_NET_CORE_BOARD}" STREQUAL "")) | ||
set(NET_APP hci_ipc) | ||
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP}) | ||
|
||
ExternalZephyrProject_Add( | ||
APPLICATION ${NET_APP} | ||
SOURCE_DIR ${NET_APP_SRC_DIR} | ||
BOARD ${SB_CONFIG_NET_CORE_BOARD} | ||
) | ||
|
||
set(${NET_APP}_CONF_FILE | ||
${NET_APP_SRC_DIR}/nrf5340_cpunet_iso-bt_ll_sw_split.conf | ||
CACHE INTERNAL "" | ||
) | ||
|
||
set(${NET_APP}_EXTRA_CONF_FILE | ||
${APP_DIR}/overlay-nrf5340_cpunet_iso-bt_ll_sw_split.conf | ||
CACHE INTERNAL "" | ||
) | ||
|
||
native_simulator_set_primary_mcu_index(${DEFAULT_IMAGE} ${NET_APP}) | ||
|
||
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP}) | ||
endif() | ||
|
||
native_simulator_set_final_executable(${DEFAULT_IMAGE}) |
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,14 @@ | ||
# Copyright 2023 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
source "share/sysbuild/Kconfig" | ||
|
||
config NET_CORE_BOARD | ||
string | ||
default "nrf5340bsim/nrf5340/cpunet" if $(BOARD_TARGET_STRING) = "NRF5340BSIM_NRF5340_CPUAPP" | ||
|
||
config NATIVE_SIMULATOR_PRIMARY_MCU_INDEX | ||
int | ||
# Let's pass the test arguments to the application MCU test | ||
# otherwise by default they would have gone to the net core. | ||
default 0 if $(BOARD_TARGET_STRING) = "NRF5340BSIM_NRF5340_CPUAPP" |
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,24 @@ | ||
# Copyright (c) 2023 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
if(NOT("${SB_CONFIG_NET_CORE_BOARD}" STREQUAL "")) | ||
set(NET_APP hci_ipc) | ||
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP}) | ||
|
||
ExternalZephyrProject_Add( | ||
APPLICATION ${NET_APP} | ||
SOURCE_DIR ${NET_APP_SRC_DIR} | ||
BOARD ${SB_CONFIG_NET_CORE_BOARD} | ||
) | ||
|
||
set(${NET_APP}_CONF_FILE | ||
${NET_APP_SRC_DIR}/nrf5340_cpunet_iso-bt_ll_sw_split.conf | ||
CACHE INTERNAL "" | ||
) | ||
|
||
native_simulator_set_primary_mcu_index(${DEFAULT_IMAGE} ${NET_APP}) | ||
|
||
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP}) | ||
endif() | ||
|
||
native_simulator_set_final_executable(${DEFAULT_IMAGE}) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
# Search paths(s) for tests which will be run in the nrf54l15 app core | ||
# This file is used in CI to select which tests are run | ||
tests/bsim/bluetooth/ll/multiple_id/tests_scripts/multiple.sh | ||
tests/bsim/bluetooth/ll/throughput/ | ||
tests/bsim/bluetooth/ll/multiple_id/ | ||
tests/bsim/bluetooth/samples/central_hr_peripheral_hr/ | ||
tests/bsim/bluetooth/audio_samples/ | ||
tests/bsim/bluetooth/audio/ |