nRF52840 the device not recognize,When reated a composite device for CDC and MicPhone

1.Created a composite device for CDC and MicPhone. When the registration of mic SOF is interrupted, the device may not recognize the issue

ret = app_usbd_audio_sof_interrupt_register(class_inst_mic, mic_sof_ev_handler);

static void mic_sof_ev_handler(uint16_t framecnt)
{
UNUSED_VARIABLE(framecnt);
// make sure we're in proper state (configured)
if (APP_USBD_STATE_Configured != app_usbd_core_state_get())
{
NRF_LOG_INFO("config error");
NRF_LOG_FLUSH();
return;
}

}

2.Not use app_usbd_audio_sof_interrupt_register to register mic sof, the device can be found in pc with micphone and cdc. However,  transfer is not fine with app_usbd_audio_class_tx_start, the data isn't complete and occur BUSY(ret = 17)

app_usbd_audio_class_tx_start(&m_app_audio_microphone.base, m_temp_buffer, sizeof(m_temp_buffer));

Parents
  • Hi luke.zheng,

    Am I right to understand that you are working on a USB composite device that serves as a microphone, but having different troubles depends on whether app_usbd_audio_sof_interrupt_register() is used or not.

    However, I am not clear what the issue is when app_usbd_audio_sof_interrupt_register() is used. Could you please explain in more details?

    Have you tried the USB Audio example?

    What version of the SDK are you using? Is there a reason you don't want to consider using the nRF Connect SDK instead? The nRF5 SDK is in maintenance mode.

    Hieu

  • Dear Hieu,

    1.However, I am not clear what the issue is when app_usbd_audio_sof_interrupt_register() is used. Could you please explain in more details?

    The device wouldn't found in the pc(win10),like Unrecognized device when i use app_usbd_audio_sof_interrupt_register .My composite device is cdc and mic.

    2.Have you tried the USB Audio example?

    I had a try when i add cdc example in usb_audio(nrf5_sdk_17.1.0_ddde560\examples\peripheral\usbd_audio\pca10056), the proble also occured.

    3.What version of the SDK are you using? Is there a reason you don't want to consider using the nRF Connect SDK instead? The nRF5 SDK is in maintenance mode.

    The SDK is nrf5_sdk_17.1.0_ddde560

    Thanks.

Reply
  • Dear Hieu,

    1.However, I am not clear what the issue is when app_usbd_audio_sof_interrupt_register() is used. Could you please explain in more details?

    The device wouldn't found in the pc(win10),like Unrecognized device when i use app_usbd_audio_sof_interrupt_register .My composite device is cdc and mic.

    2.Have you tried the USB Audio example?

    I had a try when i add cdc example in usb_audio(nrf5_sdk_17.1.0_ddde560\examples\peripheral\usbd_audio\pca10056), the proble also occured.

    3.What version of the SDK are you using? Is there a reason you don't want to consider using the nRF Connect SDK instead? The nRF5 SDK is in maintenance mode.

    The SDK is nrf5_sdk_17.1.0_ddde560

    Thanks.

Children
Related