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# - Broadcasting Only: a BLE broadcaster advertises with extended
8#   advertising, and a scanner scans the extended advertisement packets.
9
10source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
11
12simulation_id="ext_adv"
13verbosity_level=2
14
15cd ${BSIM_OUT_PATH}/bin
16
17Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_host_adv_extended_prj_advertiser_conf \
18  -v=${verbosity_level} -s=${simulation_id} -d=0 -RealEncryption=0 \
19  -testid=ext_adv_advertiser -rs=23
20
21Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_host_adv_extended_prj_scanner_conf \
22  -v=${verbosity_level} -s=${simulation_id} -d=1 -RealEncryption=0 \
23  -testid=ext_adv_scanner -rs=6
24
25Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
26  -D=2 -sim_length=10e6 $@
27
28wait_for_background_jobs
29