nRF5340 Audio-DK [HEADSET][UNICAST_SERVER] - Failed to establish the LE Audio connection to nRF5340 Audio DK from Samsung Galaxy S24+.

Hi Team,

I have 1 nRF5340 Audio DK. With the steps mentioned in below links, I configured Json file to Headset and I'm able to achieve it.

Setup Details :
Headset - nRF5340 Audio DK
Gateway - Samsung Galaxy s24+.
SDK Version : nRF Connect SDK v2.6.1
Application: nrf5340_audio.

Procedure:
Step 1: Build SDK with nrf5340_audio with below mentioned configurations.
Step 2: Flashed board with application and then performed reset.
Step 3: Connetion is initiated from Bluetooth settings page to DK.

Observations:
When trying to enable LE Audio, it is failing. No LE Audio connection is established. However GATT level connection has established.

HL [00:00:29.543,273] <inf> bt_content_ctrl_media: Discovery of MCS finished

No communication is observed after above service discovery procedure.

In prj.conf, added following configurations. (These configuration are referred from previously answered questions)
CONFIG_AUDIO_DEV=1
CONFIG_TRANSPORT_CIS=y
CONFIG_I2C=y
CONFIG_BT_VCP_VOL_REND=y
CONFIG_BT_CSIP_SET_MEMBER=y
CONFIG_BT_MCC=y
CONFIG_BT_LOG_SNIFFER_INFO=y
CONFIG_STREAM_BIDIRECTIONAL=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_BAP_UNICAST_SERVER=y
CONFIG_BT_CAP_ACCEPTOR=y
CONFIG_BT_CAP_ACCEPTOR_LOG_LEVEL_DBG=y
CONFIG_CODEC_CAP_COUNT_MAX=10
CONFIG_BT_PAC_SNK=y

How I can enable LE Audio? Is there any specific CONFIG to enable ??
Please help here.

Thanks a lot !!!

Parents
  • Hi,

    Could you provide more information about the changes that you made to the default nrf5340_audio application on the headset side?

    Have you tried using any other phone?

    Best regards,
    Dejan

  • Hi Dejan,

    Could you provide more information about the changes that you made to the default nrf5340_audio application on the headset side?

    I have added the above mentioned CONFIGs in the prj.conf file.

    Have you tried using any other phone?

    I have not tried due to unavailability of mobiles with LE audio support.

    Thanks a lot Slight smile !!!

    Best Regards,
    Jeevan Kumar K.

  • Hi,

    Have you updated your phone to the newest Android version?

    After connecting to the CIS headset, you could try to check the device settings for CIS gateway in the Bluetooth page to see if there is a switch for enabling LE Audio feature.
    Alternatively, you could try to enable developer options and support for LE Audio on your phone. It might be that support for LE Audio is not enabled by default.

    Best regards,
    Dejan


  • Hi Dejan,

    Have you updated your phone to the newest Android version?

    Yes, phone is updated to newest Android version(Android 14).

    After connecting to the CIS headset, you could try to check the device settings for CIS gateway in the Bluetooth page to see if there is a switch for enabling LE Audio feature.

    Yeah, I can see a switch to enable LE Audio feature. When I am trying to enable the same however switching to LE Audio is not happening. 
    Attaching screen recorded video for reference.

    Best Regards,
    Jeevan Kumar K.


Reply
  • Hi Dejan,

    Have you updated your phone to the newest Android version?

    Yes, phone is updated to newest Android version(Android 14).

    After connecting to the CIS headset, you could try to check the device settings for CIS gateway in the Bluetooth page to see if there is a switch for enabling LE Audio feature.

    Yeah, I can see a switch to enable LE Audio feature. When I am trying to enable the same however switching to LE Audio is not happening. 
    Attaching screen recorded video for reference.

    Best Regards,
    Jeevan Kumar K.


