forked from nrfconnect/sdk-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: Test 1ms connection interval support
Test 1ms connection interval support. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
- Loading branch information
1 parent
abfe5f1
commit af0aeb3
Showing
6 changed files
with
90 additions
and
3 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,11 @@ | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config TEST_CONN_INTERVAL_1MS | ||
bool "Test 1 ms connection interval support" | ||
help | ||
Test 1 ms connection interval support. | ||
|
||
menu "Zephyr Kernel" | ||
source "Kconfig.zephyr" | ||
endmenu |
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,23 @@ | ||
CONFIG_BT=y | ||
CONFIG_LOG=y | ||
CONFIG_BT_CENTRAL=y | ||
CONFIG_BT_PERIPHERAL=y | ||
CONFIG_BT_PRIVACY=y | ||
CONFIG_BT_SMP=y | ||
CONFIG_BT_SIGNING=y | ||
CONFIG_BT_BAS=y | ||
CONFIG_BT_HRS=y | ||
CONFIG_BT_ATT_PREPARE_COUNT=2 | ||
CONFIG_BT_GATT_CLIENT=y | ||
CONFIG_BT_L2CAP_DYNAMIC_CHANNEL=y | ||
CONFIG_BT_DEVICE_NAME="bsim_test_split_1m" | ||
CONFIG_BT_L2CAP_TX_BUF_COUNT=6 | ||
|
||
CONFIG_BT_CTLR_PRIVACY=n | ||
|
||
CONFIG_BT_CONN_PARAM_ANY=y | ||
|
||
CONFIG_BT_CTLR_ADVANCED_FEATURES=y | ||
CONFIG_BT_CTLR_CONN_INTERVAL_LOW_LATENCY=y | ||
|
||
CONFIG_TEST_CONN_INTERVAL_1MS=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
26 changes: 26 additions & 0 deletions
26
tests/bsim/bluetooth/ll/conn/tests_scripts/basic_conn_split_1ms.sh
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,26 @@ | ||
#!/usr/bin/env bash | ||
# Copyright 2024 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source | ||
|
||
# Basic connection test: a central connects to a peripheral and expects a | ||
# notification, using the split controller (ULL LLL) and 1ms connection | ||
# interval | ||
simulation_id="basic_conn_split_1ms" | ||
verbosity_level=2 | ||
|
||
cd ${BSIM_OUT_PATH}/bin | ||
|
||
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_ll_conn_prj_split_1ms_conf \ | ||
-v=${verbosity_level} -s=${simulation_id} -d=0 -RealEncryption=1 \ | ||
-testid=peripheral -rs=23 | ||
|
||
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_ll_conn_prj_split_1ms_conf\ | ||
-v=${verbosity_level} -s=${simulation_id} -d=1 -RealEncryption=1 \ | ||
-testid=central -rs=6 | ||
|
||
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \ | ||
-D=2 -sim_length=20e6 $@ | ||
|
||
wait_for_background_jobs |