1.. _bluetooth_direction_finding_connectionless_rx: 2 3Bluetooth: Direction Finding Periodic Advertising Locator 4######################################################### 5 6Overview 7******** 8 9A simple application demonstrating the BLE Direction Finding CTE Locator 10functionality by receiving and sampling sending Constant Tone Extension with 11periodic advertising PDUs. 12 13Requirements 14************ 15 16* Nordic nRF SoC based board with Direction Finding support (example boards: 17 :ref:`nrf52833dk_nrf52833`, :ref:`nrf5340dk_nrf5340`) 18* Antenna matrix for AoA (optional) 19 20Check your SoC's product specification for Direction Finding support if you are 21unsure. 22 23Building and Running 24******************** 25 26By default the application supports Angle of Arrival and Angle of Departure mode. 27 28To use Angle of Departure mode only, build this application as follows, 29changing ``nrf52833dk_nrf52833`` as needed for your board: 30 31.. zephyr-app-commands:: 32 :zephyr-app: samples/bluetooth/direction_finding_connectionless_rx 33 :host-os: unix 34 :board: nrf52833dk_nrf52833 35 :gen-args: -DEXTRA_CONF_FILE=overlay-aod.conf 36 :goals: build flash 37 :compact: 38 39To run the application on nRF5340DK, a Bluetooth controller application must 40also run on the network core. The :ref:`bluetooth-hci-ipc-sample` sample 41application may be used. To build this sample with direction finding support 42enabled: 43 44* Copy 45 :zephyr_file:`samples/bluetooth/direction_finding_connectionless_rx/boards/nrf52833dk_nrf52833.overlay` 46 to a new file, 47 :file:`samples/bluetooth/hci_ipc/boards/nrf5340dk_nrf5340_cpunet.overlay`. 48* Make sure the same GPIO pins are assigned to Direction Finding Extension in file 49 :zephyr_file:`samples/bluetooth/direction_finding_connectionless_rx/boards/nrf5340dk_nrf5340_cpuapp.overlay`. 50 as those in the created file :file:`samples/bluetooth/hci_ipc/boards/nrf5340dk_nrf5340_cpunet.overlay`. 51* Copy 52 :zephyr_file:`samples/bluetooth/direction_finding_connectionless_rx/boards/nrf52833dk_nrf52833.conf` 53 to a new file, 54 :file:`samples/bluetooth/hci_ipc/boards/nrf5340dk_nrf5340_cpunet.conf`. Add 55 the line ``CONFIG_BT_EXT_ADV=y`` to enable extended size of 56 :kconfig:option:`CONFIG_BT_BUF_CMD_TX_SIZE` to support the LE Set Extended Advertising 57 Data command. 58 59Antenna matrix configuration 60**************************** 61 62To use this sample with Angle of Departure enabled on Nordic SoCs, additional 63configuration must be provided via :ref:`devicetree <dt-guide>` to enable 64control of the antenna array. 65 66An example devicetree overlay is in 67:zephyr_file:`samples/bluetooth/direction_finding_connectionless_rx/boards/nrf52833dk_nrf52833.overlay`. 68You can customize this overlay when building for the same board, or create your 69own board-specific overlay in the same directory for a different board. See 70:dtcompatible:`nordic,nrf-radio` for documentation on the properties used in 71this overlay. See :ref:`set-devicetree-overlays` for information on setting up 72and using overlays. 73 74Note that antenna matrix configuration for the nRF5340 SoC is part of the 75network core application. When :ref:`bluetooth-hci-ipc-sample` is used as the 76network core application, the antenna matrix configuration should be stored in 77the file 78:file:`samples/bluetooth/hci_ipc/boards/nrf5340dk_nrf5340_cpunet.overlay` 79instead. 80