From 1e7e6fabc4e70abd0e3e427de29e45a93cf8a8bc Mon Sep 17 00:00:00 2001 From: Paul Obernesser Date: Mon, 8 Dec 2025 12:09:58 +0100 Subject: [PATCH] add bst test --- src/qualification/BAP/BSRC/STR/test_str.py | 1 - src/qualification/CAP/BST/test_bst.py | 40 ++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 src/qualification/CAP/BST/test_bst.py diff --git a/src/qualification/BAP/BSRC/STR/test_str.py b/src/qualification/BAP/BSRC/STR/test_str.py index 8041a45..2bbd2c4 100644 --- a/src/qualification/BAP/BSRC/STR/test_str.py +++ b/src/qualification/BAP/BSRC/STR/test_str.py @@ -1,5 +1,4 @@ """ -For BV36-C and BV 37-C to success just restart the stream while the testcase is running """ import logging diff --git a/src/qualification/CAP/BST/test_bst.py b/src/qualification/CAP/BST/test_bst.py new file mode 100644 index 0000000..7fa917e --- /dev/null +++ b/src/qualification/CAP/BST/test_bst.py @@ -0,0 +1,40 @@ +""" +Make sure to set TXPX_BST_CODEC_CONFIG to 16_2_1 +restart the stream when asked to terminate. +""" + +import logging +import os + +from auracast.auracast_config import AuracastGlobalConfig, AuracastBigConfig, AuracastQosHigh +from auracast.multicast import broadcast, run_async + + +if __name__ == "__main__": + logging.basicConfig( + level=os.environ.get("LOG_LEVEL", logging.INFO), + format="%(module)s.py:%(lineno)d %(levelname)s: %(message)s", + ) + + # Start from default global config + config = AuracastGlobalConfig() + + # Use same QoS profile as multicast main + config.qos_config = AuracastQosHigh() + + # Transport similar to multicast main; adjust if needed for your setup + # config.transport = "auto" # let multicast auto-detect + config.transport = "serial:/dev/ttyAMA3,1000000,rtscts" # Raspberry Pi default + + # Default BIG, only modify the random address as requested + big = AuracastBigConfig() + big.random_address = "F1:F1:F2:F3:F4:F5" + big.audio_source = "file:./src/auracast/testdata/announcement_en.wav" + big.id = 12 + + run_async( + broadcast( + config, + [big], + ) + )