Skip to content

Commit 27c92fe

Browse files
cvinayakcarlescufi
authored andcommitted
tests: bsim: Bluetooth: Test RTN=2, FT=2, Cen skip 4 SE in Controller
Test RTN=2, FT=2 in Controller with 4 subevents dropped by central. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 291cd03 commit 27c92fe

File tree

4 files changed

+35
-1
lines changed

4 files changed

+35
-1
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CONFIG_TEST_USE_LEGACY_ADVERTISING=n
2+
CONFIG_TEST_CONNECT_ACL_FIRST=y
3+
CONFIG_TEST_FT_CEN_SKIP_SUBEVENTS=y
4+
CONFIG_TEST_FT_CEN_SKIP_EVENTS_COUNT=2
5+
CONFIG_BT_MAX_CONN=1
6+
CONFIG_BT_ISO_MAX_CHAN=1
7+
CONFIG_BT_CTLR_LLCP_LOCAL_PROC_CTX_BUF_NUM=9
8+
CONFIG_BT_CTLR_ADVANCED_FEATURES=y
9+
CONFIG_BT_CTLR_ISOAL_PSN_IGNORE=y

tests/bsim/bluetooth/ll/cis/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static bt_addr_le_t peer_addr;
104104

105105
#define NAME_LEN 30
106106

107-
#define BUF_ALLOC_TIMEOUT (40) /* milliseconds */
107+
#define BUF_ALLOC_TIMEOUT (50) /* milliseconds */
108108
NET_BUF_POOL_FIXED_DEFINE(tx_pool, CONFIG_BT_ISO_TX_BUF_COUNT,
109109
BT_ISO_SDU_BUF_SIZE(CONFIG_BT_ISO_TX_MTU), 8, NULL);
110110

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env bash
2+
# Copyright 2020 Nordic Semiconductor ASA
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
6+
7+
# Basic Connected ISO test: a Central connects to 1 Peripheral and tests RTN=2,
8+
# FT=2, skips 4 subevents in the central
9+
simulation_id="connected_iso_acl_first_ft_cen_skip_4_se"
10+
verbosity_level=2
11+
EXECUTE_TIMEOUT=60
12+
13+
cd ${BSIM_OUT_PATH}/bin
14+
15+
Execute ./bs_${BOARD}_tests_bsim_bluetooth_ll_cis_prj_conf_overlay-acl_first_ft_cen_skip_4_se_conf \
16+
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=central
17+
18+
Execute ./bs_${BOARD}_tests_bsim_bluetooth_ll_cis_prj_conf_overlay-acl_first_ft_cen_skip_4_se_conf \
19+
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=peripheral
20+
21+
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
22+
-D=2 -sim_length=30e6 $@
23+
24+
wait_for_background_jobs

tests/bsim/bluetooth/ll/compile.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-peripheral_cis.conf compile
4242
app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-acl_first_ft_per_skip_2_se.conf compile
4343
app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-acl_first_ft_per_skip_4_se.conf compile
4444
app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-acl_first_ft_cen_skip_2_se.conf compile
45+
app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-acl_first_ft_cen_skip_4_se.conf compile
4546

4647
app=tests/bsim/bluetooth/ll/edtt/hci_test_app \
4748
conf_file=prj_dut_llcp.conf compile

0 commit comments

Comments
 (0)