Children
  • Hi,

    Thank you for sharing the video.

    Can you try to enable LE Audio via Developer options?

    Best regards,
    Dejan

  • Hi Dejan,

    Can you try to enable LE Audio via Developer options?

    There is no option to enable LE audio in Developer options in Samsung S24+.

    So, I have got Google Pixel 8 Pro where I can enable LE audio for nRF5340(Headset) from Bluetooth settings page. Now LE audio is enabled for headset however there is an issue while streaming Audio i.e., audio_system: Failed to set up codec. Please see below logs from the console and followed by system got hang.

    HL [00:03:06.692,504] <inf> unicast_server: LC3 codec config for sink:
    HL [00:03:06.692,504] <inf> unicast_server: Frequency: 48000 Hz
    HL [00:03:06.692,504] <inf> unicast_server: Duration: 10000 us
    HL [00:03:06.692,535] <inf> unicast_server: Channel allocation: 0x1
    HL [00:03:06.692,535] <inf> unicast_server: Octets per frame: 120 (96000 bps)
    HL [00:03:06.692,535] <inf> unicast_server: Frames per SDU: 1
    HL [00:03:06.790,008] <inf> main: Presentation delay 10000 us is set by initiator
    HL [00:03:06.887,084] <wrn> bt_ascs: CCID 2 is unknown
    HL [00:03:07.548,828] <inf> unicast_server: Stream 0x2000fed0 started
    HL [00:03:07.550,292] <wrn> le_audio_rx: Not in streaming state, throwing data: 1
    HL [00:03:07.553,405] <err> sw_codec_lc3: LC3 enc_bitrate is 0
    HL [00:03:07.553,405] <err> audio_system: Failed to set up codec
    HL [00:03:07.553,436] <err> audio_system: ERR_CHK Err_code: [-22] @ line: 393

    Please help here. PFA, are the console logs

    *** Booting nRF Connect SDK v3.5.99-ncs1-1 ***
    HL [00:00:00.270,111] <inf> board_version: Compatible board/HW version found: 1.0.0
    HL [00:00:00.322,479] <inf> fw_info: 
             nRF5340 Audio nRF5340 Audio DK cpuapp                      
             NCS base version: 2.6.1                            
             Cmake run : Mon Jun 03 11:19:19 2024
    HL [00:00:00.322,479] <inf> fw_info: ------- DEBUG BUILD -------
    HL [00:00:00.322,479] <inf> fw_info: HEADSET left device
    HL [00:00:00.341,583] <inf> bt_mgmt_ctlr_cfg: Controller: SoftDevice: Version 5.4 (0x0d), Revision 8591
    HL [00:00:00.341,796] <inf> bt_mgmt: Local identity addr: CE:BB:C5:05:25:B0 (random)
    HL [00:00:00.346,282] <inf> bt_mgmt_adv: Local addr: 40:89:01:FA:D7:62 (random)
    HL [00:00:00.346,801] <inf> bt_mgmt_adv: Advertising successfully started
    HL [00:01:28.739,562] <inf> bt_mgmt: Connected: 79:59:AF:18:C7:8D (random)
    HL [00:01:28.739,593] <inf> main: Connected
    HL [00:01:31.432,189] <inf> main: Security changed
    HL [00:01:31.580,871] <inf> bt_keys: SC LTK: 0xab41e28715c4eb24db3a769960381ca4
    HL [00:01:35.429,656] <inf> bt_content_ctrl_media: Discovery of MCS finished
    HL [00:01:41.084,716] <inf> bt_rend_vol: Volume = 194, mute state = 0
    HL [00:01:59.805,206] <inf> bt_rend_vol: Volume = 184, mute state = 0
    HL [00:03:06.692,504] <inf> unicast_server: LC3 codec config for sink:
    HL [00:03:06.692,504] <inf> unicast_server:     Frequency: 48000 Hz
    HL [00:03:06.692,504] <inf> unicast_server:     Duration: 10000 us
    HL [00:03:06.692,535] <inf> unicast_server:     Channel allocation: 0x1
    HL [00:03:06.692,535] <inf> unicast_server:     Octets per frame: 120 (96000 bps)
    HL [00:03:06.692,535] <inf> unicast_server:     Frames per SDU: 1
    HL [00:03:06.790,008] <inf> main: Presentation delay 10000 us is set by initiator
    HL [00:03:06.887,084] <wrn> bt_ascs: CCID 2 is unknown
    HL [00:03:07.548,828] <inf> unicast_server: Stream 0x2000fed0 started
    HL [00:03:07.550,292] <wrn> le_audio_rx: Not in streaming state, throwing data: 1
    HL [00:03:07.553,405] <err> sw_codec_lc3: LC3 enc_bitrate is 0
    HL [00:03:07.553,405] <err> audio_system: Failed to set up codec
    HL [00:03:07.553,436] <err> audio_system: ERR_CHK Err_code: [-22] @ line: 393
    HL [00:03:07.553,436] <err> os: r0/a1:  0x00000003  r1/a2:  0x0000000d  r2/a3:  0x0000000c
    HL [00:03:07.553,436] <err> os: r3/a4:  0x0005aea1 r12/ip:  0x200030f0 r14/lr:  0x0005af2b
    HL [00:03:07.553,436] <err> os:  xpsr:  0x61100000
    HL [00:03:07.553,466] <err> os: s[ 0]:  0x200015e4  s[ 1]:  0x0005b0c5  s[ 2]:  0xffffffea  s[ 3]:  0x00000004
    HL [00:03:07.553,466] <err> os: s[ 4]:  0x20012c30  s[ 5]:  0x20012c10  s[ 6]:  0xffffffea  s[ 7]:  0x20012c10
    HL [00:03:07.553,466] <err> os: s[ 8]:  0x20012c30  s[ 9]:  0x00000000  s[10]:  0x00000000  s[11]:  0x0005b111
    HL [00:03:07.553,466] <err> os: s[12]:  0x20004d60  s[13]:  0x0006bb04  s[14]:  0xffffffea  s[15]:  0x00000189
    HL [00:03:07.553,497] <err> os: fpscr:  0x00000000
    HL [00:03:07.553,497] <err> os: Faulting instruction address (r15/pc): 0x0000467a
    HL [00:03:07.553,497] <err> os: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
    HL [00:03:07.553,527] <err> os: Current thread: 0x20001eb0 (LE_AUDIO_MSG_SUB)
    HL [00:03:07.553,527] <err> error_handler: Caught system error -- reason 3. Entering infinite loop
    
    

    Thanks a lot Slight smile

    Best Regards,
    Jeevan Kumar K.

  • Hi,

    As I see it, you just changed the phone acting as audio gateway to Google Pixel 8 Pro and the log you provided is taken from nrf5340_audio_dk acting as audio headset. Is this correct?

    Did you try to use Samsung S24 plus? Did you get different or the same error log with it?

    Best regards,
    Dejan

  • Hi Dejan,

    As I see it, you just changed the phone acting as audio gateway to Google Pixel 8 Pro and the log you provided is taken from nrf5340_audio_dk acting as audio headset. Is this correct?

    Yes, It is correct.


    Did you try to use Samsung S24 plus? Did you get different or the same error log with it?

    Sorry, there was typo in previous reply. 
    There is no option available to enable LE Audio in developer options.

    BTW, by disabling CONFIG_STREAM_BIDIRECTIONAL in prj.conf, streaming is successful to the headset and can hear the same. This is done using Pixel8 Pro.
    However when I am going for bidirectional stream, Failed to set up codec is observed.

    Could you help here to enable bidirectional stream ???

    Thanks a lot Slight smile !!!

    Best Regards,
    Jeevan Kumar K.

  • Hi,

    Did you build debug or release version of the application?
    Kconfig option CONFIG_STREAM_BIDIRECTIONAL needs to be added to a proper project configuration file. Each of the build versions has its own configuration file - applications/nrf5340_audio/prj.conf (for the debug version) and applications/nrf5340_audio/prj_release.conf (for the release version).

    Could you provide full project configuration that you used on nrf5340_audio-dk?

    Best regards,
    Dejan

Related