1#!/usr/bin/env bash 2# Copyright (c) 2023 Nordic Semiconductor ASA 3# SPDX-License-Identifier: Apache-2.0 4 5# Basic periodic advertising sync test: an advertiser advertises with periodic 6# advertising, and a scanner scans for and syncs to the periodic advertising. 7 8source ${ZEPHYR_BASE}/tests/bsim/sh_common.source 9 10simulation_id="per_adv_conn" 11verbosity_level=2 12 13cd ${BSIM_OUT_PATH}/bin 14 15Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_host_adv_periodic_prj_conf \ 16 -v=${verbosity_level} -s=${simulation_id} -d=0 -RealEncryption=0 \ 17 -testid=per_adv_conn_advertiser -rs=23 18 19Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_host_adv_periodic_prj_conf \ 20 -v=${verbosity_level} -s=${simulation_id} -d=1 -RealEncryption=0 \ 21 -testid=per_adv_conn_sync -rs=6 22 23Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \ 24 -D=2 -sim_length=20e6 $@ 25 26wait_for_background_jobs 27