Integrate NUS into BLE Audio code

Hi,

I'm working with nRF5340 Audio DK.

I'm able to successfully run the audio example in BIS mode (with gateway and headset devices), and also to run the Peripheral UART Bluetooth example separately on my DK.

My goal is to open another BT connection, in parallel to the audio broadcast on my gateway device, to which I can connect with the nRF Toolbox App.

Is it possible? If so, which BT controller should be used? How should proj.conf should look like? What other configurations are required?

I've noticed that the UART example code uses adv.c for advertising, while the audio example code uses bt_mgmt.c.

Thank you,

Dekel

Parents
  • Hi Dekel,

    I came across the following repository through a DevZone post (I am unable to find the original post through a simple google search)

    https://github.com/nrfconnect/sdk-nrf/compare/v2.3-branch...rick1082:sdk-nrf:audio_with_nus_example?diff=split&w=

    This combines the audio example with NUS example with minimal changes. You will still have to play around with the settings like `CONFIG_BT_BUF_ACL_RX_SIZE`, `CONFIG_BT_BUF_ACL_TX_SIZE`, `CONFIG_BT_AUDIO_BITRATE_UNICAST_SINK` based on your requirements. You can refer to samples like ble-throughput to understand what each of these configs do. 

    This was written based on nrf SDK v2.3.0, and I was able to get it to work with the latest v2.6.0 SDK. I am able to communicate simultaneously transfer data over ACL while playing/receiving audio between two Audio DKs.

Reply
  • Hi Dekel,

    I came across the following repository through a DevZone post (I am unable to find the original post through a simple google search)

    https://github.com/nrfconnect/sdk-nrf/compare/v2.3-branch...rick1082:sdk-nrf:audio_with_nus_example?diff=split&w=

    This combines the audio example with NUS example with minimal changes. You will still have to play around with the settings like `CONFIG_BT_BUF_ACL_RX_SIZE`, `CONFIG_BT_BUF_ACL_TX_SIZE`, `CONFIG_BT_AUDIO_BITRATE_UNICAST_SINK` based on your requirements. You can refer to samples like ble-throughput to understand what each of these configs do. 

    This was written based on nrf SDK v2.3.0, and I was able to get it to work with the latest v2.6.0 SDK. I am able to communicate simultaneously transfer data over ACL while playing/receiving audio between two Audio DKs.

Children
No Data