Skip to content

Commit

Permalink
samples: dect: dect_phy: dect_shell: new sample shell application
Browse files Browse the repository at this point in the history
New sample for DECT NR+ PHY shell tools.
Including for example:
- RF tool for rx/tx testing
- Ping tool with HARQ
- Throughput performance measurement tool

Jira: MOSH-576

Signed-off-by: Jani Hirsimäki <[email protected]>
  • Loading branch information
jhirsi committed Oct 4, 2024
1 parent ab3c57c commit 610d191
Show file tree
Hide file tree
Showing 55 changed files with 14,430 additions and 2 deletions.
3 changes: 2 additions & 1 deletion doc/nrf/protocols/dect/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,10 @@ A subset of the following |NCS| libraries are used for DECT NR+:
Applications and samples
========================

The following sample use DECT NR+ in the |NCS|:
The following samples use DECT NR+ in the |NCS|:

* :ref:`nrf_modem_dect_phy_hello`
* :ref:`dect_shell_application`

Power optimization
==================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ Debug samples
DECT NR+ samples
----------------

|no_changes_yet_note|
* Added the :ref:`dect_shell_application` sample.

Edge Impulse samples
--------------------
Expand Down
47 changes: 47 additions & 0 deletions samples/dect/dect_phy/dect_shell/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#
# Copyright (c) 2024 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

cmake_minimum_required(VERSION 3.20.0)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(DESH)
target_include_directories(app PRIVATE src)

target_sources(app PRIVATE src/main.c)
target_sources(app PRIVATE src/shell.c)

add_subdirectory(src/print)
add_subdirectory(src/utils)
add_subdirectory_ifdef(CONFIG_DESH_DECT_PHY src/dect)
if(NOT ENV{PROJECT_NAME})
zephyr_compile_definitions(
PROJECT_NAME=${CMAKE_PROJECT_NAME}
)
endif()

find_package(Git QUIET)
if(NOT APP_VERSION AND GIT_FOUND)
execute_process(
COMMAND ${GIT_EXECUTABLE} describe --abbrev=12
WORKING_DIRECTORY ${NRF_DIR}
OUTPUT_VARIABLE APP_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_STRIP_TRAILING_WHITESPACE
ERROR_VARIABLE stderr
RESULT_VARIABLE return_code
)
if(return_code)
message(STATUS "git describe failed: ${stderr}; ${KERNEL_VERSION_STRING} will be used instead")
elseif(CMAKE_VERBOSE_MAKEFILE)
message(STATUS "git describe stderr: ${stderr}")
endif()
endif()

if(APP_VERSION)
zephyr_compile_definitions(
APP_VERSION=${APP_VERSION}
)
endif()
24 changes: 24 additions & 0 deletions samples/dect/dect_phy/dect_shell/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#
# Copyright (c) 2024 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

source "Kconfig.zephyr"

menu "Nordic Dect NR+ Phy Shell config"

config DESH_PRINT_BUFFER_SIZE
int "Buffer size used when printing shell output"
default 1024
help
If the printed string exceeds this buffer, an error message is printed first and
then the requested string cut into the length of this buffer.

config DESH_DECT_PHY
bool "DECT NR+ PHY api shell tools"
default y
help
DECT NR+ PHY api shell tools

endmenu
Loading

0 comments on commit 610d191

Please sign in to comment.