README.rst
1.. zephyr:code-sample:: ble_peripheral_iso
2 :name: ISO (Peripheral)
3 :relevant-api: bt_bas bluetooth
4
5 Implement a Bluetooth LE Peripheral that uses isochronous channels.
6
7Overview
8********
9
10This sample demonstrates how to use isochronous channels as a peripheral.
11The sample starts advertising, waits for a central to connect to it and set up an isochronous channel.
12Once the isochronous channel is set up, received isochronous data is printed out.
13It is recommended to run this sample together with the :zephyr:code-sample:`ble_central_iso` sample.
14
15Requirements
16************
17
18* BlueZ running on the host, or
19* A board with Bluetooth Low Energy 5.2 support
20* A Bluetooth Controller and board that supports setting
21 CONFIG_BT_CTLR_PERIPHERAL_ISO=y
22
23Building and Running
24********************
25
26This sample can be found under :zephyr_file:`samples/bluetooth/iso_peripheral` in the Zephyr tree.
27
281. Start the application.
29 In the terminal window, check that it is advertising.
30
31 Bluetooth initialized
32 Advertising successfully started
33
342. Observe that the central device connects and sets up an isochronous channel.
35
36 Connected E8:DC:8D:B3:47:69 (random)
37 Incoming request from 0x20002260
38 ISO Channel 0x20000698 connected
39
403. Observe that incoming data is printed.
41
42 Incoming data channel 0x20000698 len 1
43 00
44 Incoming data channel 0x20000698 len 2
45 0001
46 Incoming data channel 0x20000698 len 3
47 000102
48 Incoming data channel 0x20000698 len 4
49 00010203
50 Incoming data channel 0x20000698 len 5
51 0001020304
52 Incoming data channel 0x20000698 len 6
53 000102030405
54 Incoming data channel 0x20000698 len 7
55 000102...040506
56 Incoming data channel 0x20000698 len 8
57 000102...050607
58 Incoming data channel 0x20000698 len 9
59 000102...060708
60 Incoming data channel 0x20000698 len 10
61 000102...070809
62 Incoming data channel 0x20000698 len 11
63 000102...08090a
64 Incoming data channel 0x20000698 len 12
65 000102...090a0b
66
67See :zephyr:code-sample-category:`bluetooth` samples for more details.
68