1#!/usr/bin/env bash 2# Copyright 2022 Nordic Semiconductor 3# SPDX-License-Identifier: Apache-2.0 4 5source $(dirname "${BASH_SOURCE[0]}")/../../_mesh_test.sh 6 7# Precondition: 8# setup two device, tx node provisioned node, rx node is not provisioned and only has 9# the network creentials. 10# Verify: 11# tx node is able to adapt observed beacon interval and able to send at least one 12# SNB in 600s. And veify tx node doesnn't send SNB faster than 10s. 13# Procedure: 14# 1- rx node waits for the tx node to send the first SNB, 15# rx node sends two SNBs with 20ms period, verifies that tx node only sends SNB 10s later, 16# after rx node sends out beacon. rx node skips the 3rd SNB and verifies that tx nodes keeps 17# sending SNB # in 20ms until it adapts again and starts to send in 10s. 18# 2- rx node sends SNBs with 4s period for 600s and verifies that tx node doesn't send any 19# SNB until 600s elapses. 20 21RunTest mesh_beacon_interval \ 22 beacon_tx_secure_beacon_interval \ 23 beacon_rx_secure_beacon_interval 24 25overlay=overlay_psa_conf 26RunTest mesh_beacon_interval_psa \ 27 beacon_tx_secure_beacon_interval \ 28 beacon_rx_secure_beacon_interval 29