Skip to content

Commit 999a528

Browse files
cvinayakrlubos
authored andcommitted
samples: Bluetooth: Use SDC for Direction Finding Connectionless Tx AoA
Use SoftDevice Controller as default for Direction Finding Connectionless AoA sample. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent b933de4 commit 999a528

File tree

7 files changed

+78
-68
lines changed

7 files changed

+78
-68
lines changed

samples/bluetooth/direction_finding_connectionless_tx/README.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ To build this sample with AoA mode only, set :makevar:`EXTRA_CONF_FILE` to the :
5252

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

55-
To build this sample for :ref:`nRF5340 DK <ug_nrf5340>`, with AoA mode only, add content of :file:`overlay-aoa.conf` file to :file:`child_image/hci_ipc.conf` file.
56-
5755
.. bt_dir_finding_tx_aoa_mode_end
5856
5957
.. bt_dir_finding_tx_ant_aod_start

samples/bluetooth/direction_finding_connectionless_tx/boards/nrf52833dk_nrf52820.conf

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,9 @@
44
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
#
66

7-
CONFIG_BT_CTLR=y
8-
CONFIG_BT_LL_SW_SPLIT=y
9-
10-
CONFIG_BT_CTLR_ADV_EXT=y
11-
CONFIG_BT_CTLR_ADV_PERIODIC=y
12-
137
# Enable Direction Finding TX Feature including AoA and AoD
148
CONFIG_BT_CTLR_DF=y
159

1610
# Disable Direction Finding RX mode
1711
CONFIG_BT_CTLR_DF_ANT_SWITCH_RX=n
1812
CONFIG_BT_CTLR_DF_SCAN_CTE_RX=n
19-
20-
# Enable chaining of multiple CTEs in periodic advertising
21-
CONFIG_BT_CTLR_ADVANCED_FEATURES=y
22-
CONFIG_BT_CTLR_ADV_SYNC_PDU_BACK2BACK=y
23-
CONFIG_BT_CTLR_DF_PER_ADV_CTE_NUM_MAX=16

samples/bluetooth/direction_finding_connectionless_tx/boards/nrf52833dk_nrf52833.conf

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,9 @@
33
#
44
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
#
6-
7-
CONFIG_BT_CTLR=y
8-
CONFIG_BT_LL_SW_SPLIT=y
9-
10-
CONFIG_BT_CTLR_ADV_EXT=y
11-
CONFIG_BT_CTLR_ADV_PERIODIC=y
12-
136
# Enable Direction Finding Feature including AoA and AoD
147
CONFIG_BT_CTLR_DF=y
158

169
# Disable Direction Finding RX mode
1710
CONFIG_BT_CTLR_DF_SCAN_CTE_RX=n
1811
CONFIG_BT_CTLR_DF_ANT_SWITCH_RX=n
19-
20-
# Enable chaining of multiple CTEs in periodic advertising
21-
CONFIG_BT_CTLR_ADVANCED_FEATURES=y
22-
CONFIG_BT_CTLR_ADV_SYNC_PDU_BACK2BACK=y
23-
CONFIG_BT_CTLR_DF_PER_ADV_CTE_NUM_MAX=16
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#
2+
# Copyright (c) 2021 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
CONFIG_BT_CTLR=y
8+
CONFIG_BT_LL_SW_SPLIT=y
9+
10+
CONFIG_BT_CTLR_ADV_EXT=y
11+
CONFIG_BT_CTLR_ADV_PERIODIC=y
12+
13+
# Enable Direction Finding TX Feature including AoA and AoD
14+
CONFIG_BT_CTLR_DF=y
15+
16+
# Disable Direction Finding RX mode
17+
CONFIG_BT_CTLR_DF_ANT_SWITCH_RX=n
18+
CONFIG_BT_CTLR_DF_SCAN_CTE_RX=n
19+
20+
# Enable chaining of multiple CTEs in periodic advertising
21+
CONFIG_BT_CTLR_ADVANCED_FEATURES=y
22+
CONFIG_BT_CTLR_ADV_SYNC_PDU_BACK2BACK=y
23+
CONFIG_BT_CTLR_DF_PER_ADV_CTE_NUM_MAX=16

samples/bluetooth/direction_finding_connectionless_tx/sample.yaml

