Skip to content

Commit 1d88d31

Browse files
committed
doc: Bluetooth: ISO: Add broadcast to ISO shell docs
Add examples of how to use the ISO shell with broadcast. Signed-off-by: Emil Gydesen <[email protected]>
1 parent f0348f9 commit 1d88d31

File tree

1 file changed

+64
-0
lines changed
  • doc/connectivity/bluetooth/shell/host

1 file changed

+64
-0
lines changed

doc/connectivity/bluetooth/shell/host/iso.rst

+64
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Commands
2323
term-big :Terminate a BIG
2424
2525
26+
Unicast examples
27+
****************
2628
1. [Central] Create CIG:
2729

2830
Requires to be connected:
@@ -62,3 +64,65 @@ Requires to be connected:
6264
uart:~$ iso disconnect
6365
ISO Disconnect pending...
6466
ISO Channel 0x20000f88 disconnected with reason 0x16
67+
68+
69+
Broadcast examples
70+
******************
71+
72+
Setting up broadcaster
73+
======================
74+
75+
.. code-block:: console
76+
77+
uart:~$ bt init
78+
Bluetooth initialized
79+
uart:~$ bt adv-create nconn-nscan ext-adv
80+
Created adv id: 0, adv: 0x200025d0
81+
uart:~$ bt per-adv-param
82+
uart:~$ iso create-big
83+
BIG created
84+
ISO Channel 0x200008c0 connected
85+
uart:~$
86+
uart:~$ bt adv-start
87+
Advertiser[0] 0x200025d0 set started
88+
uart:~$
89+
uart:~$ bt per-adv on
90+
Periodic advertising started
91+
uart:~$
92+
uart:~$ iso broadcast
93+
send: 247 bytes of data with PSN 4350
94+
ISO broadcasting...
95+
96+
If encrypted broadcast is required, then a broadcast code can be provided as
97+
98+
.. code-block:: console
99+
100+
uart:~$ iso create-big enc 00112233445566778899aabbccddffff
101+
BIG created
102+
103+
Setting up sync receiver
104+
========================
105+
106+
.. code-block:: console
107+
108+
uart:~$ bt init
109+
Bluetooth initialized
110+
uart:~$ bt scan on
111+
[DEVICE]: 42:0F:7A:40:AE:21 (random), AD evt type 5, RSSI -27 C:0 S:0 D:0 SR:0 E:1 Prim: LE 1M, Secn: LE 2M, Interval: 0x0780 (2400000 us), SID: 0x0
112+
uart:~$ bt per-adv-sync-create 42:0F:7A:40:AE:21 (random) 0
113+
Per adv sync pending
114+
PER_ADV_SYNC[0]: [DEVICE]: 42:0F:7A:40:AE:21 (random) synced, Interval 0x0780 (2400000 us), PHY LE 2M, SD 0x0000, PAST peer not present
115+
PER_ADV_SYNC[0]: [DEVICE]: 42:0F:7A:40:AE:21 (random), tx_power 127, RSSI -28, CTE 0, data length 0
116+
BIG_INFO PER_ADV_SYNC[0]: [DEVICE]: 42:0F:7A:40:AE:21 (random), sid 0x00, num_bis 1, nse 0x04, interval 0x0008 (10000 us), bn 0x01, pto 0x01, irc 0x03, max_pdu 0x00f7, sdu_interval 0x2710, max_sdu 0x00f7, phy LE 2M, framing 0x00, not encrypted
117+
uart:~$ iso sync-big 1
118+
BIG syncing
119+
ISO Channel 0x200008c0 connected
120+
121+
122+
If encrypted broadcast is required, then a broadcast code can be provided as
123+
124+
.. code-block:: console
125+
126+
uart:~$ iso sync-big 1 enc 00112233445566778899aabbccddffff
127+
BIG syncing
128+
ISO Channel 0x200008c0 connected

0 commit comments

Comments
 (0)