diff mbox series

[BlueZ,4/4] client: Add scripts to start broadcast source/sink

Message ID 20240307155850.68395-5-iulia.tanasescu@nxp.com
State New
Headers show
Series client: Add scripts to start broadcast source/sink | expand

Commit Message

Iulia Tanasescu March 7, 2024, 3:58 p.m. UTC
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 mbox series

Patch

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