TX power reduction with bap_broadcast_source

Hello, 

I'm trying to reduce the range of transmission of the nRF5340 SoC for an Auracast Broadcast. I would like it to be detectable only from a distance of 1 or 2 meters.

I've tried to force the TX_PWR to -20 dB in the configuration menu (west build -t menuconfig), but every time I try to build the project, there are configuring errors :

CMake Error at C:/ncs/v2.8.0/zephyr/cmake/modules/kconfig.cmake:396 (message):
command failed with return code: 1
Call Stack (most recent call first):
C:/ncs/v2.8.0/nrf/cmake/modules/kconfig.cmake:29 (include)
C:/ncs/v2.8.0/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
-- Configuring incomplete, errors occurred!
C:/ncs/v2.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
C:/ncs/v2.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
CMakeLists.txt:4 (find_package)

Has anyone encountered this issue and resolved it?

Parents Reply
  • Hi Axelle,

    Thank you for additional information.

    I've tried to force the TX_PWR to -20 dB in the configuration menu (west build -t menuconfig)

    Can you show how you did this? Is your change reflected in the final merged build configuration .conf located in build\zephyr folder? Can you show your .conf file?

    every time I try to build the project, there are configuring errors

    Can you show complete log?

    I would like it to be detectable only from a distance of 1 or 2 meters.

    Can you clarify this? From which-to-which distance you want it to be detectable?

    Best regards,
    Dejan

Children
  • Hi Dejans,

    Can you show how you did this? Is your change reflected in the final merged build configuration .conf located in build\zephyr folder? Can you show your .conf file?

    I use this command : west build -t menuconfig to get in the configuration menu, then I travel to  Subsystems and OS Services/Bluetooth/Bluetooth Controller/Tx Power : 

    Yet even saving the file, I cannot see any difference in the .config file

    .

    Can you show complete log?

    After configuring, even without seing anything in the .config file, I'll have this error log : 

    Parsing D:/nRF5340_AudioDK/Exploration_linux/bap_broadcast_source/Kconfig
    warning: ENTROPY_NRF5_RNG (defined at drivers/entropy/Kconfig.nrf5:14) has direct dependencies !ENTROPY_NRF_FORCE_ALT && DT_HAS_NORDIC_NRF_RNG_ENABLED && ENTROPY_GENERATOR with value n, but is currently being y-selected by the following symbols:
     - BT_LLL_VENDOR_NORDIC (defined at subsys/bluetooth\controller\Kconfig.ll_sw_split:8), with value y, direct dependencies SOC_COMPATIBLE_NRF && !n && !n && BT_LL_SW_SPLIT && BT_CTLR && BT_HCI && BT (value: y), and select condition BT_CTLR_ENTROPY && !SOC_COMPATIBLE_NRF54LX && SOC_COMPATIBLE_NRF && !n && !n && BT_LL_SW_SPLIT && BT_CTLR && BT_HCI && BT (value: y)Loaded configuration 'D:/nRF5340_AudioDK/Exploration_linux/bap_broadcast_source/build/bap_broadcast_source/zephyr/.config'       
    Merged configuration 'D:/nRF5340_AudioDK/Exploration_linux/bap_broadcast_source/build/bap_broadcast_source/zephyr/.config.sysbuild'
    
    
    error: Aborting due to Kconfig warnings
    
    CMake Error at C:/ncs/v2.8.0/zephyr/cmake/modules/kconfig.cmake:396 (message):
      command failed with return code: 1
    Call Stack (most recent call first):
      C:/ncs/v2.8.0/nrf/cmake/modules/kconfig.cmake:29 (include)
      C:/ncs/v2.8.0/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
      C:/ncs/v2.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/ncs/v2.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
      CMakeLists.txt:4 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    See also "D:/nRF5340_AudioDK/Exploration_linux/bap_broadcast_source/build/bap_broadcast_source/CMakeFiles/CMakeOutput.log".
    See also "D:/nRF5340_AudioDK/Exploration_linux/bap_broadcast_source/build/bap_broadcast_source/CMakeFiles/CMakeError.log".
    CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
      CMake configure failed for Zephyr project: bap_broadcast_source
    
      Location: D:/nRF5340_AudioDK/Exploration_linux/bap_broadcast_source
    Call Stack (most recent call first):
      cmake/modules/sysbuild_images.cmake:20 (ExternalZephyrProject_Cmake)
      cmake/modules/sysbuild_default.cmake:20 (include)
      C:/ncs/v2.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      C:/ncs/v2.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
      C:/ncs/v2.8.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      template/CMakeLists.txt:10 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    See also "D:/nRF5340_AudioDK/Exploration_linux/bap_broadcast_source/build/CMakeFiles/CMakeOutput.log".
    ←[31mFAILED: ←[0mbuild.ninja
    C:\ncs\toolchains\b620d30767\opt\bin\cmake.exe --regenerate-during-build -SC:\ncs\v2.8.0\zephyr\share\sysbuild -BD:\nRF5340_AudioDK\Exploration_linux\bap_broadcast_source\build
    ninja: error: rebuilding 'build.ninja': subcommand failed
    ←[91mFATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b620d30767\opt\bin\cmake.EXE' --build D:/nRF5340_AudioDK/Exploration_linux/bap_broadcast_source/build --target menuconfig
    ←[0m

    Can you clarify this? From which-to-which distance you want it to be detectable?

    I would like for the broadcast to be detectable from 0 to 2 meters

    Best regards, 

    Axelle

Related