Skip to content

Commit ab17c60

Browse files
cvinayakrlubos
authored andcommitted
samples: Bluetooth: Default Direction Finding Connectionless Tx to AoA
Use Angle of Arrival mode as default for Direction Finding Connectionless Tx sample. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent cb03c27 commit ab17c60

File tree

5 files changed

+27
-16
lines changed

5 files changed

+27
-16
lines changed

samples/bluetooth/direction_finding_connectionless_tx/README.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,20 @@ Configuration
4848
Angle of arrival mode
4949
=====================
5050

51-
To build this sample with AoA mode only, set :makevar:`EXTRA_CONF_FILE` to the :file:`overlay-aoa.conf` file using the respective :ref:`CMake option <cmake_options>`.
51+
This sample builds the angle of arrival (AoA) mode by default.
52+
53+
.. bt_dir_finding_tx_aoa_mode_end
54+
55+
.. bt_dir_finding_tx_aod_mode_start
56+
57+
Angle of departure mode
58+
=======================
59+
60+
To build this sample with the angle of departure (AoD) mode, set :makevar:`EXTRA_CONF_FILE` to ``overlay-aod.conf;overlay-bt_ll_sw_split.conf`` and set :makevar:`SNIPPET` to ``bt-ll-sw-split`` using the respective :ref:`CMake option <cmake_options>`.
5261

5362
For more information about configuration files in the |NCS|, see :ref:`app_build_system`.
5463

55-
.. bt_dir_finding_tx_aoa_mode_end
64+
.. bt_dir_finding_tx_aod_mode_end
5665
5766
.. bt_dir_finding_tx_ant_aod_start
5867

samples/bluetooth/direction_finding_connectionless_tx/overlay-aoa.conf

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# Copyright (c) 2021 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
# Enable AoD Feature (antenna switching) in Tx mode in Controller and Host
8+
CONFIG_BT_CTLR_DF_ANT_SWITCH_TX=y
9+
CONFIG_BT_DF_CTE_TX_AOD=y

samples/bluetooth/direction_finding_connectionless_tx/prj.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ CONFIG_BT_BROADCASTER=y
1414
# Enable Direction Finding Feature including AoA and AoD
1515
CONFIG_BT_DF=y
1616
CONFIG_BT_DF_CONNECTIONLESS_CTE_TX=y
17+
18+
# Disable AoD Feature (antenna switching) in Tx mode in Controller and Host
19+
CONFIG_BT_CTLR_DF_ANT_SWITCH_TX=n
20+
CONFIG_BT_DF_CTE_TX_AOD=n

samples/bluetooth/direction_finding_connectionless_tx/sample.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ sample:
44
tests:
55
sample.bluetooth.direction_finding_connectionless_tx.aoa.sdc.nrf52_nrf53:
66
sysbuild: true
7-
extra_args:
8-
- OVERLAY_CONFIG="overlay-aoa.conf"
97
build_only: true
108
platform_allow:
119
- nrf52833dk/nrf52833
@@ -20,7 +18,7 @@ tests:
2018
sysbuild: false
2119
build_only: true
2220
extra_args:
23-
- OVERLAY_CONFIG="overlay-aoa.conf;overlay-bt_ll_sw_split.conf"
21+
- OVERLAY_CONFIG="overlay-bt_ll_sw_split.conf"
2422
- SNIPPET="bt-ll-sw-split"
2523
platform_allow:
2624
- nrf52833dk/nrf52833
@@ -33,7 +31,6 @@ tests:
3331
sysbuild: true
3432
build_only: true
3533
extra_args:
36-
- OVERLAY_CONFIG="overlay-aoa.conf"
3734
- ipc_radio_OVERLAY_CONFIG="../../overlay-bt_ll_sw_split.conf"
3835
- ipc_radio_SNIPPET="bt-ll-sw-split"
3936
platform_allow:
@@ -45,7 +42,7 @@ tests:
4542
sysbuild: false
4643
build_only: true
4744
extra_args:
48-
- OVERLAY_CONFIG="overlay-bt_ll_sw_split.conf"
45+
- OVERLAY_CONFIG="overlay-aod.conf;overlay-bt_ll_sw_split.conf"
4946
- SNIPPET="bt-ll-sw-split"
5047
platform_allow:
5148
- nrf52833dk/nrf52833
@@ -58,6 +55,7 @@ tests:
5855
sysbuild: true
5956
build_only: true
6057
extra_args:
58+
- OVERLAY_CONFIG="overlay-aod.conf"
6159
- ipc_radio_OVERLAY_CONFIG="../../overlay-bt_ll_sw_split.conf"
6260
- ipc_radio_SNIPPET="bt-ll-sw-split"
6361
platform_allow:

0 commit comments

Comments
 (0)