File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
doc/connectivity/bluetooth/shell/audio Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -546,3 +546,43 @@ This command hands over one or more unicast streams from unicast to broadcast.
546
546
547
547
# Enable periodic advertising (extended advertising is enabled as part of handover)
548
548
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
You can’t perform that action at this time.
0 commit comments