Cis mode - Mic issues

Hi,

With this setup in Issue with Stereo Sound from External Codec on nRF5340 DK (SDK v2.6.2) , I successfully built a CIS mode using my nRF5340 DKs, enabling stereo sound while the microphone is active.

However, I am currently experiencing several issues:

  • The recorded microphone signal is accelerated, playing back faster than it was recorded.
  • The input signal quality is poor when using an analog microphone, but it improves significantly with a digital microphone.
  • When using the microphone and playing audio through the headset simultaneously, the recorded sound is barely audible (very low signal strength).
  • Occasionally, one of the DKs disconnects, causing a complete loss of audio.

Any insights into what might be causing these issues? and how might they be solved?

Thank you in advance—I truly appreciate your time and support.

Best regards,
Abdulmohaimen Algamoudi 

Parents Reply Children
  • Hi,

    In your previous ticket you mentioned using USB. Is this still the case?

    Are you switching between analog and digital microphone? If yes, how?

    Could you specify all code changes that you made to the audio application?

    Can you provide serial port log?

    Best regards,
    Dejan


  • Hi Dejan,

    Sorry for the late response—I was on vacation over the past few weeks.

    Yes, I am still using USB.

    I am switching between the analog and digital microphone using an external HW codec (DA7212 evaluation board). I have applied the modifications from the GitHub link and made changes to the hardware codec file to configure the codec. Additionally, I enabled the I2S configuration to utilize the external HW codec.

    I will attach the log files to this ticket.

    I want to mention that with the current configuration, the audio streaming does not remain stable for long (when 2 nrf5340 audio dk as headset r and L at the same time used). After a couple of minutes, the right channel (mostly) disconnects from streaming. Before that, I notice audio cutting out intermittently. (when i use just one it works prefactly  in this regard))

    I would like to emphasize that the main goal is to establish a CIS connection with two microphones (left and right) operating simultaneously. Currently, when using the accelerated microphone signal while the headset is streaming sound, the microphone volume is too low. (Current setup i have CIS mode with some limitions -  accelerated microphone signal  and Channel disconncating as well as the LOW mic when the sound on headphones)

    Additionally, I have another question: If I want to use CONFIG_AUDIO_SOURCE_I2S=y, can I connect it directly via the LINE plug on the nRF5340 Audio DK, or do I need to use an external HW codec? may it solve those problems?

    Looking forward to your feedback. 

    Thank you in advance—I truly appreciate your time and support.

    Best regards 
    Abdulmohaimen 

    *** Booting nRF Connect SDK v2.8.0-a2386bfc8401 ***
    *** Using Zephyr OS v3.7.99-0bc3393fb112 ***
    HL [00:00:00.279,052] <inf> board_version: Compatible board/HW version found: 1.0.0
    HL [00:00:00.311,431] <inf> fw_info: 
             nRF5340 Audio nRF5340 Audio DK cpuapp                      
             NCS base version: 2.8.0                            
             Cmake run : Fri Jan 03 19:31:25 2025
    HL [00:00:00.311,431] <inf> fw_info: ------- DEBUG BUILD -------
    HL [00:00:00.311,431] <inf> fw_info: HEADSET left device
    HL [00:00:00.381,134] <inf> bt_keys: SC LTK: 0xa752d2df8dcdae6a3827ee0019f6d8e1
    HL [00:00:00.383,209] <inf> bt_mgmt_ctlr_cfg: Controller: SoftDevice: Version 6.0 (0x0e), Revision 8270
    HL [00:00:00.383,422] <inf> bt_mgmt: Local identity addr: F5:FD:57:29:5F:67 (random)
    HL [00:00:00.389,129] <inf> bt_mgmt_adv: Local addr: 4B:76:FD:D8:DB:30 (random)
    HL [00:00:00.389,190] <inf> bt_mgmt_adv: Adv directed to: D3:C8:9D:D1:BE:66 (random).
    HL [00:00:00.389,801] <inf> bt_mgmt_adv: Advertising successfully started
    HL [00:00:01.667,388] <inf> bt_mgmt: Connected: D3:C8:9D:D1:BE:66 (random)
    HL [00:00:01.667,419] <inf> main: Connection event. Num connections: 1
    HL [00:00:01.667,572] <inf> bt_mgmt_adv: RPA (Resolvable Private Address) expired.
    HL [00:00:01.667,663] <inf> bt_mgmt_adv: Local addr: 4B:76:FD:D8:DB:30 (random)
    HL [00:00:01.748,382] <inf> main: Security changed
    HL [00:00:01.748,565] <wrn> bt_gatt: Device is not subscribed to characteristic
    HL [00:00:01.748,596] <wrn> bt_pacs: PACS notify failed: -22
    HL [00:00:01.748,626] <wrn> bt_gatt: Device is not subscribed to characteristic
    HL [00:00:01.748,626] <wrn> bt_pacs: PACS notify failed: -22
    HL [00:00:02.318,267] <inf> bt_content_ctrl_media: Discovery of MCS finished
    HL [00:00:03.429,138] <inf> le_audio: LC3 codec config for sink:
    HL [00:00:03.429,168] <inf> le_audio:   Frequency: 24000 Hz
    HL [00:00:03.429,168] <inf> le_audio:   Duration: 10000 us
    HL [00:00:03.429,168] <inf> le_audio:   Channel allocation: 0x3
    HL [00:00:03.429,168] <inf> le_audio:   Octets per frame: 60 (48000 bps)
    HL [00:00:03.429,168] <inf> le_audio:   Frames per SDU: 1
    HL [00:00:03.469,146] <inf> le_audio: LC3 codec config for source:
    HL [00:00:03.469,146] <inf> le_audio:   Frequency: 24000 Hz
    HL [00:00:03.469,146] <inf> le_audio:   Duration: 10000 us
    HL [00:00:03.469,177] <inf> le_audio:   Channel allocation: 0x1
    HL [00:00:03.469,177] <inf> le_audio:   Octets per frame: 60 (48000 bps)
    HL [00:00:03.469,177] <inf> le_audio:   Frames per SDU: 1
    HL [00:00:03.549,713] <inf> main: Presentation delay 5000 us is set by initiator
    HL [00:00:03.549,743] <inf> main: Presentation delay 5000 us is set by initiator
    HL [00:00:04.454,864] <inf> unicast_server: Stream 0x200105f4 started
    HL [00:00:04.456,512] <wrn> le_audio_rx: Not in streaming state (1), thrown 1 packet(s)
    DAC L gain 112   
    ADC L gain 112   
    DAC R gain 112   
    ADC R gain 112   
    HL [00:00:04.486,633] <wrn> audio_datapath: I2S RX overrun. Single msg
    HL [00:00:04.490,600] <wrn> audio_datapath: Data received, total under-runs: 11
    HL [00:00:04.565,643] <inf> audio_datapath: Drft comp state: CALIB
    HL [00:00:04.628,631] <inf> unicast_server: Stream 0x2001061c started
    HL [00:00:04.629,638] <wrn> audio_datapath: I2S RX continuing stream
    HL [00:00:04.665,649] <inf> audio_datapath: Drft comp state: OFFSET
    HL [00:00:05.166,015] <inf> audio_datapath: Drft comp state: LOCKED
    HL [00:00:05.174,957] <inf> audio_datapath: Pres comp state: MEAS
    HL [00:00:05.284,759] <inf> audio_datapath: Pres comp state: LOCKED
    HL [00:00:05.714,996] <wrn> audio_datapath: Data received, total under-runs: 15
    

    *** Using Zephyr OS v3.7.99-0bc3393fb112 ***
    GW [00:00:00.268,615] <inf> board_version: Compatible board/HW version found: 1.0.0
    GW [00:00:00.301,055] <inf> fw_info: 
             nRF5340 Audio nRF5340 Audio DK cpuapp                      
             NCS base version: 2.8.0                            
             Cmake run : Thu Jan 02 22:56:22 2025
    GW [00:00:00.301,055] <inf> fw_info: ------- DEBUG BUILD -------
    GW [00:00:00.301,055] <inf> fw_info: Compiled for GATEWAY device
    GW [00:00:00.370,391] <inf> bt_keys: SC LTK: 0xb589a7752caaa3535c4ca66003e0dbde
    GW [00:00:00.370,422] <inf> bt_keys: SC LTK: 0xa752d2df8dcdae6a3827ee0019f6d8e1
    GW [00:00:00.374,267] <inf> bt_mgmt_ctlr_cfg: Controller: SoftDevice: Version 6.0 (0x0e), Revision 8270
    GW [00:00:00.374,450] <inf> bt_mgmt: Local identity addr: D3:C8:9D:D1:BE:66 (random)
    GW [00:00:00.374,603] <inf> audio_usb: Ready for USB host to send/receive.
    GW [00:00:00.375,732] <inf> bt_mgmt_scan: All bonded slots filled, will not accept new devices
    GW [00:00:00.378,112] <inf> bt_mgmt_scan: Local addr: 77:BB:07:16:AE:49 (random). May time out. Updates not printed
    GW [00:00:00.378,112] <inf> bt_mgmt_scan: Scanning successfully started
    GW [00:00:00.382,476] <inf> bt_mgmt_scan: Creating connection to bonded device: F5:FD:57:29:5F:67 (random)
    GW [00:00:00.387,878] <inf> bt_mgmt: Connected: F5:FD:57:29:5F:67 (random)
    GW [00:00:00.387,908] <inf> main: Connection event. Num connections: 1
    GW [00:00:00.437,774] <wrn> bt_conn: conn 0x20004f08 failed to establish. RF noise?
    GW [00:00:00.437,896] <wrn> bt_mgmt: Security failed: level 1 err 9 
    GW [00:00:00.437,896] <wrn> bt_mgmt: Failed to disconnect -128
    GW [00:00:00.437,957] <wrn> bt_gatt: conn 0x20004f08 err 0x0e
    GW [00:00:00.438,171] <inf> bt_mgmt: Disconnected: F5:FD:57:29:5F:67 (random), reason 0x3e 
    GW [00:00:00.438,201] <inf> main: Disconnection event. Num connections: 0
    GW [00:00:00.438,201] <wrn> unicast_client: Unknown connection disconnected
    GW [00:00:00.438,323] <inf> bt_mgmt_scan: All bonded slots filled, will not accept new devices
    GW [00:00:00.439,270] <inf> bt_mgmt_scan: Local addr: 77:BB:07:16:AE:49 (random). May time out. Updates not printed
    GW [00:00:00.439,270] <inf> bt_mgmt_scan: Scanning successfully started
    GW [00:00:00.442,657] <inf> bt_mgmt_scan: Creating connection to bonded device: F5:FD:57:29:5F:67 (random)
    GW [00:00:00.448,913] <inf> bt_mgmt: Connected: F5:FD:57:29:5F:67 (random)
    GW [00:00:00.448,944] <inf> main: Connection event. Num connections: 1
    GW [00:00:00.498,809] <wrn> bt_conn: conn 0x20004f08 failed to establish. RF noise?
    GW [00:00:00.498,931] <wrn> bt_mgmt: Security failed: level 1 err 9 
    GW [00:00:00.498,962] <wrn> bt_mgmt: Failed to disconnect -128
    GW [00:00:00.498,992] <wrn> bt_gatt: conn 0x20004f08 err 0x0e
    GW [00:00:00.499,206] <inf> bt_mgmt: Disconnected: F5:FD:57:29:5F:67 (random), reason 0x3e 
    GW [00:00:00.499,237] <inf> main: Disconnection event. Num connections: 0
    GW [00:00:00.499,237] <wrn> unicast_client: Unknown connection disconnected
    GW [00:00:00.499,389] <inf> bt_mgmt_scan: All bonded slots filled, will not accept new devices
    GW [00:00:00.500,335] <inf> bt_mgmt_scan: Local addr: 77:BB:07:16:AE:49 (random). May time out. Updates not printed
    GW [00:00:00.500,335] <inf> bt_mgmt_scan: Scanning successfully started
    GW [00:00:00.504,821] <inf> bt_mgmt_scan: Creating connection to bonded device: F5:FD:57:29:5F:67 (random)
    GW [00:00:00.510,192] <inf> bt_mgmt: Connected: F5:FD:57:29:5F:67 (random)
    GW [00:00:00.510,223] <inf> main: Connection event. Num connections: 1
    GW [00:00:00.560,089] <wrn> bt_conn: conn 0x20004f08 failed to establish. RF noise?
    GW [00:00:00.560,211] <wrn> bt_mgmt: Security failed: level 1 err 9 
    GW [00:00:00.560,211] <wrn> bt_mgmt: Failed to disconnect -128
    GW [00:00:00.560,272] <wrn> bt_gatt: conn 0x20004f08 err 0x0e
    GW [00:00:00.560,485] <inf> bt_mgmt: Disconnected: F5:FD:57:29:5F:67 (random), reason 0x3e 
    GW [00:00:00.560,516] <inf> main: Disconnection event. Num connections: 0
    GW [00:00:00.560,516] <wrn> unicast_client: Unknown connection disconnected
    GW [00:00:00.560,638] <inf> bt_mgmt_scan: All bonded slots filled, will not accept new devices
    GW [00:00:00.561,584] <inf> bt_mgmt_scan: Local addr: 77:BB:07:16:AE:49 (random). May time out. Updates not printed
    GW [00:00:00.561,584] <inf> bt_mgmt_scan: Scanning successfully started
    GW [00:00:00.565,185] <inf> bt_mgmt_scan: Creating connection to bonded device: F5:FD:57:29:5F:67 (random)
    GW [00:00:00.571,441] <inf> bt_mgmt: Connected: F5:FD:57:29:5F:67 (random)
    GW [00:00:00.571,472] <inf> main: Connection event. Num connections: 1
    GW [00:00:00.621,307] <wrn> bt_conn: conn 0x20004f08 failed to establish. RF noise?
    GW [00:00:00.621,459] <wrn> bt_mgmt: Security failed: level 1 err 9 
    GW [00:00:00.621,459] <wrn> bt_mgmt: Failed to disconnect -128
    GW [00:00:00.621,490] <wrn> bt_gatt: conn 0x20004f08 err 0x0e
    GW [00:00:00.621,704] <inf> bt_mgmt: Disconnected: F5:FD:57:29:5F:67 (random), reason 0x3e 
    GW [00:00:00.621,765] <inf> main: Disconnection event. Num connections: 0
    GW [00:00:00.621,765] <wrn> unicast_client: Unknown connection disconnected
    GW [00:00:00.621,917] <inf> bt_mgmt_scan: All bonded slots filled, will not accept new devices
    GW [00:00:00.622,894] <inf> bt_mgmt_scan: Local addr: 77:BB:07:16:AE:49 (random). May time out. Updates not printed
    GW [00:00:00.622,924] <inf> bt_mgmt_scan: Scanning successfully started
    GW [00:00:00.627,349] <inf> bt_mgmt_scan: Creating connection to bonded device: F5:FD:57:29:5F:67 (random)
    GW [00:00:00.632,843] <inf> bt_mgmt: Connected: F5:FD:57:29:5F:67 (random)
    GW [00:00:00.632,873] <inf> main: Connection event. Num connections: 1
    GW [00:00:00.712,768] <inf> main: Security changed
    GW [00:00:00.764,373] <wrn> unicast_client: Got err: -61 from conn: 0x20004f08
    GW [00:00:00.764,831] <inf> bt_mgmt_scan: All bonded slots filled, will not accept new devices
    GW [00:00:00.766,113] <inf> bt_mgmt_scan: Local addr: 77:BB:07:16:AE:49 (random). May time out. Updates not printed
    GW [00:00:00.766,113] <inf> bt_mgmt_scan: Scanning successfully started
    GW [00:00:00.893,066] <inf> bt_vol_ctlr: VCS discover finished
    GW [00:00:01.050,689] <inf> bt_mgmt_scan: Creating connection to bonded device: F0:D2:8E:F5:33:C2 (random)
    GW [00:00:01.460,876] <inf> bt_mgmt: Connected: F0:D2:8E:F5:33:C2 (random)
    GW [00:00:01.460,906] <inf> main: Connection event. Num connections: 2
    GW [00:00:01.492,889] <inf> unicast_client: Discovered 1 sink endpoint(s) for device 0
    GW [00:00:01.602,722] <inf> main: Security changed
    GW [00:00:01.723,083] <wrn> unicast_client: Got err: -61 from conn: 0x20004ff0
    GW [00:00:01.963,043] <inf> bt_vol_ctlr: VCS discover finished
    GW [00:00:02.354,278] <inf> unicast_client: Discovered 1 source endpoint(s) for device 0
    GW [00:00:02.414,276] <inf> unicast_client: LEFT sink stream configured
    GW [00:00:02.414,306] <inf> le_audio: LC3 codec config for sink:
    GW [00:00:02.414,306] <inf> le_audio:   Frequency: 24000 Hz
    GW [00:00:02.414,306] <inf> le_audio:   Duration: 10000 us
    GW [00:00:02.414,337] <inf> le_audio:   Channel allocation: 0x3
    GW [00:00:02.414,337] <inf> le_audio:   Octets per frame: 60 (48000 bps)
    GW [00:00:02.414,337] <inf> le_audio:   Frames per SDU: 1
    GW [00:00:02.493,103] <inf> unicast_client: LEFT source stream configured
    GW [00:00:02.493,133] <inf> le_audio: LC3 codec config for source:
    GW [00:00:02.493,133] <inf> le_audio:   Frequency: 24000 Hz
    GW [00:00:02.493,164] <inf> le_audio:   Duration: 10000 us
    GW [00:00:02.493,164] <inf> le_audio:   Channel allocation: 0x1
    GW [00:00:02.493,164] <inf> le_audio:   Octets per frame: 60 (48000 bps)
    GW [00:00:02.493,164] <inf> le_audio:   Frames per SDU: 1
    GW [00:00:02.722,625] <inf> unicast_client: Discovered 1 sink endpoint(s) for device 1
    GW [00:00:03.173,767] <inf> unicast_client: Discovered 1 source endpoint(s) for device 1
    GW [00:00:03.502,838] <inf> unicast_client: Stream 0x200121c4 started
    GW [00:00:03.510,009] <inf> audio_usb: USB RX first data received.
    GW [00:00:03.683,410] <inf> unicast_client: Stream 0x200122c4 started
    GW [00:00:03.703,704] <inf> unicast_client: LEFT sink stream configured
    GW [00:00:03.703,735] <inf> le_audio: LC3 codec config for sink:
    GW [00:00:03.703,735] <inf> le_audio:   Frequency: 24000 Hz
    GW [00:00:03.703,735] <inf> le_audio:   Duration: 10000 us
    GW [00:00:03.703,735] <inf> le_audio:   Channel allocation: 0x3
    GW [00:00:03.703,765] <inf> le_audio:   Octets per frame: 60 (48000 bps)
    GW [00:00:03.703,765] <inf> le_audio:   Frames per SDU: 1
    GW [00:00:03.703,765] <wrn> unicast_client: Failed to stop streams: -16, use default PD in preset
    GW [00:00:03.703,796] <wrn> unicast_client: Presentation delay not set for LEFT device: -16
    GW [00:00:03.723,724] <inf> unicast_client: LEFT source stream configured
    GW [00:00:03.723,724] <inf> le_audio: LC3 codec config for source:
    GW [00:00:03.723,724] <inf> le_audio:   Frequency: 24000 Hz
    GW [00:00:03.723,754] <inf> le_audio:   Duration: 10000 us
    GW [00:00:03.723,754] <inf> le_audio:   Channel allocation: 0x1
    GW [00:00:03.723,754] <inf> le_audio:   Octets per frame: 60 (48000 bps)
    GW [00:00:03.723,754] <inf> le_audio:   Frames per SDU: 1
    GW [00:00:03.872,680] <inf> unicast_client: Stream 0x200123dc started
    GW [00:00:03.893,157] <inf> unicast_client: Stream 0x200124dc started
    GW [00:00:03.930,511] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 1
    GW [00:00:08.570,495] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 101
    GW [00:00:13.349,426] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 201
    GW [00:00:18.389,556] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 301
    GW [00:00:23.189,392] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 401
    GW [00:00:27.589,385] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 501
    GW [00:00:32.229,400] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 601
    GW [00:00:36.949,401] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 701
    GW [00:00:41.679,382] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 801
    GW [00:00:46.639,495] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 901
    GW [00:00:51.339,416] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 1001
    GW [00:00:56.159,393] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 1101
    GW [00:01:00.749,389] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 1201
    GW [00:01:05.689,392] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 1301
    GW [00:01:10.389,404] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 1401
    GW [00:01:15.309,539] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 1501
    GW [00:01:20.539,672] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 1601
    GW [00:01:25.609,405] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 1701
    GW [00:01:30.719,696] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 1801
    GW [00:01:35.719,665] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 1901
    GW [00:01:40.479,400] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 2001
    GW [00:01:45.399,719] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 2101
    GW [00:01:50.359,619] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 2201
    GW [00:01:55.369,750] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 2301
    GW [00:02:00.839,782] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 2401
    GW [00:02:06.339,447] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 2501
    GW [00:02:11.549,377] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 2601
    GW [00:02:16.719,451] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 2701
    GW [00:02:22.029,479] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 2801
    GW [00:02:27.319,396] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 2901
    GW [00:02:32.469,390] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 3001
    GW [00:02:37.449,401] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 3101
    GW [00:02:42.619,384] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 3201
    GW [00:02:47.639,465] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 3301
    GW [00:02:52.749,481] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 3401
    GW [00:02:57.949,401] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 3501
    GW [00:03:03.229,400] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 3601
    GW [00:03:08.389,404] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 3701
    GW [00:03:13.569,396] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 3801
    GW [00:03:18.420,501] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 3901
    GW [00:03:23.489,471] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 4001
    GW [00:03:28.899,383] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 4101
    GW [00:03:34.209,381] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 4201
    GW [00:03:39.309,387] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 4301
    GW [00:03:44.350,524] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 4401
    GW [00:03:48.949,432] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 4501
    GW [00:03:53.799,560] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 4601
    GW [00:03:58.679,382] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 4701
    GW [00:04:03.579,406] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 4801
    GW [00:04:08.389,373] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 4901
    GW [00:04:13.269,378] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 5001
    GW [00:04:18.200,500] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 5101
    GW [00:04:23.249,542] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 5201
    GW [00:04:28.329,376] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 5301
    GW [00:04:33.139,404] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 5401
    GW [00:04:37.999,389] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 5501
    GW [00:04:42.769,378] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 5601
    GW [00:04:47.639,404] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 5701
    GW [00:04:52.739,532] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 5801
    GW [00:04:58.009,399] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 5901
    GW [00:05:02.839,385] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 6001
    GW [00:05:07.719,390] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 6101
    GW [00:05:12.659,393] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 6201
    GW [00:05:17.329,376] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 6301
    GW [00:05:22.719,543] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 6401
    GW [00:05:27.989,379] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 6501
    GW [00:05:32.819,396] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 6601
    GW [00:05:37.469,390] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 6701
    GW [00:05:42.109,375] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 6801
    GW [00:05:46.609,405] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 6901
    GW [00:05:51.229,522] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 7001
    GW [00:05:56.069,396] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 7101
    GW [00:06:00.609,375] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 7201
    GW [00:06:05.449,401] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 7301
    GW [00:06:10.229,461] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 7401
    GW [00:06:14.989,379] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 7501
    GW [00:06:19.859,710] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 7601
    GW [00:06:24.699,676] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 7701
    GW [00:06:29.589,843] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 7801
    GW [00:06:34.629,699] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 7901
    GW [00:06:39.629,638] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 8001
    GW [00:06:44.479,553] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 8101
    GW [00:06:49.589,660] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 8201
    GW [00:06:54.449,401] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 8301
    GW [00:06:59.739,776] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 8401
    GW [00:07:04.879,455] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 8501
    GW [00:07:09.869,415] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 8601
    GW [00:07:14.469,451] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 8701
    GW [00:07:19.529,479] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 8801
    GW [00:07:24.349,395] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 8901
    GW [00:07:29.259,399] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 9001
    GW [00:07:34.029,388] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 9101
    GW [00:07:38.909,423] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 9201
    GW [00:07:43.069,427] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 9301
    GW [00:07:47.259,552] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 9401
    GW [00:07:53.706,573] <inf> audio_usb: USB TX first data sent.
    GW [00:08:04.819,396] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 9501
    GW [00:08:08.249,389] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 9601
    GW [00:08:11.459,442] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 9701
    GW [00:08:14.939,514] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 9801
    GW [00:08:18.109,405] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 9901
    GW [00:08:21.669,403] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 10001
    GW [00:08:25.259,399] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 10101
    GW [00:08:28.759,399] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 10201
    GW [00:08:32.149,383] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 10301
    GW [00:08:35.499,389] <wrn> le_audio_rx: BLE ISO RX overrun: Num: 10401
    

    *** Using Zephyr OS v3.7.99-0bc3393fb112 ***
    HR [00:00:00.276,885] <inf> board_version: Compatible board/HW version found: 1.0.0
    HR [00:00:00.309,143] <inf> fw_info: 
             nRF5340 Audio nRF5340 Audio DK cpuapp                      
             NCS base version: 2.8.0                            
             Cmake run : Fri Jan 03 19:31:25 2025
    HR [00:00:00.309,143] <inf> fw_info: ------- DEBUG BUILD -------
    HR [00:00:00.309,173] <inf> fw_info: HEADSET right device
    HR [00:00:00.378,906] <inf> bt_keys: SC LTK: 0xb589a7752caaa3535c4ca66003e0dbde
    HR [00:00:00.381,042] <inf> bt_mgmt_ctlr_cfg: Controller: SoftDevice: Version 6.0 (0x0e), Revision 8270
    HR [00:00:00.381,256] <inf> bt_mgmt: Local identity addr: F0:D2:8E:F5:33:C2 (random)
    HR [00:00:00.386,932] <inf> bt_mgmt_adv: Local addr: 58:9D:62:7D:93:2D (random)
    HR [00:00:00.387,023] <inf> bt_mgmt_adv: Adv directed to: D3:C8:9D:D1:BE:66 (random).
    HR [00:00:00.387,603] <inf> bt_mgmt_adv: Advertising successfully started
    HR [00:00:01.668,121] <inf> bt_mgmt: Directed adv timed out with no connection, reverting to normal adv
    HR [00:00:01.671,417] <inf> bt_mgmt_adv: Local addr: 6B:51:7A:41:F2:CA (random)
    HR [00:00:01.671,936] <inf> bt_mgmt_adv: Advertising successfully started
    HR [00:00:02.517,425] <inf> bt_mgmt: Connected: D3:C8:9D:D1:BE:66 (random)
    HR [00:00:02.517,456] <inf> main: Connection event. Num connections: 1
    HR [00:00:02.660,308] <inf> main: Security changed
    HR [00:00:02.660,522] <wrn> bt_gatt: Device is not subscribed to characteristic
    HR [00:00:02.660,522] <wrn> bt_pacs: PACS notify failed: -22
    HR [00:00:02.660,552] <wrn> bt_gatt: Device is not subscribed to characteristic
    HR [00:00:02.660,552] <wrn> bt_pacs: PACS notify failed: -22
    HR [00:00:03.630,645] <inf> bt_content_ctrl_media: Discovery of MCS finished
    HR [00:00:04.750,885] <inf> le_audio: LC3 codec config for sink:
    HR [00:00:04.750,915] <inf> le_audio:   Frequency: 24000 Hz
    HR [00:00:04.750,915] <inf> le_audio:   Duration: 10000 us
    HR [00:00:04.750,915] <inf> le_audio:   Channel allocation: 0x3
    HR [00:00:04.750,915] <inf> le_audio:   Octets per frame: 60 (48000 bps)
    HR [00:00:04.750,915] <inf> le_audio:   Frames per SDU: 1
    HR [00:00:04.770,843] <inf> le_audio: LC3 codec config for source:
    HR [00:00:04.770,843] <inf> le_audio:   Frequency: 24000 Hz
    HR [00:00:04.770,843] <inf> le_audio:   Duration: 10000 us
    HR [00:00:04.770,843] <inf> le_audio:   Channel allocation: 0x1
    HR [00:00:04.770,874] <inf> le_audio:   Octets per frame: 60 (48000 bps)
    HR [00:00:04.770,874] <inf> le_audio:   Frames per SDU: 1
    HR [00:00:04.791,412] <inf> main: Presentation delay 5000 us is set by initiator
    HR [00:00:04.791,442] <inf> main: Presentation delay 5000 us is set by initiator
    HR [00:00:04.903,472] <inf> unicast_server: Stream 0x200105f4 started
    HR [00:00:04.905,120] <wrn> le_audio_rx: Not in streaming state (1), thrown 1 packet(s)
    DAC L gain 112   
    ADC L gain 112   
    DAC R gain 112   
    ADC R gain 112   
    HR [00:00:04.935,211] <wrn> audio_datapath: I2S RX overrun. Single msg
    HR [00:00:04.939,178] <wrn> audio_datapath: Data received, total under-runs: 11
    HR [00:00:04.940,582] <inf> unicast_server: Stream 0x2001061c started
    HR [00:00:04.941,192] <wrn> audio_datapath: I2S RX continuing stream
    HR [00:00:04.946,197] <inf> audio_datapath: Drft comp state: CALIB
    HR [00:00:04.950,195] <wrn> audio_datapath: Data received, total under-runs: 12
    HR [00:00:05.046,203] <inf> audio_datapath: Drft comp state: OFFSET
    HR [00:00:05.421,051] <wrn> audio_datapath: Data received, total under-runs: 13
    HR [00:00:05.446,075] <inf> audio_datapath: Drft comp state: LOCKED
    HR [00:00:05.455,413] <inf> audio_datapath: Pres comp state: MEAS
    HR [00:00:05.565,277] <inf> audio_datapath: Pres comp state: WAIT
    HR [00:00:05.705,322] <inf> audio_datapath: Pres comp state: INIT
    HR [00:00:05.715,240] <inf> audio_datapath: Pres comp state: MEAS
    HR [00:00:05.825,225] <inf> audio_datapath: Pres comp state: LOCKED
    

  • Hi Abdulmohaimen,

    Abdulmohaimen said:
    Currently, when using the accelerated microphone signal while the headset is streaming sound, the microphone volume is too low. (Current setup i have CIS mode with some limitions -  accelerated microphone signal  and Channel disconncating as well as the LOW mic when the sound on headphones)

    Can you provide details about accelerated microphone signal? 
    Is recorded microphone signal on the same or on the other device?
    How much is the signal accelerated?
    Do you use the same sample rate for recording and playback?

    Best regards,
    Dejan

  • Hi Dejan,

    When I use the microphone to record a voice signal on my computer, the playback (of the microphone recorded signal) sounds faster than the original recording. This affects the signal quality, making it appear accelerated—roughly by a factor of 1.25 to 1.3 (an estimation).

    The microphone is connected to the DA7212 hardware codec. I haven’t modified the sample rate, so I assume it's the same for both recording and playback.

    Additionally, I measured the clock signal from the NRF DK and noticed:

    • MCLK: 3.471 MHz
    • BCLK: 1.536 MHz
    • WCLK: 48,000 Hz

    This is the set up i am using for the HW codec as salve setup:

      ret = da7212_write_reg(DA7212_PLL_CTRL, DA7212_PLL_EN_MASK | DA7212_PLL_SRM_EN_MASK |  DA7212_PLL_INDIV_2_10MHZ); 
         if(ret < 0)
         printk("da7212 write operation failed\n");
           // Set the frame length to 32.
         ret = da7212_write_reg(DA7212_DAI_CLK_MODE, DA7212_DAI_BCLKS_PER_WCLK_BCLK32 ); 
         if(ret < 0)
         printk("da7212 write operation failed\n");   
     
     
         // Enable Digital Audio Interface (DAI)
         ret = da7212_write_reg(DA7212_DAI_CTRL, DA7212_DAI_EN_MASK | DA7212_DAI_OE_MASK); 
         if(ret < 0)
         printk("da7212 write operation failed\n");
     
         
         ret = da7212_write_reg(DA7212_SR, DA7212_SR_48KHZ);
         if (ret < 0) printk("Sample rate configuration failed\n");


    Best regards,
    Abdulmohaimen

  • Hi Abdulmohaimen,

    Abdulmohaimen said:
    I have applied the modifications from the GitHub link and made changes to the hardware codec file to configure the codec. Additionally, I enabled the I2S configuration to utilize the external HW codec.

    Can you show all your modifications/changes and provide GitHub link?

    Best regards,
    Dejan

Related