From fd564cd8cbb4f077088f8b571d4f76ea497606ac Mon Sep 17 00:00:00 2001 From: Dominik Chat Date: Wed, 6 Dec 2023 10:08:39 +0100 Subject: [PATCH] samples: Add option to disable DF in DTM Add option and overlay to disable Direction Finding in DTM sample. Jira: NCSDK-23414 Signed-off-by: Dominik Chat --- .../releases/release-notes-changelog.rst | 4 ++++ samples/bluetooth/direct_test_mode/README.rst | 13 +++++++++++-- samples/bluetooth/direct_test_mode/no-dfe.overlay | 9 +++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 samples/bluetooth/direct_test_mode/no-dfe.overlay diff --git a/doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst b/doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst index 2eb9373b6700..e7f06367d847 100644 --- a/doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst +++ b/doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst @@ -234,6 +234,10 @@ Bluetooth samples * Enabled encryption in the sample. The measured throughput is calculated over the encrypted data, which is how most of the Bluetooth products use this protocol. +* :ref:`direct_test_mode` sample: + + * Added the configuration option to disable the Direction Finding feature. + Bluetooth Mesh samples ---------------------- diff --git a/samples/bluetooth/direct_test_mode/README.rst b/samples/bluetooth/direct_test_mode/README.rst index 047d6d054c40..414d65387853 100644 --- a/samples/bluetooth/direct_test_mode/README.rst +++ b/samples/bluetooth/direct_test_mode/README.rst @@ -368,6 +368,15 @@ Building and running The Remote IPC shell sample is built and programmed automatically by default. If you want to program your custom solution for the application core, unset the :kconfig:option:`CONFIG_NCS_SAMPLE_REMOTE_SHELL_CHILD_IMAGE` Kconfig option. +Disabling Direction Finding feature +=================================== + +To build the sample without support for the Direction Finding feature, use the following command: + +.. code-block:: console + + west build samples/bluetooth/direct_test_mode -b board_name -- -DEXTRA_DTC_OVERLAY_FILE=no-dfe.overlay + Experimental HCI interface ========================== @@ -375,13 +384,13 @@ To build the sample with an HCI interface, use the following command: .. code-block:: console - west build samples/bluetooth/direct_test_mode -b board_name -- --DEXTRA_CONF_FILE=overlay-hci.conf + west build samples/bluetooth/direct_test_mode -b board_name -- -DEXTRA_CONF_FILE=overlay-hci.conf On the |nRF5340DKnoref| the sample with HCI interface can also be built with the `remote_hci` image using the following command: .. code-block:: console - west build samples/bluetooth/direct_test_mode -b board_name -- --DEXTRA_CONF_FILE=overlay-hci-nrf53.conf + west build samples/bluetooth/direct_test_mode -b board_name -- -DEXTRA_CONF_FILE=overlay-hci-nrf53.conf USB CDC ACM transport variant ============================= diff --git a/samples/bluetooth/direct_test_mode/no-dfe.overlay b/samples/bluetooth/direct_test_mode/no-dfe.overlay new file mode 100644 index 000000000000..d59313a5c78c --- /dev/null +++ b/samples/bluetooth/direct_test_mode/no-dfe.overlay @@ -0,0 +1,9 @@ +/* + * Copyright (c) 2023 Nordic Semiconductor ASA + * + * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause + */ + +&radio { + /delete-property/ dfe-supported; +};