Skip to content

Commit

Permalink
samples: Add option to disable DF in DTM
Browse files Browse the repository at this point in the history
Add option and overlay to disable Direction Finding
in DTM sample.

Jira: NCSDK-23414

Signed-off-by: Dominik Chat <[email protected]>
  • Loading branch information
dchat-nordic authored and rlubos committed Dec 7, 2023
1 parent 213d118 commit fd564cd
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------------------

Expand Down
13 changes: 11 additions & 2 deletions samples/bluetooth/direct_test_mode/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -368,20 +368,29 @@ 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
==========================

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
=============================
Expand Down
9 changes: 9 additions & 0 deletions samples/bluetooth/direct_test_mode/no-dfe.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
* Copyright (c) 2023 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

&radio {
/delete-property/ dfe-supported;
};

0 comments on commit fd564cd

Please sign in to comment.