pic32_mzef_curiosity_v2:仅USB设备(音频+ CDC)不起作用

发布于 2025-02-01 14:39:09 字数 12432 浏览 2 评论 0原文

这是我在USB环境中的第一次,因此,任何意见都得到了高度赞赏。

我的设置:

-pic32 me好奇心v2板 + AK4954编解码器模块,使用mikro Bus 2使用mplab x 5v5 iDe在Harmony 3

-My当前项目代码/示例代码/ WireShark数据 下https://artagroup-my.sharepoint.com/:f:/g/personal/gokulnath_arcot-ramanandan_comufrance_com/emj0e83migjktbb1huigtnybaqs43xvfnxvfncvfncq qcq0xxd7m9

ztta微芯片音频& CDC示例是功能性

所需结果:(仅USB设备模式)

我想模仿USB耳机(从Android电话上播放YT视频的音频) + CDC(自定义数据发送到Android上的Serial USB终端应用程序按按钮按下)

我的进度:

我使用了默认的微芯片功能音频示例&将CDC示例集成到其中。 我的USB复合设备正确列举了我的PC(设备管理器)&然后,

“This device cannot start. (Code 10)” on windows I use a software named “UsbTreeView” I checked it and It’s telling me like this:
 
----------------- Device Qualifier Descriptor -----------------
Error : ERROR_GEN_FAILURE

如果我很好地了解USB概念 - > IAD(接口 协会描述符)也准确地声明了。但是我有一个 对配置描述符的怀疑。

在Windows中,它显示了COM端口(CDC正确列举了 音频处于错误状态),但是当我尝试使用putty时,没有数据是 流过,但我可以看到董事会发送的数据 按钮按下Wireshark。

我还将Wireshark日志附加了,就像按下按钮时,我可以看到从设备发送到主机的中断 +数据。 (但是带有此错误:irp usbd_status:usbd_status_canceled(0xc0010000))

然后,我将其连接到我的Android Phone&音频功能性& CDC终端站“控制转移失败”

我还将其连接到Ubuntu PC&音频功能正常 & CDC终端TTYACM0“终端打开失败” App“屏幕”

设备描述符,

Information for device USB Headset PIC32MZEF AUD + CDC (VID=0x04D8 PID=0x0065):

------------------------------
Connection Information:
------------------------------
Device current bus speed: FullSpeed
Device supports USB 1.1 specification
Device supports USB 2.0 specification
Device address: 0x001A
Current configuration value: 0x01
Number of open pipes: 3


------------------------------
Device Descriptor:
------------------------------
0x12    bLength
0x01    bDescriptorType
0x0200  bcdUSB
0x00    bDeviceClass      
0x00    bDeviceSubClass   
0x00    bDeviceProtocol   
0x40    bMaxPacketSize0   (64 bytes)
0x04D8  idVendor
0x0065  idProduct
0x0100  bcdDevice
0x01    iManufacturer   "Microchip Technology Inc."
0x02    iProduct        "USB Headset PIC32MZEF AUD + CDC"
0x03    iSerialNumber   "12345678999"
0x01    bNumConfigurations


-------------------------
Configuration Descriptor:
-------------------------
0x09    bLength
0x02    bDescriptorType
0x012C  wTotalLength   (300 bytes)
0x05    bNumInterfaces
0x01    bConfigurationValue
0x00    iConfiguration
0xC0    bmAttributes   (Self-powered Device)
0x32    bMaxPower      (100 mA)

Interface Descriptor:
------------------------------
0x09    bLength
0x04    bDescriptorType
0x00    bInterfaceNumber
0x00    bAlternateSetting
0x00    bNumEndPoints
0x01    bInterfaceClass      (Audio Device Class)
0x01    bInterfaceSubClass   (Audio Control Interface)
0x00    bInterfaceProtocol   (Audio Protocol undefined)
0x00    iInterface

AC Interface Header Descriptor:
------------------------------
0x0A    bLength
0x24    bDescriptorType
0x01    bDescriptorSubtype
0x0100  bcdADC
0x0064  wTotalLength   (100 bytes)
0x02    bInCollection
0x01    baInterfaceNr(1)
0x02    baInterfaceNr(2)

AC Input Terminal Descriptor:
------------------------------
0x0C    bLength
0x24    bDescriptorType
0x02    bDescriptorSubtype
0x01    bTerminalID
0x0101  wTerminalType   (USB Streaming)
0x00    bAssocTerminal
0x02    bNrChannels   (2 channels)
0x0003  wChannelConfig
0x00    iChannelNames
0x00    iTerminal

