1#!/usr/bin/env bash
2# Copyright 2018 Oticon A/S
3# SPDX-License-Identifier: Apache-2.0
4
5source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
6
7# Multiple connection between two devices with multiple peripheral identity
8simulation_id="central_single_peripheral_multilink"
9verbosity_level=2
10EXECUTE_TIMEOUT=1600
11
12cd ${BSIM_OUT_PATH}/bin
13
14Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_ll_multiple_id_prj_conf \
15  -v=${verbosity_level} -s=${simulation_id} -d=0 -testid=peripheral_multilink
16
17central_count=20
18
19for device in `seq 1 $central_count`; do
20	let rs=$device*7
21
22	Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_ll_multiple_id_prj_conf \
23	  -v=${verbosity_level} -s=${simulation_id} -d=$device -rs=$rs \
24	  -testid=central_single
25done
26
27let device_count=$central_count+1
28
29Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
30  -D=$device_count -sim_length=1800e6 $@ -argschannel -at=40
31
32wait_for_background_jobs
33