1#!/usr/bin/env bash 2# Copyright (c) 2024 Demant A/S 3# SPDX-License-Identifier: Apache-2.0 4 5source ${ZEPHYR_BASE}/tests/bsim/sh_common.source 6 7# Basic PAST Test: Broadcaster connects to peripheral, after connection is established 8# and it is Periodic Advertising (PA), the broadcaster send a Periodic Sync Transfer (PAST) 9# to the peripheral, which then synchronizes to the PA. 10simulation_id="past_send_from_broadcaster" 11verbosity_level=2 12 13cd ${BSIM_OUT_PATH}/bin 14 15Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_ll_bis_prj_past_conf \ 16 -v=${verbosity_level} -s=${simulation_id} -d=0 -testid=receive_past 17 18Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_ll_bis_prj_past_conf \ 19 -v=${verbosity_level} -s=${simulation_id} -d=1 -testid=broadcast_past_sender 20 21Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \ 22 -D=2 -sim_length=60e6 $@ 23 24wait_for_background_jobs 25