AC Input Terminal Descriptor:
------------------------------
0x0C    bLength
0x24    bDescriptorType
0x02    bDescriptorSubtype
0x04    bTerminalID
0x0201  wTerminalType   (Microphone)
0x00    bAssocTerminal
0x01    bNrChannels   (1 channels)
0x0004  wChannelConfig
0x00    iChannelNames
0x00    iTerminal

AC Feature Unit Descriptor:
------------------------------
0x0D    bLength
0x24    bDescriptorType
0x06    bDescriptorSubtype
0x02    bUnitID
0x08    bSourceID
0x02    bControlSize
bmaControls: 
 0x01   Channel(0) - Mute
 0x00   Channel(1)
 0x00   Channel(2)
0x00    iFeature


AC Feature Unit Descriptor:
------------------------------
0x0B    bLength
0x24    bDescriptorType
0x06    bDescriptorSubtype
0x05    bUnitID
0x04    bSourceID
0x02    bControlSize
bmaControls: 
 0x01   Channel(0) - Mute
 0x00   Channel(1)
0x00    iFeature


AC Feature Unit Descriptor:
------------------------------
0x0B    bLength
0x24    bDescriptorType
0x06    bDescriptorSubtype
0x07    bUnitID
0x04    bSourceID
0x02    bControlSize
bmaControls: 
 0x01   Channel(0) - Mute
 0x00   Channel(1)
0x00    iFeature


AC Mixer Unit Descriptor:
------------------------------
0x0D    bLength
0x24    bDescriptorType
0x04    bDescriptorSubtype
0x08    bUnitID
0x02    bBrInPins
0x01    baSourceID(1)
0x07    baSourceID(2)
0x02    bNrChannels
0x0003  wChannelConfig
0x00    iChannelNames
bmControls:
0x00 
0x00    iMixer

AC Output Terminal Descriptor:
------------------------------
0x09    bLength
0x24    bDescriptorType
0x03    bDescriptorSubtype
0x03    bTerminalID
0x0302  wTerminalType   (Headphones)
0x00    bAssocTerminal
0x02    bSourceID
0x00    iTerminal

AC Output Terminal Descriptor:
------------------------------
0x09    bLength
0x24    bDescriptorType
0x03    bDescriptorSubtype
0x06    bTerminalID
0x0101  wTerminalType   (USB Streaming)
0x00    bAssocTerminal
0x05    bSourceID
0x00    iTerminal

Interface Descriptor:
------------------------------
0x09    bLength
0x04    bDescriptorType
0x01    bInterfaceNumber
0x00    bAlternateSetting
0x00    bNumEndPoints
0x01    bInterfaceClass      (Audio Device Class)
0x02    bInterfaceSubClass   (Audio Streaming Interface)
0x00    bInterfaceProtocol   (Audio Protocol undefined)
0x00    iInterface

Interface Descriptor:
------------------------------
0x09    bLength
0x04    bDescriptorType
0x01    bInterfaceNumber
0x01    bAlternateSetting
0x01    bNumEndPoints
0x01    bInterfaceClass      (Audio Device Class)
0x02    bInterfaceSubClass   (Audio Streaming Interface)
0x00    bInterfaceProtocol   (Audio Protocol undefined)
0x00    iInterface

AS Interface Descriptor:
------------------------------
0x07    bLength
0x24    bDescriptorType
0x01    bDescriptorSubtype
0x01    bTerminalLink
0x01    bDelay
0x0001  wFormatTag   (PCM)

AS Format Type 1 Descriptor:
------------------------------
0x11    bLength
0x24    bDescriptorType
0x02    bDescriptorSubtype
0x01    bFormatType   (FORMAT_TYPE_1)
0x02    bNrChannels   (2 channels)
0x02    bSubframeSize
0x10    bBitResolution   (16 bits per sample)
0x03    bSamFreqType   (Discrete sampling frequencies)
0x003E80    tSamFreq(1)   (16000 Hz)
0x007D00    tSamFreq(2)   (32000 Hz)
0x00BB80    tSamFreq(3)   (48000 Hz)

