Does the nrf5340 audio application can support the HID and USB sound card at the same time

Hello,

I have testd the HID example(USB HID sample) on the nrf5340 audio DK, and it can input and output data from the PC.

But now i want to add it to the nrf5340 audio application, so does the nrf5340 audio application can support the HID and USB sound card at the same time? Because we want to use some applications on PC to control the nrf5340 audio DK. For example, when i received the music  from the PC, I also can use the HID communication  to report or control something?

Can you help me to deal with it?

Thank you very much.

  • Hello,

    Not tested it, but at least conseptually it should be possible to configure an audio USB and HID USB endpoint at the same time in Zephyr. This can be achieved by using multiple USB classes with multiple instances. For instance, the Zephyr sample application USB HID and CDC ACM demonstrates the use of multiple USB classes with multiple instances, combining two HID instances and two CDC ACM instances.

    To support multiple endpoints you need to add the wanted class to your overlay file, and also add the corresponding CONFIG_* to your prj.conf.

    Kenneth

Related