Issue with Stereo Sound from External Codec on nRF5340 DK (SDK v2.6.2)

Hello Team,

I am experiencing an issue with the sound output from an external codec connected to the nRF5340 DK. Currently, the sound is in mono, but my goal is to achieve stereo sound for both the left and right channels.

I read in an article that the configuration may need to be edited to enable stereo output from the external codec. I am using SDK v2.6.2 and would appreciate any guidance or suggestions on how to adjust the configuration to resolve this issue.

Thank you for your support!

Regards,

Abdulmohaimen Algamoudi

Parents
  • Hi,

    Could you please provide more information about your setup?

    Which external codec do you use?

    Best regards,
    Dejan

  • Hi, 

    Thank you for your swift reply.

    I am using the DA7212 evaluation board, and I can hear sound from the jacks on the DA7212 board. I followed the instructions from Nordic to enable the external codec.

    However, I am still working on achieving stereo sound, as the current output is mono. Any further guidance would be greatly appreciated.

    Best regards,

    Abdulmohaimen Algamoudi

  • Hi Abdulmohaimen,

    You could try to debug your application using tools mentioned in debugging lesson in the nRF Connect SDK Intermediate course.

    Best regards,
    Dejan

  • Hey Dejans, 

    Thank you for your support, and I apologize for the delay. I have been working hard to resolve the issue.

    I have tried the provided code, but unfortunately, it does not work.

    I also tested the  code mentioned in this tickt, and I was able to achieve stereo sound with CIS. However, there are some limitations, such as only one data channel (left) being transmitted

     

    the log outputs of the gateway:

    *** Booting Zephyr OS build v3.3.99-ncs1-2 ***
    GW [00:00:00.258,178] <inf> fw_info: 
             nRF5340 Audio nRF5340 Audio DK cpuapp                      
             NCS base version: 2.4.2                            
             Cmake run : Sun Nov 24 16:33:29 2024
    GW [00:00:00.258,209] <inf> fw_info: ------- DEBUG BUILD -------
    GW [00:00:00.258,209] <inf> fw_info: Compiled for GATEWAY device
    GW [00:00:00.268,829] <inf> board_version: Compatible board/HW version found: 1.0.0
    GW [00:00:00.306,579] <wrn> bt_hci_core: Controller to host flow control not supported
    GW [00:00:00.309,722] <inf> bt_hci_core: No ID address. App must call settings_load()
    GW [00:00:00.309,783] <inf> ble: MAC: 00:00:00:00:00:00 (public)
    GW [00:00:00.310,363] <inf> ble: Controller version: 3349
    GW [00:00:00.312,103] <inf> bt_hci_core: Identity: FF:0B:F2:D9:88:E8 (random)
    GW [00:00:00.312,133] <inf> bt_hci_core: HCI: version 5.2 (0x0b) revision 0x0d15, manufacturer 0x07e8
    GW [00:00:00.312,133] <inf> bt_hci_core: LMP: version 5.2 (0x0b) subver 0x0d15
    GW [00:00:00.402,526] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:00.404,632] <inf> cis_gateway: Scanning successfully started
    GW [00:00:00.725,189] <inf> cis_gateway: Connected: D7:4A:8E:D1:8F:D7 (random)
    GW [00:00:01.416,992] <inf> cis_gateway: All headsets connected
    GW [00:00:02.537,963] <inf> cis_gateway: LEFT sink stream configured
    GW [00:00:02.937,042] <inf> ble_audio_services: VCS discover finished
    GW [00:00:04.217,895] <inf> cis_gateway: LEFT source stream configured
    GW [00:00:04.297,241] <inf> cis_gateway: Enable stream 0x20002b9c
    GW [00:00:04.297,912] <inf> cis_gateway: Enable stream 0x2000297c
    GW [00:00:04.657,867] <inf> cis_gateway: Stream 0x2000297c started
    GW [00:00:04.681,427] <wrn> bt_hci_core: opcode 0x2061 status 0x0c
    GW [00:00:04.690,856] <wrn> bt_hci_core: opcode 0x2061 status 0x0c
    GW [00:00:04.897,399] <inf> cis_gateway: Stream 0x20002b9c started
    

    The log outputs of the Headset:

    *** Booting Zephyr OS build v3.3.99-ncs1-2 ***
    HL [00:00:00.259,368] <inf> fw_info: 
             nRF5340 Audio nRF5340 Audio DK cpuapp                      
             NCS base version: 2.4.2                            
             Cmake run : Sun Nov 24 16:31:16 2024
    HL [00:00:00.259,368] <inf> fw_info: ------- DEBUG BUILD -------
    HL [00:00:00.259,368] <inf> fw_info: HEADSET left device
    HL [00:00:00.270,019] <inf> board_version: Compatible board/HW version found: 1.0.0
    HL [00:00:00.307,800] <wrn> bt_hci_core: Controller to host flow control not supported
    HL [00:00:00.310,882] <inf> bt_hci_core: No ID address. App must call settings_load()
    HL [00:00:00.310,974] <inf> ble: MAC: 00:00:00:00:00:00 (public)
    HL [00:00:00.311,523] <inf> ble: Controller version: 3349
    HL [00:00:00.313,079] <inf> bt_hci_core: Identity: D7:4A:8E:D1:8F:D7 (random)
    HL [00:00:00.313,110] <inf> bt_hci_core: HCI: version 5.2 (0x0b) revision 0x0d15, manufacturer 0x07e8
    HL [00:00:00.313,110] <inf> bt_hci_core: LMP: version 5.2 (0x0b) subver 0x0d15
    HL [00:00:00.406,707] <inf> cis_headset: Set direct advertising to FF:0B:F2:D9:88:E8 (random)
    HL [00:00:00.407,409] <inf> cis_headset: Advertising successfully started
    HL [00:00:03.134,887] <inf> cis_headset: Connected: FF:0B:F2:D9:88:E8 (random)
    HL [00:00:04.907,409] <inf> cis_headset: LC3 codec config for sink:
    HL [00:00:04.907,440] <inf> cis_headset:        Frequency: 48000 Hz
    HL [00:00:04.907,440] <inf> cis_headset:        Frame Duration: 10000 us
    HL [00:00:04.907,470] <inf> cis_headset:        Channel allocation: 0x1
    HL [00:00:04.907,470] <inf> cis_headset:        Octets per frame: 80 (64000 bps)
    HL [00:00:04.907,470] <inf> cis_headset:        Frames per SDU: 1
    HL [00:00:06.586,669] <inf> cis_headset: LC3 codec config for source:
    HL [00:00:06.586,700] <inf> cis_headset:        Frequency: 48000 Hz
    HL [00:00:06.586,700] <inf> cis_headset:        Frame Duration: 10000 us
    HL [00:00:06.586,700] <inf> cis_headset:        Channel allocation: 0x1
    HL [00:00:06.586,700] <inf> cis_headset:        Octets per frame: 80 (64000 bps)
    HL [00:00:06.586,730] <inf> cis_headset:        Frames per SDU: 1
    HL [00:00:06.667,053] <inf> streamctrl: Presentation delay 10000 us is set by initiator
    HL [00:00:06.667,083] <inf> streamctrl: Presentation delay 10000 us is set by initiator
    HL [00:00:07.032,989] <inf> cis_headset: Stream 0x2000ce40 started
    DAC L gain 112   
    DAC R gain 112   
    HL [00:00:07.102,600] <inf> audio_datapath: Drft comp state: CALIB
    HL [00:00:07.105,560] <wrn> audio_datapath: Data received, total underruns: 54
    HL [00:00:07.146,575] <wrn> audio_datapath: Data received, total underruns: 55
    HL [00:00:07.187,561] <wrn> audio_datapath: Data received, total underruns: 56
    HL [00:00:07.202,575] <inf> audio_datapath: Drft comp state: INIT
    HL [00:00:07.203,582] <inf> audio_datapath: Drft comp state: CALIB
    HL [00:00:07.266,540] <inf> cis_headset: Stream 0x2000ce64 started
    HL [00:00:07.303,588] <inf> audio_datapath: Drft comp state: OFFSET
    HL [00:00:07.685,821] <inf> audio_datapath: Drft comp state: LOCKED
    HL [00:00:07.692,657] <inf> audio_datapath: Pres comp state: MEAS
    HL [00:00:07.802,917] <inf> audio_datapath: Pres comp state: WAIT
    HL [00:00:07.942,718] <inf> audio_datapath: Pres comp state: INIT
    HL [00:00:07.952,697] <inf> audio_datapath: Pres comp state: MEAS
    HL [00:00:08.062,927] <inf> audio_datapath: Pres comp state: LOCKED
    HL [00:00:08.666,046] <inf> ble_audio_services: Discovery of MCS finished
    

    One of the problems I am currently facing is that the gateway cannot reconnect to the headset after it has been turned off. To re-establish the connection, I have to press the reset button.

    *** Booting Zephyr OS build v3.3.99-ncs1-2 ***
    GW [00:00:00.256,622] <inf> fw_info: 
             nRF5340 Audio nRF5340 Audio DK cpuapp                      
             NCS base version: 2.4.2                            
             Cmake run : Sun Nov 24 16:33:29 2024
    GW [00:00:00.256,652] <inf> fw_info: ------- DEBUG BUILD -------
    GW [00:00:00.256,652] <inf> fw_info: Compiled for GATEWAY device
    GW [00:00:00.267,272] <inf> board_version: Compatible board/HW version found: 1.0.0
    GW [00:00:00.305,145] <wrn> bt_hci_core: Controller to host flow control not supported
    GW [00:00:00.308,258] <inf> bt_hci_core: No ID address. App must call settings_load()
    GW [00:00:00.308,319] <inf> ble: MAC: 00:00:00:00:00:00 (public)
    GW [00:00:00.308,898] <inf> ble: Controller version: 3349
    GW [00:00:00.310,424] <inf> bt_hci_core: Identity: FF:0B:F2:D9:88:E8 (random)
    GW [00:00:00.310,455] <inf> bt_hci_core: HCI: version 5.2 (0x0b) revision 0x0d15, manufacturer 0x07e8
    GW [00:00:00.310,485] <inf> bt_hci_core: LMP: version 5.2 (0x0b) subver 0x0d15
    GW [00:00:00.403,228] <inf> cis_gateway: Scanning successfully started
    GW [00:00:00.604,553] <inf> cis_gateway: Connected: 49:EF:87:0B:C2:BA (random)
    GW [00:00:01.575,439] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:01.576,202] <inf> cis_gateway: Scanning successfully started
    GW [00:00:02.135,437] <wrn> cis_gateway: Connection not found
    GW [00:00:02.135,437] <err> cis_gateway: Unknown connection, should not reach here
    GW [00:00:02.149,871] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:02.150,024] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:02.150,604] <inf> cis_gateway: Scanning successfully started
    GW [00:00:02.372,070] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:02.372,192] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:02.372,863] <inf> cis_gateway: Scanning successfully started
    GW [00:00:02.474,884] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:02.475,036] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:02.475,616] <inf> cis_gateway: Scanning successfully started
    GW [00:00:02.572,875] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:02.573,028] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:02.573,577] <inf> cis_gateway: Scanning successfully started
    GW [00:00:02.615,356] <wrn> cis_gateway: Connection not found
    GW [00:00:02.615,386] <err> cis_gateway: Unknown connection, should not reach here
    GW [00:00:02.673,645] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:02.673,797] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:02.674,560] <inf> cis_gateway: Scanning successfully started
    GW [00:00:02.793,609] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:02.793,792] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:02.794,555] <inf> cis_gateway: Scanning successfully started
    GW [00:00:02.891,998] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:02.892,150] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:02.892,883] <inf> cis_gateway: Scanning successfully started
    GW [00:00:03.007,904] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:03.008,056] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:03.008,636] <inf> cis_gateway: Scanning successfully started
    GW [00:00:03.109,130] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:03.109,283] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:03.109,893] <inf> cis_gateway: Scanning successfully started
    GW [00:00:03.209,899] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:03.210,052] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:03.210,632] <inf> cis_gateway: Scanning successfully started
    GW [00:00:03.419,921] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:03.420,074] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:03.420,623] <inf> cis_gateway: Scanning successfully started
    GW [00:00:03.629,272] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:03.629,425] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:03.630,187] <inf> cis_gateway: Scanning successfully started
    GW [00:00:03.732,025] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:03.732,177] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:03.732,910] <inf> cis_gateway: Scanning successfully started
    GW [00:00:03.837,585] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:03.837,738] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:03.838,500] <inf> cis_gateway: Scanning successfully started
    GW [00:00:03.946,136] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:03.946,258] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:03.946,929] <inf> cis_gateway: Scanning successfully started
    GW [00:00:04.052,032] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:04.052,185] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:04.052,917] <inf> cis_gateway: Scanning successfully started
    GW [00:00:04.161,071] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:04.161,224] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:04.161,926] <inf> cis_gateway: Scanning successfully started
    GW [00:00:04.372,070] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:04.372,192] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:04.372,955] <inf> cis_gateway: Scanning successfully started
    GW [00:00:04.487,640] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:04.487,792] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:04.488,555] <inf> cis_gateway: Scanning successfully started
    GW [00:00:04.588,012] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:04.588,165] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:04.588,928] <inf> cis_gateway: Scanning successfully started
    GW [00:00:04.692,962] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:04.693,084] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:04.693,664] <inf> cis_gateway: Scanning successfully started
    GW [00:00:04.804,138] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:04.804,290] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:04.804,962] <inf> cis_gateway: Scanning successfully started
    GW [00:00:04.913,696] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:04.913,879] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:04.914,611] <inf> cis_gateway: Scanning successfully started
    GW [00:00:05.131,286] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:05.131,439] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:05.132,049] <inf> cis_gateway: Scanning successfully started
    GW [00:00:05.233,703] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:05.233,886] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:05.234,619] <inf> cis_gateway: Scanning successfully started
    GW [00:00:05.346,527] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:05.346,679] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:05.347,351] <inf> cis_gateway: Scanning successfully started
    GW [00:00:05.550,994] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:05.551,116] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:05.551,727] <inf> cis_gateway: Scanning successfully started
    GW [00:00:05.652,008] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:05.652,130] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:05.652,709] <inf> cis_gateway: Scanning successfully started
    GW [00:00:05.772,125] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:05.772,247] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:05.772,979] <inf> cis_gateway: Scanning successfully started
    GW [00:00:05.873,413] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:05.873,565] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:05.874,298] <inf> cis_gateway: Scanning successfully started
    GW [00:00:05.972,106] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:05.972,259] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:05.972,991] <inf> cis_gateway: Scanning successfully started
    GW [00:00:06.080,535] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:06.080,657] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:06.081,329] <inf> cis_gateway: Scanning successfully started
    GW [00:00:06.178,802] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:06.178,924] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:06.179,687] <inf> cis_gateway: Scanning successfully started
    GW [00:00:06.281,127] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:06.281,280] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:06.282,012] <inf> cis_gateway: Scanning successfully started
    GW [00:00:06.394,012] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:06.394,165] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:06.394,744] <inf> cis_gateway: Scanning successfully started
    GW [00:00:06.603,546] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:06.603,698] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:06.604,370] <inf> cis_gateway: Scanning successfully started
    GW [00:00:06.708,038] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:06.708,190] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:06.708,770] <inf> cis_gateway: Scanning successfully started
    GW [00:00:06.811,676] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:06.811,859] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:06.812,591] <inf> cis_gateway: Scanning successfully started
    GW [00:00:06.913,757] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:06.913,909] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:06.914,642] <inf> cis_gateway: Scanning successfully started
    GW [00:00:07.033,142] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:07.033,264] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:07.034,027] <inf> cis_gateway: Scanning successfully started
    GW [00:00:07.124,237] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:07.124,359] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:07.125,030] <inf> cis_gateway: Scanning successfully started
    GW [00:00:07.233,795] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:07.233,947] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:07.234,680] <inf> cis_gateway: Scanning successfully started
    GW [00:00:07.452,056] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:07.452,209] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:07.452,758] <inf> cis_gateway: Scanning successfully started
    GW [00:00:07.548,614] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:07.548,736] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:07.549,407] <inf> cis_gateway: Scanning successfully started
    GW [00:00:07.652,160] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:07.652,313] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:07.653,045] <inf> cis_gateway: Scanning successfully started
    GW [00:00:07.753,814] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:07.753,967] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:07.754,699] <inf> cis_gateway: Scanning successfully started
    GW [00:00:07.972,198] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:07.972,320] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:07.973,052] <inf> cis_gateway: Scanning successfully started
    GW [00:00:08.073,822] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:08.073,974] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:08.074,707] <inf> cis_gateway: Scanning successfully started
    GW [00:00:08.168,762] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:08.168,945] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:08.169,677] <inf> cis_gateway: Scanning successfully started
    GW [00:00:08.273,803] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:08.273,986] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:08.274,719] <inf> cis_gateway: Scanning successfully started
    GW [00:00:08.492,218] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:08.492,340] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:08.493,072] <inf> cis_gateway: Scanning successfully started
    GW [00:00:08.593,841] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:08.593,994] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:08.594,726] <inf> cis_gateway: Scanning successfully started
    GW [00:00:08.692,199] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:08.692,352] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:08.693,084] <inf> cis_gateway: Scanning successfully started
    GW [00:00:08.800,903] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:08.801,025] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:08.801,757] <inf> cis_gateway: Scanning successfully started
    GW [00:00:08.913,116] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:08.913,238] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:08.913,848] <inf> cis_gateway: Scanning successfully started
    GW [00:00:09.445,343] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:09.445,465] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:09.446,105] <inf> cis_gateway: Scanning successfully started
    GW [00:00:09.652,252] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:09.652,374] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:09.653,137] <inf> cis_gateway: Scanning successfully started
    GW [00:00:09.751,220] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:09.751,373] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:09.752,105] <inf> cis_gateway: Scanning successfully started
    GW [00:00:10.161,163] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:10.161,315] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:10.161,895] <inf> cis_gateway: Scanning successfully started
    GW [00:00:10.271,789] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:10.271,942] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:10.272,705] <inf> cis_gateway: Scanning successfully started
    GW [00:00:10.369,934] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:10.370,086] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:10.370,819] <inf> cis_gateway: Scanning successfully started
    GW [00:00:10.472,229] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:10.472,381] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:10.473,144] <inf> cis_gateway: Scanning successfully started
    GW [00:00:10.683,166] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:10.683,319] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:10.683,898] <inf> cis_gateway: Scanning successfully started
    GW [00:00:10.792,846] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:10.792,999] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:10.793,731] <inf> cis_gateway: Scanning successfully started
    GW [00:00:10.900,573] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:10.900,726] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:10.901,489] <inf> cis_gateway: Scanning successfully started
    GW [00:00:11.000,579] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:11.000,732] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:11.001,464] <inf> cis_gateway: Scanning successfully started
    GW [00:00:11.111,267] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:11.111,419] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:11.112,182] <inf> cis_gateway: Scanning successfully started
    GW [00:00:11.203,430] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:11.203,552] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:11.204,162] <inf> cis_gateway: Scanning successfully started
    GW [00:00:11.313,934] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:11.314,086] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:11.314,819] <inf> cis_gateway: Scanning successfully started
    GW [00:00:11.528,259] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:11.528,411] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:11.529,174] <inf> cis_gateway: Scanning successfully started
    GW [00:00:11.633,911] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:11.634,094] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:11.634,796] <inf> cis_gateway: Scanning successfully started
    GW [00:00:11.733,215] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:11.733,337] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:11.733,947] <inf> cis_gateway: Scanning successfully started
    GW [00:00:11.849,884] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:11.850,036] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:11.850,769] <inf> cis_gateway: Scanning successfully started
    GW [00:00:12.046,508] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:12.046,661] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:12.047,241] <inf> cis_gateway: Scanning successfully started
    GW [00:00:12.153,961] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:12.154,113] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:12.154,846] <inf> cis_gateway: Scanning successfully started
    GW [00:00:12.371,215] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:12.371,368] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:12.371,948] <inf> cis_gateway: Scanning successfully started
    GW [00:00:12.473,968] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:12.474,121] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:12.474,884] <inf> cis_gateway: Scanning successfully started
    GW [00:00:12.572,326] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:12.572,479] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:12.573,242] <inf> cis_gateway: Scanning successfully started
    GW [00:00:12.673,980] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:12.674,133] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:12.674,865] <inf> cis_gateway: Scanning successfully started
    GW [00:00:12.773,223] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:12.773,376] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:12.773,956] <inf> cis_gateway: Scanning successfully started
    GW [00:00:12.879,486] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:12.879,608] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:12.880,218] <inf> cis_gateway: Scanning successfully started
    GW [00:00:12.985,260] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:12.985,382] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:12.985,992] <inf> cis_gateway: Scanning successfully started
    GW [00:00:13.092,346] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:13.092,498] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:13.093,231] <inf> cis_gateway: Scanning successfully started
    GW [00:00:13.190,551] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:13.190,673] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:13.191,253] <inf> cis_gateway: Scanning successfully started
    GW [00:00:13.401,947] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:13.402,130] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:13.402,862] <inf> cis_gateway: Scanning successfully started
    GW [00:00:13.510,955] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:13.511,108] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:13.511,871] <inf> cis_gateway: Scanning successfully started
    GW [00:00:13.611,938] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:13.612,091] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:13.612,854] <inf> cis_gateway: Scanning successfully started
    GW [00:00:13.713,989] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:13.714,172] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:13.714,935] <inf> cis_gateway: Scanning successfully started
    GW [00:00:13.932,373] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:13.932,525] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:13.933,258] <inf> cis_gateway: Scanning successfully started
    GW [00:00:14.026,306] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:14.026,428] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:14.027,038] <inf> cis_gateway: Scanning successfully started
    GW [00:00:14.133,270] <wrn> cis_gateway: Create ACL connection failed: -12
    GW [00:00:14.133,422] <inf> cis_gateway: All bonded slots filled, will not accept new devices
    GW [00:00:14.134,002] <inf> cis_gateway: Scanning successfully started
    GW [00:00:14.350,280] <wrn> cis_gateway: Create ACL connection failed: -12

    I would now like to achieve a stable CIS connection with both channels (left and right) being transmitted. After that, I aim to implement it using a newer SDK version (I am currently using v2.4.2).

    I have tried the approach mentioned in this tickt, but when I add CONFIG_BT_MAX_CONN=2_ to the prj.conf file, I encounter the following error from the gateway:

    *** Booting Zephyr OS build v3.3.99-ncs1-2 ***
    GW [00:00:00.256,500] <inf> fw_info: 
             nRF5340 Audio nRF5340 Audio DK cpuapp                      
             NCS base version: 2.4.2                            
             Cmake run : Sun Nov 24 16:46:32 2024
    GW [00:00:00.256,530] <inf> fw_info: ------- DEBUG BUILD -------
    GW [00:00:00.256,530] <inf> fw_info: Compiled for GATEWAY device
    GW [00:00:00.267,150] <inf> board_version: Compatible board/HW version found: 1.0.0
    GW [00:00:00.305,236] <wrn> bt_hci_core: Controller to host flow control not supported
    GW [00:00:00.308,349] <inf> bt_hci_core: No ID address. App must call settings_load()
    GW [00:00:00.308,441] <inf> ble: MAC: 00:00:00:00:00:00 (public)
    GW [00:00:00.308,990] <inf> ble: Controller version: 3349
    GW [00:00:00.312,133] <inf> bt_hci_core: Identity: E4:C0:9C:97:EF:97 (random)
    GW [00:00:00.312,133] <inf> bt_hci_core: HCI: version 5.GW [00:00:00.312,164] <inf> bt_hci_core: LMP: version 5.2 (0x0b) subver 0x0d15
    GW [00:00:00.313,842] <inf> bt_settings: Saving ID
    GW [00:00:00.400,390] <err> cis_gateway: Failed to create unicast group: -22
    GW [00:00:00.400,390] <err> streamctrl: Failed to enable LE Audio
    GW [00:00:00.400,421] <err> streamctrl: ERR_CHK Err_code: [-22] @ line: 467
    GW [00:00:00.400,421] <err> os: r0/a1:  0x00000003  r1/a2:  0x00000005  r2/a3:  0x00000004
    GW [00:00:00.400,421] <err> os: r3/a4:  0x0006a3ff r12/ip:  0x20019140 r14/lr:  0x0006a489
    GW [00:00:00.400,451] <err> os:  xpsr:  0x49100000
    GW [00:00:00.400,451] <err> os: s[ 0]:  0x00000000  s[ 1]:  0x00000000  s[ 2]:  0x00000000  s[ 3]:  0x00000000
    GW [00:00:00.400,451] <err> os: s[ 4]:  0x00000000  s[ 5]:  0x00000000  s[ 6]:  0x00000000  s[ 7]:  0x00000000
    GW [00:00:00.400,451] <err> os: s[ 8]:  0x00000000  s[ 9]:  0x00000000  s[10]:  0x00000000  s[11]:  0x00000000
    GW [00:00:00.400,482] <err> os: s[12]:  0x00000000  s[13]:  0x00000000  s[14]:  0x00000000  s[15]:  0x00000000
    GW [00:00:00.400,482] <err> os: fpscr:  0x00000000
    GW [00:00:00.400,482] <err> os: Faulting instruction address (r15/pc): 0x00006736
    GW [00:00:00.400,512] <err> os: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
    GW [00:00:00.400,543] <err> os: Current thread: 0x200051b0 (main)
    GW [00:00:00.400,543] <err> error_handler: Caught system error -- reason 3. Entering infinite loop
    

    Should you require further details, I am happy to assist.

    Many thanks in advance; I truly appreciate your assistance.

    Best regards,

    Abdulmohaimen Algamoudi

  • I forgot to mention that I am not using the configuration CONFIG_AUDIO_SOURCE_I2S=y, as my source is via USB. However, I am experiencing some issues with the microphone—when I use it, I only hear a noisy signal.

  • Hi Abdulmohaimen,

    Would it be possible that you switch to newer NCS version sooner rather than later? The controller that was used in audio application before NCS v2.6.0 is deprecated and it is highly recommended that you update your NCS version. The most recent NCS version in 2.8.0.

    Best regards,
    Dejan

  • Hey Dejans,

    I have been using the older SDK because it is the only version with which I have made progress so far. I currently have no issue with transitioning to a newer SDK. However, as I mentioned before, I was unable to make further progress with version 2.6.2.

    I would be grateful if you could provide me with any steps or guidance to move forward with the new SDK and address potential issues, such as pairing and data rate problems.

    Thanks in advance.

    best regards 

    Abdulmohaimen 

Reply
  • Hey Dejans,

    I have been using the older SDK because it is the only version with which I have made progress so far. I currently have no issue with transitioning to a newer SDK. However, as I mentioned before, I was unable to make further progress with version 2.6.2.

    I would be grateful if you could provide me with any steps or guidance to move forward with the new SDK and address potential issues, such as pairing and data rate problems.

    Thanks in advance.

    best regards 

    Abdulmohaimen 

Children
No Data
Related