Endpoint Descriptor (Audio/MIDI 1.0):
------------------------------
0x09    bLength
0x05    bDescriptorType
0x01    bEndpointAddress  (OUT endpoint 1)
0x09    bmAttributes      (Transfer: Isochronous / Synch: Adaptive / Usage: Data)
0x00C0  wMaxPacketSize    (1 x 192 bytes)
0x01    bInterval         (1 frames)
0x00    bRefresh
0x00    bSynchAddress

AS Isochronous Data Endpoint Descriptor:
------------------------------
0x07    bLength
0x25    bDescriptorType
0x01    bDescriptorSubtype
0x01    bmAttributes   (Sampling Frequency)
0x00    bLockDelayUnits   (undefined)
0x0000  wLockDelay

Interface Descriptor:
------------------------------
0x09    bLength
0x04    bDescriptorType
0x02    bInterfaceNumber
0x00    bAlternateSetting
0x00    bNumEndPoints
0x01    bInterfaceClass      (Audio Device Class)
0x02    bInterfaceSubClass   (Audio Streaming Interface)
0x00    bInterfaceProtocol   (Audio Protocol undefined)
0x00    iInterface

Interface Descriptor:
------------------------------
0x09    bLength
0x04    bDescriptorType
0x02    bInterfaceNumber
0x01    bAlternateSetting
0x01    bNumEndPoints
0x01    bInterfaceClass      (Audio Device Class)
0x02    bInterfaceSubClass   (Audio Streaming Interface)
0x00    bInterfaceProtocol   (Audio Protocol undefined)
0x00    iInterface

AS Interface Descriptor:
------------------------------
0x07    bLength
0x24    bDescriptorType
0x01    bDescriptorSubtype
0x06    bTerminalLink
0x00    bDelay
0x0001  wFormatTag   (PCM)

AS Format Type 1 Descriptor:
------------------------------
0x11    bLength
0x24    bDescriptorType
0x02    bDescriptorSubtype
0x01    bFormatType   (FORMAT_TYPE_1)
0x01    bNrChannels   (1 channels)
0x02    bSubframeSize
0x10    bBitResolution   (16 bits per sample)
0x03    bSamFreqType   (Discrete sampling frequencies)
0x003E80    tSamFreq(1)   (16000 Hz)
0x007D00    tSamFreq(2)   (32000 Hz)
0x00BB80    tSamFreq(3)   (48000 Hz)

Endpoint Descriptor (Audio/MIDI 1.0):
------------------------------
0x09    bLength
0x05    bDescriptorType
0x82    bEndpointAddress  (IN endpoint 2)
0x0D    bmAttributes      (Transfer: Isochronous / Synch: Synchronous / Usage: Data)
0x0060  wMaxPacketSize    (1 x 96 bytes)
0x01    bInterval         (1 frames)
0x00    bRefresh
0x00    bSynchAddress

AS Isochronous Data Endpoint Descriptor:
------------------------------
0x07    bLength
0x25    bDescriptorType
0x01    bDescriptorSubtype
0x01    bmAttributes   (Sampling Frequency)
0x00    bLockDelayUnits   (undefined)
0x0000  wLockDelay

Interface Association Descriptor:
------------------------------
0x08    bLength
0x0B    bDescriptorType
0x03    bFirstInterface
0x02    bInterfaceCount
0x02    bFunctionClass      (Communication Device Class)
0x02    bFunctionSubClass   (Abstract Control Model - ACM)
0x01    bFunctionProtocol   (ITU-T V.250)
0x00    iFunction

Interface Descriptor:
------------------------------
0x09    bLength
0x04    bDescriptorType
0x03    bInterfaceNumber
0x00    bAlternateSetting
0x01    bNumEndPoints
0x02    bInterfaceClass      (Communication Device Class)
0x02    bInterfaceSubClass   (Abstract Control Model - ACM)
0x01    bInterfaceProtocol   (ITU-T V.250)
0x00    iInterface

CDC Header Functional Descriptor:
------------------------------
0x05    bFunctionalLength
0x24    bDescriptorType
0x00    bDescriptorSubtype
0x0120  bcdCDC

CDC Abstract Control Management Functional Descriptor:
------------------------------
0x04    bFunctionalLength
0x24    bDescriptorType
0x02    bDescriptorSubtype
0x02    bmCapabilities

CDC Union Functional Descriptor:
------------------------------
0x05    bFunctionalLength
0x24    bDescriptorType
0x06    bDescriptorSubtype
0x03    bControlInterface
0x04    bSubordinateInterface(0)

