Bluetooth: Isochronous Channels Shell
Commands
uart:~$ iso
iso - Bluetooth ISO shell commands
Subcommands:
cig_create : [dir=tx,rx,txrx] [C to P interval] [P to C interval]
[packing] [framing] [C to P latency] [P to C latency]
[sdu] [phy] [rtn]
cig_term : Terminate the CIG
connect : Connect ISO Channel
listen : <dir=tx,rx,txrx>
send : Send to ISO Channel [count]
disconnect : Disconnect ISO Channel
tx_sync_read_cis : Read CIS TX sync info
create-big : Create a BIG as a broadcaster [enc <broadcast code>]
broadcast : Broadcast on ISO channels
tx_sync_read_bis : Read BIS TX sync info
sync-big : Synchronize to a BIG as a receiver <BIS bitfield> [mse
<mse>] [timeout <timeout>] [enc <broadcast code>]
term-big : Terminate a BIG
Unicast examples
[Central] Create CIG:
Requires to be connected:
uart:~$ iso cig_create
CIG created
[Peripheral] Listen to ISO connections
uart:~$ iso listen txrx
[Central] Connect ISO channel:
uart:~$ iso connect
ISO Connect pending...
ISO Channel 0x20000f88 connected
Send data:
uart:~$ iso send
send: 40 bytes of data with PSN 178
ISO sending...
Disconnect ISO channel:
uart:~$ iso disconnect
ISO Disconnect pending...
ISO Channel 0x20000f88 disconnected with reason 0x16
Broadcast examples
Setting up broadcaster
uart:~$ bt init
Bluetooth initialized
uart:~$ bt adv-create nconn-nscan ext-adv
Created adv id: 0, adv: 0x200025d0
uart:~$ bt per-adv-param
uart:~$ iso create-big
BIG created
ISO Channel 0x200008c0 connected
uart:~$
uart:~$ bt adv-start
Advertiser[0] 0x200025d0 set started
uart:~$
uart:~$ bt per-adv on
Periodic advertising started
uart:~$
uart:~$ iso broadcast
send: 247 bytes of data with PSN 4350
ISO broadcasting...
If encrypted broadcast is required, then a broadcast code can be provided as
uart:~$ iso create-big enc 00112233445566778899aabbccddffff
BIG created
Setting up sync receiver
uart:~$ bt init
Bluetooth initialized
uart:~$ bt scan on
[DEVICE]: R:42:0F:7A:40:AE:21, 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
uart:~$ bt per-adv-sync-create R:42:0F:7A:40:AE:21 0
Per adv sync pending
PER_ADV_SYNC[0]: [DEVICE]: R:42:0F:7A:40:AE:21 synced, Interval 0x0780 (2400000 us), PHY LE 2M, SD 0x0000, PAST peer not present
PER_ADV_SYNC[0]: [DEVICE]: R:42:0F:7A:40:AE:21, tx_power 127, RSSI -28, CTE 0, data length 0
BIG_INFO PER_ADV_SYNC[0]: [DEVICE]: R:42:0F:7A:40:AE:21, 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
uart:~$ iso sync-big 1
BIG syncing
ISO Channel 0x200008c0 connected
If encrypted broadcast is required, then a broadcast code can be provided as
uart:~$ iso sync-big 1 enc 00112233445566778899aabbccddffff
BIG syncing
ISO Channel 0x200008c0 connected