1#!/usr/bin/env bash 2# Copyright (c) 2024 Croxel, Inc. 3# SPDX-License-Identifier: Apache-2.0 4 5# Extended advertising test: 6# 7# - Connectable: In addition to broadcasting advertisements, it is connectable 8# and restarts advertisements once disconnected. The scanner/central scans 9# for the packets and establishes the connection, to then disconnect 10# shortly-after. 11 12source ${ZEPHYR_BASE}/tests/bsim/sh_common.source 13 14simulation_id="ext_adv_conn" 15verbosity_level=2 16 17cd ${BSIM_OUT_PATH}/bin 18 19Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_host_adv_extended_prj_advertiser_conf \ 20 -v=${verbosity_level} -s=${simulation_id} -d=0 -RealEncryption=0 \ 21 -testid=ext_adv_conn_advertiser -rs=23 22 23Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_host_adv_extended_prj_scanner_conf \ 24 -v=${verbosity_level} -s=${simulation_id} -d=1 -RealEncryption=0 \ 25 -testid=ext_adv_conn_scanner -rs=6 26 27Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \ 28 -D=2 -sim_length=10e6 $@ 29 30wait_for_background_jobs 31