CDC Call Management Functional Descriptor:
------------------------------
0x05    bFunctionalLength
0x24    bDescriptorType
0x01    bDescriptorSubtype
0x00    bmCapabilities
0x04    bDataInterface

Endpoint Descriptor:
------------------------------
0x07    bLength
0x05    bDescriptorType
0x83    bEndpointAddress  (IN endpoint 3)
0x03    bmAttributes      (Transfer: Interrupt / Synch: None / Usage: Data)
0x0010  wMaxPacketSize    (1 x 16 bytes)
0x02    bInterval         (2 frames)

Interface Descriptor:
------------------------------
0x09    bLength
0x04    bDescriptorType
0x04    bInterfaceNumber
0x00    bAlternateSetting
0x02    bNumEndPoints
0x0A    bInterfaceClass      (CDC Data)
0x00    bInterfaceSubClass   
0x00    bInterfaceProtocol   
0x00    iInterface

Endpoint Descriptor:
------------------------------
0x07    bLength
0x05    bDescriptorType
0x04    bEndpointAddress  (OUT endpoint 4)
0x02    bmAttributes      (Transfer: Bulk / Synch: None / Usage: Data)
0x0040  wMaxPacketSize    (64 bytes)
0x00    bInterval         

Endpoint Descriptor:
------------------------------
0x07    bLength
0x05    bDescriptorType
0x84    bEndpointAddress  (IN endpoint 4)
0x02    bmAttributes      (Transfer: Bulk / Synch: None / Usage: Data)
0x0040  wMaxPacketSize    (64 bytes)
0x00    bInterval         

Microsoft OS Descriptor is not available. Error code: 0x0000001F


--------------------------------
String Descriptor Table
--------------------------------
Index  LANGID  String
0x00   0x0000  0x0409 
0x01   0x0409  "Microchip Technology Inc."
0x02   0x0409  "USB Headset PIC32MZEF AUD + CDC"
0x03   0x0409  "12345678999"

------------------------------

Connection path for device: 
USB xHCI Compliant Host Controller
Root Hub
Generic USB Hub
Generic USB Hub
USB Headset PIC32MZEF AUD + CDC (VID=0x04D8 PID=0x0065) Port: 1

Running on: Windows 10 or greater (Build Version 19044)

Brought to you by TDD v2.17.0, Feb 23 2021, 14:04:02

请让我知道可能的解决方案&我应该更多地关注哪个领域?

感谢您的时间。我真的很感谢它

有美好的一天

This is the first time for me in a USB environment hence any input is highly appreciated.

My Setup:

-Pic32 ME EF curiosity v2 board + AK4954 Codec Module attached to mikro Bus 2 using Mplab x 5V5 IDE under Harmony 3

-My current project code/ example codes / Wireshark data WIP here

-default microchip audio & cdc examples are functional

Desired result:(USB Device mode only)

I would like to emulate USB headphones (Audio playing from YT video on android phone) + CDC (custom data sent to serial USB terminal app on Android upon button press)

My progress:

I've used the default Microchip functional audio example & integrated the CDC example into it.
My USB composite device is enumerated correctly into my PC (device manager) & then I'm receiving

“This device cannot start. (Code 10)” on windows I use a software named “UsbTreeView” I checked it and It’s telling me like this:
 
----------------- Device Qualifier Descriptor -----------------
Error : ERROR_GEN_FAILURE

if I’ve understood the USB concept well -> The IAD(Interface
association descriptor) is also declared accurately. but I'm having a
doubt on configuration descriptors.

In windows, it shows The com port(CDC is enumerated correctly but the
audio is in an error state) but when I tried using putty no data is
flowing through but I could see the data sent from the board on
Wireshark upon button press.

I've also attached the Wireshark log as when I press the button I can see the interrupt + data sent from the device to the host. (but with this error:IRP USBD_STATUS: USBD_STATUS_CANCELED (0xc0010000))

I then connected this to my android phone & the audio is functional &
CDC terminal station "control transfer failed"

I also connected this to UBUNTU PC & the audio is functional properly
& CDC terminal TTYACM0 "Terminal open failed " by the app "Screen"

Device Descriptors

Information for device USB Headset PIC32MZEF AUD + CDC (VID=0x04D8 PID=0x0065):

------------------------------
Connection Information:
------------------------------
Device current bus speed: FullSpeed
Device supports USB 1.1 specification
Device supports USB 2.0 specification
Device address: 0x001A
Current configuration value: 0x01
Number of open pipes: 3


