Skip to content

Commit a8e626d

Browse files
committed
doc: Bluetooth: CAP: Document CAP handover b->u command
Add documentation and example usage of the broadcast_to_unicast CAP handover command. Signed-off-by: Emil Gydesen <[email protected]>
1 parent 4108d0e commit a8e626d

File tree

1 file changed

+40
-0
lines changed
  • doc/connectivity/bluetooth/shell/audio

1 file changed

+40
-0
lines changed

doc/connectivity/bluetooth/shell/audio/cap.rst

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,3 +546,43 @@ This command hands over one or more unicast streams from unicast to broadcast.
546546
547547
# Enable periodic advertising (extended advertising is enabled as part of handover)
548548
uart:~$ bt per-adv on
549+
550+
Handover broadcast to unicast
551+
-----------------------------
552+
553+
This command hands over one or more unicast streams from broadcast to unicast.
554+
555+
.. code-block:: console
556+
557+
uart:~$ bt init
558+
uart:~$ bap init
559+
uart:~$ bt connect <addr>
560+
561+
# Discover necessary services
562+
uart:~$ bap discover
563+
uart:~$ cap_initiator discover
564+
uart:~$ bap_broadcast_assistant discover
565+
566+
# Create a non-connectable and non-scannable extended advertising set for broadcast
567+
uart:~$ bt adv-create nconn-nscan ext-adv
568+
uart:~$ bt per-adv-param
569+
570+
# Setup broadcast audio e.g. using the ac_12
571+
uart:~$ cap_initiator ac_12
572+
uart:~$ cap_initiator broadcast_start
573+
574+
# Set advertising data and enable advertising
575+
uart:~$ bt adv-data dev-name discov
576+
uart:~$ bt per-adv-data
577+
uart:~$ bt per-adv on
578+
uart:~$ bt adv-start
579+
580+
# Wait for broadcast sink to self-scan, or use broadcast reception to instruct sink to sync
581+
582+
# Perform the handover
583+
uart:~$ cap_handover broadcast_to_unicast
584+
585+
# Terminate the advertiser (optional)
586+
bt adv-stop
587+
bt per-adv off
588+
bt adv-delete

0 commit comments

Comments
 (0)