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?

  • Hi,

    Which board do you use?

    Do you use bap_broadcast_source sample in NCS v2.8.0?

    Can you show your build command?

    Best regards,
    Dejan

  • Hi, 

    I am working with pan_1783_evb and yes I use  bap_broadcast_source sample in NCS v2.8.0.

    My build command is the following : west build -b pan1783_evb/nrf5340/cpuapp

    Best regards,

    Axelle

  • 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

  • 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

  • Hi Axelle,

    We have tested bap_broadcast_source sample in NCS v2.8.0 using nrf5340_audio-dk board. When you successfully build the application. you should have 2 separate images inside build folder. The power change should be done for the image called hci_ipc. The change you make is applied to .config file for hci_ipc image. You need to ensure that you are starting menuconfig for particular image you want, in your case for hci_ipc. After rebuilding (not pristine) your application, you should see the change in the .config file for that image as shown below. We could not replicate the issue when rebuilding failed. 






    Best regards,
    Dejan

Related