------------------------------
Device Descriptor:
------------------------------
0x12    bLength
0x01    bDescriptorType
0x0200  bcdUSB
0x00    bDeviceClass      
0x00    bDeviceSubClass   
0x00    bDeviceProtocol   
0x40    bMaxPacketSize0   (64 bytes)
0x04D8  idVendor
0x0065  idProduct
0x0100  bcdDevice
0x01    iManufacturer   "Microchip Technology Inc."
0x02    iProduct        "USB Headset PIC32MZEF AUD + CDC"
0x03    iSerialNumber   "12345678999"
0x01    bNumConfigurations


-------------------------
Configuration Descriptor:
-------------------------
0x09    bLength
0x02    bDescriptorType
0x012C  wTotalLength   (300 bytes)
0x05    bNumInterfaces
0x01    bConfigurationValue
0x00    iConfiguration
0xC0    bmAttributes   (Self-powered Device)
0x32    bMaxPower      (100 mA)

Interface Descriptor:
------------------------------
0x09    bLength
0x04    bDescriptorType
0x00    bInterfaceNumber
0x00    bAlternateSetting
0x00    bNumEndPoints
0x01    bInterfaceClass      (Audio Device Class)
0x01    bInterfaceSubClass   (Audio Control Interface)
0x00    bInterfaceProtocol   (Audio Protocol undefined)
0x00    iInterface

AC Interface Header Descriptor:
------------------------------
0x0A    bLength
0x24    bDescriptorType
0x01    bDescriptorSubtype
0x0100  bcdADC
0x0064  wTotalLength   (100 bytes)
0x02    bInCollection
0x01    baInterfaceNr(1)
0x02    baInterfaceNr(2)

AC Input Terminal Descriptor:
------------------------------
0x0C    bLength
0x24    bDescriptorType
0x02    bDescriptorSubtype
0x01    bTerminalID
0x0101  wTerminalType   (USB Streaming)
0x00    bAssocTerminal
0x02    bNrChannels   (2 channels)
0x0003  wChannelConfig
0x00    iChannelNames
0x00    iTerminal

AC Input Terminal Descriptor:
------------------------------
0x0C    bLength
0x24    bDescriptorType
0x02    bDescriptorSubtype
0x04    bTerminalID
0x0201  wTerminalType   (Microphone)
0x00    bAssocTerminal
0x01    bNrChannels   (1 channels)
0x0004  wChannelConfig
0x00    iChannelNames
0x00    iTerminal

AC Feature Unit Descriptor:
------------------------------
0x0D    bLength
0x24    bDescriptorType
0x06    bDescriptorSubtype
0x02    bUnitID
0x08    bSourceID
0x02    bControlSize
bmaControls: 
 0x01   Channel(0) - Mute
 0x00   Channel(1)
 0x00   Channel(2)
0x00    iFeature


AC Feature Unit Descriptor:
------------------------------
0x0B    bLength
0x24    bDescriptorType
0x06    bDescriptorSubtype
0x05    bUnitID
0x04    bSourceID
0x02    bControlSize
bmaControls: 
 0x01   Channel(0) - Mute
 0x00   Channel(1)
0x00    iFeature


AC Feature Unit Descriptor:
------------------------------
0x0B    bLength
0x24    bDescriptorType
0x06    bDescriptorSubtype
0x07    bUnitID
0x04    bSourceID
0x02    bControlSize
bmaControls: 
 0x01   Channel(0) - Mute
 0x00   Channel(1)
0x00    iFeature


AC Mixer Unit Descriptor:
------------------------------
0x0D    bLength
0x24    bDescriptorType
0x04    bDescriptorSubtype
0x08    bUnitID
0x02    bBrInPins
0x01    baSourceID(1)
0x07    baSourceID(2)
0x02    bNrChannels
0x0003  wChannelConfig
0x00    iChannelNames
bmControls:
0x00 
0x00    iMixer

AC Output Terminal Descriptor:
------------------------------
0x09    bLength
0x24    bDescriptorType
0x03    bDescriptorSubtype
0x03    bTerminalID
0x0302  wTerminalType   (Headphones)
0x00    bAssocTerminal
0x02    bSourceID
0x00    iTerminal

AC Output Terminal Descriptor:
------------------------------
0x09    bLength
0x24    bDescriptorType
0x03    bDescriptorSubtype
0x06    bTerminalID
0x0101  wTerminalType   (USB Streaming)
0x00    bAssocTerminal
0x05    bSourceID
0x00    iTerminal

