From 9e9f079e8952bc29e3fa0f9dc8dfbad19c3edcc8 Mon Sep 17 00:00:00 2001 From: Iulia Tanasescu Date: Thu, 7 Mar 2024 17:58:50 +0200 Subject: [PATCH] client: Add scripts to start broadcast source/sink This adds sample bluetoothctl scripts for the broadcast source/sink scenarios. The broadcast-source.bt script does the full setup: It registers a broadcast source endpoint, with supported locations as FL/FR and media context supported. It then configures the endpoint to create a stereo media stream, for the BIG handle 1. The transport is also acquired. The broadcast-sink.bt script registers a broadacast sink endpoint, supporting FL/FR locations and the media context. It also starts scanning, and the user is responsible to detect sources and select which endpoint to config. --- client/scripts/broadcast-sink.bt | 7 +++++++ client/scripts/broadcast-source.bt | 11 +++++++++++ 2 files changed, 18 insertions(+) create mode 100644 client/scripts/broadcast-sink.bt create mode 100644 client/scripts/broadcast-source.bt diff --git a/client/scripts/broadcast-sink.bt b/client/scripts/broadcast-sink.bt new file mode 100644 index 000000000..b912231b2 --- /dev/null +++ b/client/scripts/broadcast-sink.bt @@ -0,0 +1,7 @@ +power on +endpoint.register 00001851-0000-1000-8000-00805f9b34fb 0x06 +y +a +3 +4 +scan on \ No newline at end of file diff --git a/client/scripts/broadcast-source.bt b/client/scripts/broadcast-source.bt new file mode 100644 index 000000000..6da9e23e2 --- /dev/null +++ b/client/scripts/broadcast-source.bt @@ -0,0 +1,11 @@ +power on +endpoint.register 00001852-0000-1000-8000-00805f9b34fb 0x06 +y +a +3 +4 +endpoint.config /org/bluez/hci0/pac_bcast0 /local/endpoint/ep0 16_2_1 +1 +3 +0x03 0x02 0x04 0x00 +transport.acquire /org/bluez/hci0/pac_bcast0/fd0 \ No newline at end of file -- 2.47.3