Lines changed: 49 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,66 @@ sample:
22
name: Direction Finding Connectionless Beacon
33
description: Sample application showing connectionless Direction Finding transmission
44
tests:
5-
sample.bluetooth.direction_finding_connectionless_nrf:
5+
sample.bluetooth.direction_finding_connectionless_tx.aoa.sdc.nrf52_nrf53:
66
sysbuild: true
7+
extra_args:
8+
- OVERLAY_CONFIG="overlay-aoa.conf"
79
build_only: true
8-
platform_allow: nrf52833dk/nrf52833 nrf52833dk/nrf52820 nrf5340dk/nrf5340/cpuapp
10+
platform_allow:
11+
- nrf52833dk/nrf52833
12+
- nrf52833dk/nrf52820
13+
- nrf5340dk/nrf5340/cpuapp
914
tags: bluetooth sysbuild
1015
integration_platforms:
1116
- nrf52833dk/nrf52833
1217
- nrf52833dk/nrf52820
1318
- nrf5340dk/nrf5340/cpuapp
14-
sample.bluetooth.direction_finding_connectionless_nrf.aoa:
19+
sample.bluetooth.direction_finding_connectionless_tx.aoa.bt_ll_sw_split.nrf52:
20+
sysbuild: false
21+
build_only: true
22+
extra_args:
23+
- OVERLAY_CONFIG="overlay-aoa.conf;overlay-bt_ll_sw_split.conf"
24+
- SNIPPET="bt-ll-sw-split"
25+
platform_allow:
26+
- nrf52833dk/nrf52833
27+
- nrf52833dk/nrf52820
28+
tags: bluetooth
29+
integration_platforms:
30+
- nrf52833dk/nrf52833
31+
- nrf52833dk/nrf52820
32+
sample.bluetooth.direction_finding_connectionless_tx.aoa.bt_ll_sw_split.nrf53:
1533
sysbuild: true
16-
extra_args: OVERLAY_CONFIG="overlay-aoa.conf"
1734
build_only: true
18-
platform_allow: nrf52833dk/nrf52833 nrf52833dk/nrf52820 nrf5340dk/nrf5340/cpuapp
35+
extra_args:
36+
- OVERLAY_CONFIG="overlay-aoa.conf"
37+
- ipc_radio_OVERLAY_CONFIG="../../overlay-bt_ll_sw_split.conf"
38+
- ipc_radio_SNIPPET="bt-ll-sw-split"
39+
platform_allow:
40+
- nrf5340dk/nrf5340/cpuapp
1941
tags: bluetooth sysbuild
42+
integration_platforms:
43+
- nrf5340dk/nrf5340/cpuapp
44+
sample.bluetooth.direction_finding_connectionless_tx.aod.bt_ll_sw_split.nrf52:
45+
sysbuild: false
46+
build_only: true
47+
extra_args:
48+
- OVERLAY_CONFIG="overlay-bt_ll_sw_split.conf"
49+
- SNIPPET="bt-ll-sw-split"
50+
platform_allow:
51+
- nrf52833dk/nrf52833
52+
- nrf52833dk/nrf52820
53+
tags: bluetooth
2054
integration_platforms:
2155
- nrf52833dk/nrf52833
2256
- nrf52833dk/nrf52820
57+
sample.bluetooth.direction_finding_connectionless_tx.aod.bt_ll_sw_split.nrf53:
58+
sysbuild: true
59+
build_only: true
60+
extra_args:
61+
- ipc_radio_OVERLAY_CONFIG="../../overlay-bt_ll_sw_split.conf"
62+
- ipc_radio_SNIPPET="bt-ll-sw-split"
63+
platform_allow:
64+
- nrf5340dk/nrf5340/cpuapp
65+
tags: bluetooth sysbuild
66+
integration_platforms:
2367
- nrf5340dk/nrf5340/cpuapp

samples/bluetooth/direction_finding_connectionless_tx/sysbuild.cmake

Lines changed: 0 additions & 24 deletions
This file was deleted.

samples/bluetooth/direction_finding_connectionless_tx/sysbuild/ipc_radio/prj.conf

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ CONFIG_IPC_SERVICE=y
77

88
CONFIG_BT=y
99
CONFIG_BT_HCI_RAW=y
10-
#CONFIG_BT_MAX_CONN=16
10+
11+
# Limit number of possible connection to decrease memory usage
12+
CONFIG_BT_MAX_CONN=1
1113

1214
# Enable and adjust the below value as necessary
1315
# CONFIG_BT_BUF_EVT_RX_COUNT=16
@@ -18,12 +20,7 @@ CONFIG_BT_HCI_RAW=y
1820

1921
# Reguired to enable BT_BUF_CMD_TX_SIZE for LE Set Extended Advertising Data command
2022
CONFIG_BT_EXT_ADV=y
21-
22-
CONFIG_BT_CTLR=y
23-
CONFIG_BT_LL_SW_SPLIT=y
24-
25-
CONFIG_BT_CTLR_ADV_EXT=y
26-
CONFIG_BT_CTLR_ADV_PERIODIC=y
23+
CONFIG_BT_PER_ADV=y
2724

2825
# Enable Direction Finding Feature including AoA and AoD
2926
CONFIG_BT_CTLR_DF=y
@@ -33,13 +30,8 @@ CONFIG_BT_CTLR_DF_SCAN_CTE_RX=n
3330
CONFIG_BT_CTLR_DF_ANT_SWITCH_RX=n
3431
CONFIG_BT_CTLR_DF_CTE_RX=n
3532

36-
# Limit number of possible connection to decrease memory usage
37-
CONFIG_BT_MAX_CONN=1
38-
39-
# Enable chaining of multiple CTEs in periodic advertising
40-
CONFIG_BT_CTLR_ADVANCED_FEATURES=y
41-
CONFIG_BT_CTLR_ADV_SYNC_PDU_BACK2BACK=y
42-
CONFIG_BT_CTLR_DF_PER_ADV_CTE_NUM_MAX=16
33+
CONFIG_LOG=y
4334

4435
CONFIG_IPC_RADIO_BT=y
4536
CONFIG_IPC_RADIO_BT_HCI_IPC=y
37+
CONFIG_IPC_RADIO_LOG_LEVEL_ERR=y

0 commit comments

Comments
 (0)