Interface Descriptor:
------------------------------
0x09    bLength
0x04    bDescriptorType
0x01    bInterfaceNumber
0x00    bAlternateSetting
0x00    bNumEndPoints
0x01    bInterfaceClass      (Audio Device Class)
0x02    bInterfaceSubClass   (Audio Streaming Interface)
0x00    bInterfaceProtocol   (Audio Protocol undefined)
0x00    iInterface

Interface Descriptor:
------------------------------
0x09    bLength
0x04    bDescriptorType
0x01    bInterfaceNumber
0x01    bAlternateSetting
0x01    bNumEndPoints
0x01    bInterfaceClass      (Audio Device Class)
0x02    bInterfaceSubClass   (Audio Streaming Interface)
0x00    bInterfaceProtocol   (Audio Protocol undefined)
0x00    iInterface

AS Interface Descriptor:
------------------------------
0x07    bLength
0x24    bDescriptorType
0x01    bDescriptorSubtype
0x01    bTerminalLink
0x01    bDelay
0x0001  wFormatTag   (PCM)

AS Format Type 1 Descriptor:
------------------------------
0x11    bLength
0x24    bDescriptorType
0x02    bDescriptorSubtype
0x01    bFormatType   (FORMAT_TYPE_1)
0x02    bNrChannels   (2 channels)
0x02    bSubframeSize
0x10    bBitResolution   (16 bits per sample)
0x03    bSamFreqType   (Discrete sampling frequencies)
0x003E80    tSamFreq(1)   (16000 Hz)
0x007D00    tSamFreq(2)   (32000 Hz)
0x00BB80    tSamFreq(3)   (48000 Hz)

Endpoint Descriptor (Audio/MIDI 1.0):
------------------------------
0x09    bLength
0x05    bDescriptorType
0x01    bEndpointAddress  (OUT endpoint 1)
0x09    bmAttributes      (Transfer: Isochronous / Synch: Adaptive / Usage: Data)
0x00C0  wMaxPacketSize    (1 x 192 bytes)
0x01    bInterval         (1 frames)
0x00    bRefresh
0x00    bSynchAddress

AS Isochronous Data Endpoint Descriptor:
------------------------------
0x07    bLength
0x25    bDescriptorType
0x01    bDescriptorSubtype
0x01    bmAttributes   (Sampling Frequency)
0x00    bLockDelayUnits   (undefined)
0x0000  wLockDelay

Interface Descriptor:
------------------------------
0x09    bLength
0x04    bDescriptorType
0x02    bInterfaceNumber
0x00    bAlternateSetting
0x00    bNumEndPoints
0x01    bInterfaceClass      (Audio Device Class)
0x02    bInterfaceSubClass   (Audio Streaming Interface)
0x00    bInterfaceProtocol   (Audio Protocol undefined)
0x00    iInterface

Interface Descriptor:
------------------------------
0x09    bLength
0x04    bDescriptorType
0x02    bInterfaceNumber
0x01    bAlternateSetting
0x01    bNumEndPoints
0x01    bInterfaceClass      (Audio Device Class)
0x02    bInterfaceSubClass   (Audio Streaming Interface)
0x00    bInterfaceProtocol   (Audio Protocol undefined)
0x00    iInterface

AS Interface Descriptor:
------------------------------
0x07    bLength
0x24    bDescriptorType
0x01    bDescriptorSubtype
0x06    bTerminalLink
0x00    bDelay
0x0001  wFormatTag   (PCM)

AS Format Type 1 Descriptor:
------------------------------
0x11    bLength
0x24    bDescriptorType
0x02    bDescriptorSubtype
0x01    bFormatType   (FORMAT_TYPE_1)
0x01    bNrChannels   (1 channels)
0x02    bSubframeSize
0x10    bBitResolution   (16 bits per sample)
0x03    bSamFreqType   (Discrete sampling frequencies)
0x003E80    tSamFreq(1)   (16000 Hz)
0x007D00    tSamFreq(2)   (32000 Hz)
0x00BB80    tSamFreq(3)   (48000 Hz)

