-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bluetooth: samples: Add sample showing basic channel sounding features
This sample demonstrates how to use the CS test command. It can be used to override randomization of certain parameters, experiment with different CS configurations, and evaluate the RF medium. A basic distance estimation method using phase rotations of the unmodulated tones is included. Signed-off-by: Olivier Lesage <olivier.lesage@nordicsemi.no>
- Loading branch information
1 parent
029540a
commit ce83e81
Showing
6 changed files
with
701 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
cmake_minimum_required(VERSION 3.20.0) | ||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) | ||
project(channel_sounding_test) | ||
|
||
target_sources(app PRIVATE src/main.c) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.. _bluetooth-channel-sounding-test-sample: | ||
|
||
Bluetooth: Channel Sounding Testmode | ||
#################################### | ||
|
||
Overview | ||
******** | ||
|
||
This sample demonstrates how to use the CS test command. | ||
It can be used to override randomization of certain channel sounding parameters, | ||
experiment with different configurations, or evaluate the RF medium. | ||
|
||
A basic distance estimation method using phase rotations of the | ||
unmodulated tones is included. | ||
|
||
Requirements | ||
************ | ||
|
||
* A board with BLE support | ||
* A controller that supports the Channel Sounding feature | ||
|
||
Building and Running | ||
******************** | ||
|
||
This sample can be found under :zephyr_file:`samples/bluetooth/channel_sounding_test` in | ||
the Zephyr tree. | ||
|
||
See :zephyr:code-sample-category:`bluetooth` samples for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
CONFIG_CONSOLE=y | ||
CONFIG_CONSOLE_SUBSYS=y | ||
CONFIG_CONSOLE_HANDLER=y | ||
CONFIG_CONSOLE_GETCHAR=y | ||
|
||
CONFIG_BT=y | ||
CONFIG_BT_CENTRAL=y | ||
CONFIG_BT_PERIPHERAL=y | ||
CONFIG_BT_GATT_CLIENT=y | ||
CONFIG_BT_GATT_DYNAMIC_DB=y | ||
CONFIG_BT_CHANNEL_SOUNDING=y | ||
CONFIG_BT_CHANNEL_SOUNDING_TEST=y | ||
CONFIG_LOG=y | ||
|
||
CONFIG_BT_BUF_EVT_RX_SIZE=255 | ||
CONFIG_BT_BUF_ACL_RX_SIZE=251 | ||
CONFIG_BT_BUF_ACL_TX_SIZE=251 | ||
CONFIG_BT_L2CAP_TX_MTU=247 | ||
|
||
CONFIG_MAIN_STACK_SIZE=4096 | ||
|
||
CONFIG_LOG_BUFFER_SIZE=2048 | ||
CONFIG_CBPRINTF_FP_SUPPORT=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
sample: | ||
name: Bluetooth Channel Sounding Test | ||
tests: | ||
sample.bluetooth.channel_sounding_test: | ||
harness: bluetooth | ||
platform_allow: | ||
- qemu_cortex_m3 | ||
- qemu_x86 | ||
tags: bluetooth | ||
integration_platforms: | ||
- qemu_cortex_m3 |
Oops, something went wrong.