client: Update scripts to include encrypted stream scenario
authorIulia Tanasescu <iulia.tanasescu@nxp.com>
Tue, 8 Oct 2024 08:01:26 +0000 (11:01 +0300)
committerWootak Jung <wootak.jung@samsung.com>
Thu, 20 Feb 2025 07:43:23 +0000 (16:43 +0900)
This updates the broadcast-assistant/scan-delegator scripts to include
the encrypted stream scenario.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
client/scripts/broadcast-assistant.bt
client/scripts/scan-delegator.bt

index 15e9d0980577a9daa9ecc462b1576dc10e948704..81bb147a0f8dc5d925bdbe9443d537bde8919590 100644 (file)
@@ -25,10 +25,13 @@ scan on
 # using the "push" command from the assistant submenu. When asked
 # to enter stream metadata, the "auto" option will keep the LTV
 # values advertised by the Broadcast Source. By entering new LTV
-# values, the default metadata will be overwritten.
+# values, the default metadata will be overwritten. If the stream
+# is encrypted, a prompt will be displayed to enter the Broadcast
+# Code for decrypting.
 #
 # assistant.push /org/bluez/hci0/src_yy_yy_yy_yy_yy_yy/dev_xx_xx_xx_xx_xx_xx/bis_n
 # [Assistant] Enter Metadata (auto/value): a
+# [Assistant] Enter Broadcast Code (auto/value): Borne House
 #
 #
 # Wait for the MediaAssistant object to transition to "active"
index 68c7fb498e9e71e97eaa34100e0fe0ef7cfa4faa..5ff7bcb892b46e5ca0e04af1ec8465fe811e2c42 100644 (file)
@@ -18,7 +18,22 @@ advertise on
 # After the connection has been established, transports will
 # be created for streams added by the Bradcast Assistant that
 # match the audio capabilities chosen at endpoint register.
-# Acquire the desired transport to start receiving audio.
+# Select the desired transport. If the stream is encrypted,
+# a prompt will be displayed to enter the Broadacast Code for
+# decrypting. If the code is unknown, the "no" option will
+# request the code from the Broadcast Assistant.
+#
+# transport.select /org/bluez/hci0/dev_xx_xx_xx_xx_xx_xx/bis_n/fd_m
+# [] Enter brocast code[value/no]: no
+#
+#
+# If the Broadcast Assistant provided the Broadcast Code, the
+# transport will transition to "broadcasting" state.
+#
+# [CHG] Transport /org/bluez/hci0/dev_xx_xx_xx_xx_xx_xx/bis_n/fd_m State: broadcasting
+#
+#
+# Acquire the transport to start receiving audio.
 #
 # transport.acquire /org/bluez/hci0/dev_xx_xx_xx_xx_xx_xx/bis_n/fd_m
 #