Endpoint Descriptor (Audio/MIDI 1.0):
------------------------------
0x09    bLength
0x05    bDescriptorType
0x82    bEndpointAddress  (IN endpoint 2)
0x0D    bmAttributes      (Transfer: Isochronous / Synch: Synchronous / Usage: Data)
0x0060  wMaxPacketSize    (1 x 96 bytes)
0x01    bInterval         (1 frames)
0x00    bRefresh
0x00    bSynchAddress

AS Isochronous Data Endpoint Descriptor:
------------------------------
0x07    bLength
0x25    bDescriptorType
0x01    bDescriptorSubtype
0x01    bmAttributes   (Sampling Frequency)
0x00    bLockDelayUnits   (undefined)
0x0000  wLockDelay

Interface Association Descriptor:
------------------------------
0x08    bLength
0x0B    bDescriptorType
0x03    bFirstInterface
0x02    bInterfaceCount
0x02    bFunctionClass      (Communication Device Class)
0x02    bFunctionSubClass   (Abstract Control Model - ACM)
0x01    bFunctionProtocol   (ITU-T V.250)
0x00    iFunction

Interface Descriptor:
------------------------------
0x09    bLength
0x04    bDescriptorType
0x03    bInterfaceNumber
0x00    bAlternateSetting
0x01    bNumEndPoints
0x02    bInterfaceClass      (Communication Device Class)
0x02    bInterfaceSubClass   (Abstract Control Model - ACM)
0x01    bInterfaceProtocol   (ITU-T V.250)
0x00    iInterface

CDC Header Functional Descriptor:
------------------------------
0x05    bFunctionalLength
0x24    bDescriptorType
0x00    bDescriptorSubtype
0x0120  bcdCDC

CDC Abstract Control Management Functional Descriptor:
------------------------------
0x04    bFunctionalLength
0x24    bDescriptorType
0x02    bDescriptorSubtype
0x02    bmCapabilities

CDC Union Functional Descriptor:
------------------------------
0x05    bFunctionalLength
0x24    bDescriptorType
0x06    bDescriptorSubtype
0x03    bControlInterface
0x04    bSubordinateInterface(0)

CDC Call Management Functional Descriptor:
------------------------------
0x05    bFunctionalLength
0x24    bDescriptorType
0x01    bDescriptorSubtype
0x00    bmCapabilities
0x04    bDataInterface

Endpoint Descriptor:
------------------------------
0x07    bLength
0x05    bDescriptorType
0x83    bEndpointAddress  (IN endpoint 3)
0x03    bmAttributes      (Transfer: Interrupt / Synch: None / Usage: Data)
0x0010  wMaxPacketSize    (1 x 16 bytes)
0x02    bInterval         (2 frames)

Interface Descriptor:
------------------------------
0x09    bLength
0x04    bDescriptorType
0x04    bInterfaceNumber
0x00    bAlternateSetting
0x02    bNumEndPoints
0x0A    bInterfaceClass      (CDC Data)
0x00    bInterfaceSubClass   
0x00    bInterfaceProtocol   
0x00    iInterface

Endpoint Descriptor:
------------------------------
0x07    bLength
0x05    bDescriptorType
0x04    bEndpointAddress  (OUT endpoint 4)
0x02    bmAttributes      (Transfer: Bulk / Synch: None / Usage: Data)
0x0040  wMaxPacketSize    (64 bytes)
0x00    bInterval         

Endpoint Descriptor:
------------------------------
0x07    bLength
0x05    bDescriptorType
0x84    bEndpointAddress  (IN endpoint 4)
0x02    bmAttributes      (Transfer: Bulk / Synch: None / Usage: Data)
0x0040  wMaxPacketSize    (64 bytes)
0x00    bInterval         

Microsoft OS Descriptor is not available. Error code: 0x0000001F


--------------------------------
String Descriptor Table
--------------------------------
Index  LANGID  String
0x00   0x0000  0x0409 
0x01   0x0409  "Microchip Technology Inc."
0x02   0x0409  "USB Headset PIC32MZEF AUD + CDC"
0x03   0x0409  "12345678999"

------------------------------

Connection path for device: 
USB xHCI Compliant Host Controller
Root Hub
Generic USB Hub
Generic USB Hub
USB Headset PIC32MZEF AUD + CDC (VID=0x04D8 PID=0x0065) Port: 1

Running on: Windows 10 or greater (Build Version 19044)

Brought to you by TDD v2.17.0, Feb 23 2021, 14:04:02

Please let me know the possible solutions & which area should I focus more on?

Thanks for your time. I really appreciate it

Have a good day

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文