Part 1
요약·해설
AoA-only overlay, extended advertising와 ant_patterns·nRF5340 network-core 설정을 설명합니다.
Connectionless TX
Periodic CTE
ant_patterns
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
11813C2832855F491E5264447CA94F4512BE421949A2E196A0FEE8217258AE41
.. _bluetooth_direction_finding_connectionless_tx:
Bluetooth: Direction Finding Periodic Advertising Beacon
########################################################
Overview
********
A simple application demonstrating the BLE Direction Finding CTE Broadcaster
functionality by sending Constant Tone Extension with periodic advertising PDUs.
Requirements
************
* Nordic nRF SoC based board with Direction Finding support (example boards:
:ref:`nrf52833dk_nrf52833`, :ref:`nrf5340dk_nrf5340`)
* Antenna matrix for AoD (optional)
Check your SoC's product specification for Direction Finding support if you are
unsure.
Building and Running
********************
By default the application supports Angle of Arrival (AoA) and Angle of
Departure (AoD) mode.
To use Angle of Arrival mode only, build this application as follows, changing
``nrf52833dk/nrf52833`` as needed for your board:
.. zephyr-app-commands::
:zephyr-app: samples/bluetooth/direction_finding_connectionless_tx
:host-os: unix
:board: nrf52833dk/nrf52833
:gen-args: -DEXTRA_CONF_FILE=overlay-aoa.conf
:goals: build flash
:compact:
To run the application on nRF5340DK, a Bluetooth controller application must
also run on the network core. The :zephyr_file:`samples/bluetooth/hci_ipc`
sample application may be used. To build this sample with direction finding
support enabled:
* Copy
:zephyr_file:`samples/bluetooth/direction_finding_connectionless_tx/boards/nrf52833dk_nrf52833.overlay`
to a new file,
:file:`samples/bluetooth/hci_ipc/boards/nrf5340dk_nrf5340_cpunet.overlay`.
* Make sure the same GPIO pins are assigned to Direction Finding Extension in file
:zephyr_file:`samples/bluetooth/direction_finding_connectionless_tx/boards/nrf5340dk_nrf5340_cpuapp.overlay`.
as those in the created file :file:`samples/bluetooth/hci_ipc/boards/nrf5340dk_nrf5340_cpunet.overlay`.
* Copy
:zephyr_file:`samples/bluetooth/direction_finding_connectionless_tx/boards/nrf52833dk_nrf52833.conf`
to a new file,
:file:`samples/bluetooth/hci_ipc/boards/nrf5340dk_nrf5340_cpunet.conf`. Add
the line ``CONFIG_BT_EXT_ADV=y`` to enable extended size of
:kconfig:option:`CONFIG_BT_BUF_CMD_TX_SIZE` to support the LE Set Extended
Advertising Data command.
Antenna matrix configuration
****************************
To use this sample with Angle of Departure enabled on Nordic SoCs, additional
configuration must be provided via :ref:`devicetree <dt-guide>` to enable
control of the antenna array, as well as via the ``ant_patterns`` array in the
source code.
An example devicetree overlay is in
:zephyr_file:`samples/bluetooth/direction_finding_connectionless_tx/boards/nrf52833dk_nrf52833.overlay`.
You can customize this overlay when building for the same board, or create your
own board-specific overlay in the same directory for a different board. See
:dtcompatible:`nordic,nrf-radio` for documentation on the properties used in
this overlay. See :ref:`set-devicetree-overlays` for information on setting up
and using overlays.
Note that antenna matrix configuration for the nRF5340 SoC is part of the
network core application. When :ref:`bluetooth-hci-ipc-sample` is used as
network core application, the antenna matrix configuration should be stored in
the file
:file:`samples/bluetooth/hci_ipc/boards/nrf5340dk_nrf5340_cpunet.overlay`
instead.
In addition to the devicetree configuration, to successfully use the Direction
Finding locator when the AoA mode is enabled, also update the antenna patterns
in the :cpp:var:`ant_patterns` array in
:zephyr_file:`samples/bluetooth/direction_finding_connectionless_tx/src/main.c`.
Part 3
한국어 전문 번역
개요
Periodic advertising PDU와 함께 Constant Tone Extension을 전송하여 BLE Direction Finding CTE Broadcaster 기능을 보여주는 간단한 application입니다.
요구사항
- Direction Finding을 지원하는 Nordic nRF SoC 기반 board. 예:
nrf52833dk/nrf52833,nrf5340dk/nrf5340 - AoD용 antenna matrix. 선택 사항입니다.
지원 여부가 확실하지 않다면 사용 중인 SoC의 product specification에서 Direction Finding 지원을 확인하십시오.
Build와 실행
기본적으로 Angle of Arrival(AoA)과 Angle of Departure(AoD) mode를 모두 지원합니다.
AoA mode만 사용하려면 board 이름을 필요에 맞게 바꿔 다음과 같이 build하고 flash합니다.
west build -b nrf52833dk/nrf52833 samples/bluetooth/direction_finding_connectionless_tx -- -DEXTRA_CONF_FILE=overlay-aoa.conf
west flash
nRF5340DK에서 application을 실행하려면 network core에서도 Bluetooth controller application이 실행돼야 하며 Bluetooth HCI IPC sample을 사용할 수 있습니다. Direction Finding 지원을 활성화하려면 다음 작업을 수행합니다.
samples/bluetooth/direction_finding_connectionless_tx/boards/nrf52833dk_nrf52833.overlay를 새samples/bluetooth/hci_ipc/boards/nrf5340dk_nrf5340_cpunet.overlayfile로 복사합니다.samples/bluetooth/direction_finding_connectionless_tx/boards/nrf5340dk_nrf5340_cpuapp.overlay의 Direction Finding Extension GPIO pin과 새 network-core overlay의 GPIO pin이 같도록 확인합니다.samples/bluetooth/direction_finding_connectionless_tx/boards/nrf52833dk_nrf52833.conf를 새samples/bluetooth/hci_ipc/boards/nrf5340dk_nrf5340_cpunet.conffile로 복사합니다.CONFIG_BT_BUF_CMD_TX_SIZE의 확장 크기를 활성화해 LE Set Extended Advertising Data command를 지원하도록CONFIG_BT_EXT_ADV=y도 추가합니다.
Antenna matrix configuration
Nordic SoC에서 Angle of Departure를 활성화해 이 sample을 사용하려면 antenna array를 제어하도록 Devicetree에 추가 configuration을 제공해야 합니다. Source code의 ant_patterns array도 함께 설정해야 합니다.
Devicetree overlay 예제는 samples/bluetooth/direction_finding_connectionless_tx/boards/nrf52833dk_nrf52833.overlay에 있습니다. 같은 board용 build에서는 이 overlay를 수정할 수 있고, 다른 board라면 같은 directory에 board-specific overlay를 만들 수 있습니다. 사용 property는 nordic,nrf-radio compatible 문서에서, overlay 설정과 사용법은 Devicetree overlay 문서에서 확인하십시오.
nRF5340 SoC의 antenna matrix configuration은 network core application에 속합니다. Network core로 Bluetooth HCI IPC sample을 사용한다면 configuration을 samples/bluetooth/hci_ipc/boards/nrf5340dk_nrf5340_cpunet.overlay에 저장해야 합니다.
Devicetree configuration에 더해 AoA mode에서 Direction Finding locator를 성공적으로 사용하려면 samples/bluetooth/direction_finding_connectionless_tx/src/main.c의 ant_patterns array에 있는 antenna pattern도 갱신해야 합니다.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.