Auracast example

I am using NCS v2.8.0.

After successfully running the headset example with one gateway, one left channel receiver and one right channel receiver am trying to get the Auracast example working, so I can connect three receivers to the gateway.

I added CONFIG_TRANSPORT_BIS=Y to prj.cfg, but after compiling and programming the system functionality did not change to Auracast. Do I need to change something to nrf5340_audio_dk_devices.json as well? The current one see below. I also did not find any references to CONFIG_TRANSPORT_BIS in the source code of v2.8.0. Do I miss something?

[
{
"nrf5340_audio_dk_snr": 1050111739,
"nrf5340_audio_dk_dev": "headset",
"channel": "left"
},
{
"nrf5340_audio_dk_snr": 1050156869,
"nrf5340_audio_dk_dev": "gateway",
"channel": "NA"
},
{
"nrf5340_audio_dk_snr": 1050128347,
"nrf5340_audio_dk_dev": "headset",
"channel": "right"
}
]

Parents
  • Hi. I am trying to get stereo example working, but I get a build error. With the original v2.8.0\nrf directory it just works. I hope you could help me to correct my way of building it. I take these steps:

    - Open cmd prompt

    - Type: cd ncs\v2.8.0

    - Type: git clone https://github.com/rick1082/sdk-nrf

    - Type: cd sdk-nrf

    - Type: git checkout stereo_bis_receiver_pre270

    - Type: cd applications\nrf5340_audio\tools\buildprog

    - Type: buildprog.py -c both -b debug -d both

    +------------+----------+---------+--------------+---------------------+---------------------+
    | snr | snr conn | device | only reboot | core app programmed | core net programmed |
    +------------+----------+---------+--------------+---------------------+---------------------+
    | 1050121107 | ←[33mFalse←[0m | headset | Not selected | Selected | Selected |
    | 1050197742 | ←[33mFalse←[0m | gateway | Not selected | Selected | Selected |
    | 1000 | ←[33mFalse←[0m | headset | Not selected | Selected | Selected |
    +------------+----------+---------+--------------+---------------------+---------------------+
    Invoking build step
    Net core uses precompiled hex or child image
    Run: west build C:\ncs\v2.8.0\sdk-nrf\applications\nrf5340_audio -b nrf5340_audio_dk/nrf5340/cpuapp --sysbuild -d C:\ncs\v2.8.0\sdk-nrf\applications\nrf5340_audio\build\dev_headset\build_debug
    ninja: error: loading 'build.ninja': The system cannot find the file specified.

    FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' --build 'C:\ncs\v2.8.0\sdk-nrf\applications\nrf5340_audio\build\dev_headset\build_debug'

  • How do you install the NCS? I would suggest to Installate with Toolchain Manager, and then open the command prompt for NCS v2.8.0  to build. 

  • Hi! I installed it using the Toolchain Manager. I did not know the cmd prompt had to be opened using the Toolchain Manager. Maybe this can be added to the build instructions on this page: Building and running nRF5340 Audio applications

    I get a different error now with the stereo_bis_receiver_pre270 branch. See below.

    I do not get this error when building the standard v2.8.0 nrf5340_audio example.

    I hope you can help me. We really want to use the NRF5340 in our product, but the build system is a bit problematic now...

    (v2.8.0) C:\ncs\v2.8.0\sdk-nrf\applications\nrf5340_audio\tools\buildprog> buildprog.py -c both -b debug -d both
    No programmer/debugger connected to PC
    No snrs connected
    +------------+----------+---------+--------------+---------------------+---------------------+
    | snr | snr conn | device | only reboot | core app programmed | core net programmed |
    +------------+----------+---------+--------------+---------------------+---------------------+
    | 1050121107 | ←[33mFalse←[0m | headset | Not selected | Selected | Selected |
    | 1050197742 | ←[33mFalse←[0m | gateway | Not selected | Selected | Selected |
    | 1000 | ←[33mFalse←[0m | headset | Not selected | Selected | Selected |
    +------------+----------+---------+--------------+---------------------+---------------------+
    Invoking build step
    Net core uses precompiled hex or child image
    Run: west build C:\ncs\v2.8.0\sdk-nrf\applications\nrf5340_audio -b nrf5340_audio_dk/nrf5340/cpuapp --sysbuild -d C:\ncs\v2.8.0\sdk-nrf\applications\nrf5340_audio\build\dev_headset\build_debug -DCONFIG_AUDIO_DEV=1
    usage: west [-h] [-z ZEPHYR_BASE] [-v] [-V] <command> ...
    west: unknown command "build"; workspace C:\ncs\v2.8.0 does not define this extension command -- try "west help"
    Traceback (most recent call last):
    File "C:\ncs\v2.8.0\sdk-nrf\applications\nrf5340_audio\tools\buildprog\buildprog.py", line 418, in <module>
    __main()
    ~~~~~~^^
    File "C:\ncs\v2.8.0\sdk-nrf\applications\nrf5340_audio\tools\buildprog\buildprog.py", line 401, in __main
    __build_module(build_cfg, options)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
    File "C:\ncs\v2.8.0\sdk-nrf\applications\nrf5340_audio\tools\buildprog\buildprog.py", line 176, in __build_module
    raise Exception("cmake error: " + str(ret_val))
    Exception: cmake error: 1

  • JeroenT said:
    I get a different error now with the stereo_bis_receiver_pre270 branch. See below.

    It's a branch of NCS v2.7.0. Please use NCS v2.7.0 to build.

Reply Children
Related