nrf5340 audio dk usb input issue

I cannot get the nrf5340 audio dk kit to work from USB input properly. After a reset, it only works for a fraction of a second and audio stops. Has anyone run into a similar problem? Please see attached video.

Parents
  • Hello, and thanks for the video!

    I rarely get videoes describing the issue here on DevZone. 

    What NCS version are you using? For audio development I would recommend NCS versions <= 2.6.0.

    EDIT: I mean NCS versions >= 2.6.0.

    Regards,

    Elfving

  • Hi Elfving, I have been using 2.6.1. I will try 2.6.0 and report back.

  • assegid said:

    Oops, I thought you were recommending 2.6.0 and older. 

    Hehe understandably so, I see that I mistyped in my first response there. Sorry about that.

    Could you check the log from the gateway, and see if it blames this on anything in particular? 

    Regards,

    Elfving

  • While flashing or during operation? Can you outline the procedure to get the log during operation without using VS Code?

  • During operation. Use a serial terminal. I believe using it is mentioned a bit in this fundementals course.

    We have one in VSC and nRF Connect for Desktop, but you can use any other as well. If you are using windows I hear tera term is good, I use termite for some reason.

    If you are on linux, minicom is good.

    Regards,

    Elfving

  • It looks like I am experiencing the problem listed under 'Known issues'

    OCT-2154: USB audio interface does not work correctly on macOS

    Below are the logs from the terminals of the Gateway and the headset. It looks like a Log level of DBG would have had more details, but I did not know how change the LOG_LEVEL.   

    headset terminal below...

    *** Booting nRF Connect SDK 3758bcbfa5cd ***
    HR [00:00:00.267,486] <inf> board_version: Compatible board/HW version found: 1.0.0
    HR [00:00:00.319,702] <inf> fw_info: 
             nRF5340 Audio nRF5340 Audio DK cpuapp                      
             NCS base version: 2.6.1                            
             Cmake run : Mon Jul 08 19:25:55 2024
    HR [00:00:00.319,702] <inf> fw_info: ------- DEBUG BUILD -------
    HR [00:00:00.319,702] <inf> fw_info: HEADSET right device
    HR [00:00:00.332,336] <inf> bt_mgmt_ctlr_cfg: Controller: SoftDevice: Version 5.4 (0x0d), Revision 8591
    HR [00:00:00.332,550] <inf> bt_mgmt: Local identity addr: E3:F1:8B:EA:8D:53 (random)
    HR [00:00:00.334,503] <inf> bt_mgmt_scan: Local addr: E3:F1:8B:EA:8D:53 (random). May time out. Updates not printed
    HR [00:00:00.334,503] <inf> bt_mgmt_scan: Scanning successfully started
    HR [00:00:00.368,072] <inf> bt_mgmt_scan: Broadcast source NRF5340_BROADCASTER found, id: 0x919119
    HR [00:00:00.627,685] <inf> main: PA synced
    HR [00:00:00.627,929] <inf> broadcast_sink: Syncing to broadcast stream index 1
    HR [00:00:00.628,082] <inf> main: Presentation delay 10000 us is set
    HR [00:00:01.034,393] <inf> broadcast_sink: Stream index 1 started
    HR [00:00:01.034,393] <inf> broadcast_sink: Codec config for LC3:
    HR [00:00:01.034,393] <inf> broadcast_sink:     Frequency: 48000 Hz
    HR [00:00:01.034,393] <inf> broadcast_sink:     Frame Duration: 10000 us
    HR [00:00:01.034,393] <inf> broadcast_sink:     Octets per frame: 120 (96000 kbps)
    HR [00:00:01.034,393] <inf> broadcast_sink:     Frames per SDU: 1
    HR [00:00:01.034,423] <inf> broadcast_sink:     Channel allocation: 0x2
    HR [00:00:01.034,637] <wrn> le_audio_rx: Not in streaming state, throwing data: 1
    HR [00:00:01.035,430] <wrn> le_audio_rx: Not in streaming state, throwing data: 1
    HR [00:00:01.046,142] <inf> audio_datapath: Drft comp state: CALIB
    HR [00:00:01.047,119] <wrn> audio_datapath: Data received, total under-runs: 1
    HR [00:00:01.146,148] <inf> audio_datapath: Drft comp state: OFFSET
    HR [00:00:01.545,989] <inf> audio_datapath: Drft comp state: LOCKED
    HR [00:00:01.555,511] <inf> audio_datapath: Pres comp state: MEAS
    HR [00:00:01.665,496] <inf> audio_datapath: Pres comp state: WAIT
    HR [00:00:01.805,511] <inf> audio_datapath: Pres comp state: INIT
    HR [00:00:01.815,521] <inf> audio_datapath: Pres comp state: MEAS
    HR [00:00:01.925,506] <inf> audio_datapath: Pres comp state: LOCKED

    gateway terminal below...

    *** Booting nRF Connect SDK 3758bcbfa5cd ***
    GW [00:00:00.267,700] <inf> board_version: Compatible board/HW version found: 1.0.0
    GW [00:00:00.292,144] <inf> audio_usb: Ready for USB host to send/receive.
    GW [00:00:00.292,175] <inf> fw_info: 
             nRF5340 Audio nRF5340 Audio DK cpuapp                      
             NCS base version: 2.6.1                            
             Cmake run : Sun Jul 14 21:02:34 2024
    GW [00:00:00.292,175] <inf> fw_info: ------- DEBUG BUILD -------
    GW [00:00:00.292,175] <inf> fw_info: Compiled for GATEWAY device
    GW [00:00:00.302,764] <inf> bt_mgmt_ctlr_cfg: Controller: SoftDevice: Version 5.4 (0x0d), Revision 8591
    GW [00:00:00.302,947] <inf> bt_mgmt: Local identity addr: D8:71:EF:B5:A4:F7 (random)
    GW [00:00:00.303,283] <inf> broadcast_source: Enabling broadcast_source NRF5340_BROADCASTER
    GW [00:00:00.307,128] <inf> bt_mgmt_adv: Local addr: 1E:3B:90:E2:1F:64 (random)
    GW [00:00:00.309,234] <inf> main: Ext adv ready
    GW [00:00:00.309,844] <inf> bt_mgmt_adv: Advertising successfully started
    GW [00:00:00.317,474] <inf> broadcast_source: Broadcast source 0x2000c53c started
    GW [00:00:00.317,962] <inf> broadcast_source: Broadcast source 0x2000c564 started
    GW [00:00:03.409,393] <inf> audio_usb: USB RX first data received.

    Can you tell me the config line to add to the prj.conf file to change the LOG_LEVEL to DBG?

  • Hi,

    assegid said:

    The only change I made is to the prj.conf file to enable and disable analog audio input using...

    #CONFIG_AUDIO_SOURCE_I2S=y

    In your prj.conf you should have CONFIG_AUDIO_SOURCE_USB=y. Can you check if you set this correctly?

    assegid said:
    Can you tell me the config line to add to the prj.conf file to change the LOG_LEVEL to DBG?

    Is CONFIG_BT_LOG_LEVEL_DBG that you want to use?

    What did you pause (recording on the computer, or device)?
    Known issue OCT-2154 is about intermittent audio stream on the headset side. Do you hear intermittent audio on the headset device, or you do not hear it at all after the reset? Does loss of audio stream occur sporadically as mentioned in OCT-2154?

    Best regards,
    Dejan

Reply
  • Hi,

    assegid said:

    The only change I made is to the prj.conf file to enable and disable analog audio input using...

    #CONFIG_AUDIO_SOURCE_I2S=y

    In your prj.conf you should have CONFIG_AUDIO_SOURCE_USB=y. Can you check if you set this correctly?

    assegid said:
    Can you tell me the config line to add to the prj.conf file to change the LOG_LEVEL to DBG?

    Is CONFIG_BT_LOG_LEVEL_DBG that you want to use?

    What did you pause (recording on the computer, or device)?
    Known issue OCT-2154 is about intermittent audio stream on the headset side. Do you hear intermittent audio on the headset device, or you do not hear it at all after the reset? Does loss of audio stream occur sporadically as mentioned in OCT-2154?

    Best regards,
    Dejan

Children
No Data
Related