tests: Bluetooth: bsim: Increase to 250 simultaneous connections.
Increase to 250 simultaneous connections in the BabbleSim test. Update connection interval to accommodate 250 non-overlapping connections and a scan window. And make the use of is_disconnecting flag consistent between central and peripheral sample. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
992d133b42
commit
7b9ef30b53
5 changed files with 28 additions and 18 deletions
|
@ -10,8 +10,8 @@ CONFIG_BT_AUTO_PHY_UPDATE=y
|
|||
CONFIG_BT_USER_DATA_LEN_UPDATE=y
|
||||
CONFIG_BT_AUTO_DATA_LEN_UPDATE=y
|
||||
|
||||
CONFIG_BT_MAX_CONN=62
|
||||
CONFIG_BT_ID_MAX=62
|
||||
CONFIG_BT_MAX_CONN=250
|
||||
CONFIG_BT_ID_MAX=250
|
||||
|
||||
# L2CAP, ATT and SMP usage cause data transmission deadlock due to shortage
|
||||
# of buffers when transactions crossover amongst the connections in the same
|
||||
|
@ -22,7 +22,7 @@ CONFIG_BT_GAP_AUTO_UPDATE_CONN_PARAMS=n
|
|||
# CONFIG_BT_GATT_CLIENT=y
|
||||
|
||||
# CONFIG_BT_SMP=y
|
||||
# CONFIG_BT_MAX_PAIRED=62
|
||||
# CONFIG_BT_MAX_PAIRED=250
|
||||
|
||||
CONFIG_BT_BUF_CMD_TX_SIZE=255
|
||||
CONFIG_BT_BUF_EVT_RX_SIZE=255
|
||||
|
@ -35,3 +35,11 @@ CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
|
|||
# Each PHY update can pause connections for 6 interval hence to let other
|
||||
# parallel connection establishment to succeed increase Rx buffer count.
|
||||
CONFIG_BT_CTLR_RX_BUFFERS=6
|
||||
|
||||
# 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.
|
||||
CONFIG_BT_CTLR_ADVANCED_FEATURES=y
|
||||
CONFIG_BT_CTLR_SCHED_ADVANCED_CENTRAL_CONN_SPACING=1000
|
||||
|
|
|
@ -81,7 +81,7 @@ exit:
|
|||
|
||||
static void test_multiple_init(void)
|
||||
{
|
||||
bst_ticker_set_next_tick_absolute(600e6);
|
||||
bst_ticker_set_next_tick_absolute(4500e6);
|
||||
bst_result = In_progress;
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ function Execute(){
|
|||
compile it?)\e[39m"
|
||||
exit 1
|
||||
fi
|
||||
timeout 300 $@ & process_ids="$process_ids $!"
|
||||
timeout 900 $@ & process_ids="$process_ids $!"
|
||||
}
|
||||
|
||||
: "${BSIM_OUT_PATH:?BSIM_OUT_PATH must be defined}"
|
||||
|
@ -30,7 +30,7 @@ Execute ./bs_${BOARD}_tests_bluetooth_bsim_bt_bsim_test_multiple_prj_conf\
|
|||
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=peripheral
|
||||
|
||||
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
|
||||
-D=2 -sim_length=600e6 $@
|
||||
-D=2 -sim_length=4500e6 $@
|
||||
|
||||
for process_id in $process_ids; do
|
||||
wait $process_id || let "exit_code=$?"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue