1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > USB各类设备描述符(usb device enumeration descriptors)

USB各类设备描述符(usb device enumeration descriptors)

时间:2020-08-27 11:15:39

相关推荐

USB各类设备描述符(usb device enumeration descriptors)

0. RealtekUSB网卡dongle

czl@czl-VirtualBox:~/WorkSpace$ lsusb -d 0bda:8176 -vBus 001 Device 003: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN AdapterCouldn't open device, some information will be missingDevice Descriptor:bLength18bDescriptorType 1bcdUSB1.10bDeviceClass 0 (Defined at Interface level)bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64idVendor 0x0bda Realtek Semiconductor Corp.idProduct0x8176 RTL8188CUS 802.11n WLAN AdapterbcdDevice 2.00iManufacturer 1 iProduct2 iSerial 3 bNumConfigurations1Configuration Descriptor:bLength 9bDescriptorType 2wTotalLength 46bNumInterfaces1bConfigurationValue1iConfiguration0 bmAttributes 0x80(Bus Powered)MaxPower 500mAInterface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 0bAlternateSetting 0bNumEndpoints 4bInterfaceClass 255 Vendor Specific ClassbInterfaceSubClass 255 Vendor Specific SubclassbInterfaceProtocol 255 Vendor Specific ProtocoliInterface 0 Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x81 EP 1 INbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0200 1x 512 bytesbInterval0Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x02 EP 2 OUTbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0200 1x 512 bytesbInterval0Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x03 EP 3 OUTbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0200 1x 512 bytesbInterval0Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x84 EP 4 INbmAttributes 3Transfer Type InterruptSynch TypeNoneUsage TypeDatawMaxPacketSize0x0040 1x 64 bytesbInterval1czl@czl-VirtualBox:~/WorkSpace$

1.Sandisk Card Reader

czl@czl-RedmiBook-14:~$ lsusb -d 0781:cfcb -vBus 001 Device 012: ID 0781:cfcb SanDisk Corp. Couldn't open device, some information will be missingDevice Descriptor:bLength18bDescriptorType 1bcdUSB2.10bDeviceClass 0 (Defined at Interface level)bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64idVendor 0x0781 SanDisk Corp.idProduct0xcfcb bcdDevice 29.20iManufacturer 3 iProduct4 iSerial 2 bNumConfigurations1Configuration Descriptor:bLength 9bDescriptorType 2wTotalLength 32bNumInterfaces1bConfigurationValue1iConfiguration0 bmAttributes 0x80(Bus Powered)MaxPower 500mAInterface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 0bAlternateSetting 0bNumEndpoints 2bInterfaceClass 8 Mass StoragebInterfaceSubClass6 SCSIbInterfaceProtocol80 Bulk-OnlyiInterface 0 Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x81 EP 1 INbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0200 1x 512 bytesbInterval0Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x02 EP 2 OUTbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0200 1x 512 bytesbInterval0czl@czl-RedmiBook-14:~$

2.PSSD disk:

czl@czl-RedmiBook-14:~$ lsusb -d 2109:0715 -t /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 10000M|__ Port 2: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 480M|__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M|__ Port 10: Dev 3, If 0, Class=Wireless, Driver=btusb, 12M|__ Port 10: Dev 3, If 1, Class=Wireless, Driver=btusb, 12Mczl@czl-RedmiBook-14:~$ lsusb -d 2109:0715 -vBus 002 Device 002: ID 2109:0715 VIA Labs, Inc. Couldn't open device, some information will be missingDevice Descriptor:bLength18bDescriptorType 1bcdUSB3.10bDeviceClass 0 (Defined at Interface level)bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 9idVendor 0x2109 VIA Labs, Inc.idProduct0x0715 bcdDevice f0.00iManufacturer 1 iProduct2 iSerial 3 bNumConfigurations1Configuration Descriptor:bLength 9bDescriptorType 2wTotalLength121bNumInterfaces1bConfigurationValue1iConfiguration0 bmAttributes 0x80(Bus Powered)MaxPower 224mAInterface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 0bAlternateSetting 0bNumEndpoints 2bInterfaceClass 8 Mass StoragebInterfaceSubClass6 SCSIbInterfaceProtocol80 Bulk-OnlyiInterface 0 Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x81 EP 1 INbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0400 1x 1024 bytesbInterval0bMaxBurst 15Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x02 EP 2 OUTbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0400 1x 1024 bytesbInterval0bMaxBurst 15Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 0bAlternateSetting 1bNumEndpoints 4bInterfaceClass 8 Mass StoragebInterfaceSubClass6 SCSIbInterfaceProtocol98 iInterface 0 Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x04 EP 4 OUTbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0400 1x 1024 bytesbInterval0bMaxBurst0Command pipe (0x01)Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x85 EP 5 INbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0400 1x 1024 bytesbInterval0bMaxBurst 15MaxStreams 32Data-in pipe (0x03)Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x06 EP 6 OUTbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0400 1x 1024 bytesbInterval0bMaxBurst 15MaxStreams 32Data-out pipe (0x04)Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x87 EP 7 INbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0400 1x 1024 bytesbInterval0bMaxBurst0MaxStreams 32Status pipe (0x02)czl@czl-RedmiBook-14:~$

3.same sd card but with another card reader compare item 2.

czl@czl-RedmiBook-14:~$ lsusbBus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 001 Device 021: ID 14cd:125d Super Top Bus 001 Device 003: ID 8087:0aaa Intel Corp. Bus 001 Device 002: ID 2717:5001 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubczl@czl-RedmiBook-14:~$ lsusb -d 14cd:125d -t/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 10000M/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 480M|__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M|__ Port 2: Dev 21, If 0, Class=Mass Storage, Driver=usb-storage, 480M|__ Port 10: Dev 3, If 0, Class=Wireless, Driver=btusb, 12M|__ Port 10: Dev 3, If 1, Class=Wireless, Driver=btusb, 12Mczl@czl-RedmiBook-14:~$ lsusb -d 14cd:125d -vBus 001 Device 021: ID 14cd:125d Super Top Couldn't open device, some information will be missingDevice Descriptor:bLength18bDescriptorType 1bcdUSB2.00bDeviceClass 0 (Defined at Interface level)bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64idVendor 0x14cd Super TopidProduct0x125d bcdDevice 1.00iManufacturer 1 iProduct3 iSerial 2 bNumConfigurations1Configuration Descriptor:bLength 9bDescriptorType 2wTotalLength 32bNumInterfaces1bConfigurationValue1iConfiguration0 bmAttributes 0x80(Bus Powered)MaxPower 100mAInterface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 0bAlternateSetting 0bNumEndpoints 2bInterfaceClass 8 Mass StoragebInterfaceSubClass6 SCSIbInterfaceProtocol80 Bulk-OnlyiInterface 0 Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x81 EP 1 INbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0200 1x 512 bytesbInterval0Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x02 EP 2 OUTbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0200 1x 512 bytesbInterval0czl@czl-RedmiBook-14:~$

4.sunxi fex device

czl@czl-RedmiBook-14:~$ lsusbBus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 001 Device 024: ID 1f3a:efe8 Onda (unverified) V972 tablet in flashing modeBus 001 Device 003: ID 8087:0aaa Intel Corp. Bus 001 Device 002: ID 2717:5001 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubczl@czl-RedmiBook-14:~$ lsusb -d 1f3a:efe8 -vBus 001 Device 024: ID 1f3a:efe8 Onda (unverified) V972 tablet in flashing modeDevice Descriptor:bLength18bDescriptorType 1bcdUSB1.10bDeviceClass 0 (Defined at Interface level)bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64idVendor 0x1f3a Onda (unverified)idProduct0xefe8 V972 tablet in flashing modebcdDevice 2.b3iManufacturer 0 iProduct0 iSerial 0 bNumConfigurations1Configuration Descriptor:bLength 9bDescriptorType 2wTotalLength 32bNumInterfaces1bConfigurationValue1iConfiguration0 bmAttributes 0x80(Bus Powered)MaxPower 300mAInterface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 0bAlternateSetting 0bNumEndpoints 2bInterfaceClass 255 Vendor Specific ClassbInterfaceSubClass 255 Vendor Specific SubclassbInterfaceProtocol 255 Vendor Specific ProtocoliInterface 0 Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x01 EP 1 OUTbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0040 1x 64 bytesbInterval0Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x82 EP 2 INbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0040 1x 64 bytesbInterval0Device Status:0x20c0(Bus Powered)Debug Modeczl@czl-RedmiBook-14:~$

5 USB IPC Camera:

caozilong@caozilong-Vostro-3268:~/Workspace/camera$ lsusb -d 1b3f:2247 -vBus 001 Device 016: ID 1b3f:2247 Generalplus Technology Inc. Couldn't open device, some information will be missingDevice Descriptor:bLength18bDescriptorType 1bcdUSB2.00bDeviceClass239 Miscellaneous DevicebDeviceSubClass 2 ?bDeviceProtocol 1 Interface AssociationbMaxPacketSize0 64idVendor 0x1b3f Generalplus Technology Inc.idProduct0x2247 bcdDevice 1.00iManufacturer 1 iProduct2 iSerial 0 bNumConfigurations1Configuration Descriptor:bLength 9bDescriptorType 2wTotalLength 1207bNumInterfaces4bConfigurationValue1iConfiguration0 bmAttributes 0x80(Bus Powered)MaxPower 100mAInterface Association:bLength 8bDescriptorType 11bFirstInterface 0bInterfaceCount 2bFunctionClass 14 VideobFunctionSubClass 3 Video Interface CollectionbFunctionProtocol 0 iFunction4 Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 0bAlternateSetting 0bNumEndpoints 1bInterfaceClass 14 VideobInterfaceSubClass1 Video ControlbInterfaceProtocol0 iInterface 4 VideoControl Interface Descriptor:bLength13bDescriptorType 36bDescriptorSubtype1 (HEADER)bcdUVC1.00wTotalLength109dwClockFrequency 6.000000MHzbInCollection 1baInterfaceNr( 0) 1VideoControl Interface Descriptor:bLength18bDescriptorType 36bDescriptorSubtype2 (INPUT_TERMINAL)bTerminalID 1wTerminalType0x0201 Camera SensorbAssocTerminal0iTerminal0 wObjectiveFocalLengthMin0wObjectiveFocalLengthMax0wOcularFocalLength 0bControlSize 3bmControls 0x0000000aAuto-Exposure ModeExposure Time (Absolute)VideoControl Interface Descriptor:bLength11bDescriptorType 36bDescriptorSubtype5 (PROCESSING_UNIT)Warning: Descriptor too shortbUnitID 5bSourceID1wMaxMultiplier16384bControlSize 2bmControls0x00000407BrightnessContrastHuePower Line FrequencyiProcessing 0 bmVideoStandards0x1dNonePAL - 625/50SECAM - 625/50NTSC - 625/50VideoControl Interface Descriptor:bLength29bDescriptorType 36bDescriptorSubtype6 (EXTENSION_UNIT)bUnitID 6guidExtensionCode {7033f028-1163-2e4a-ba2c-6890eb334016}bNumControl 4bNrPins 1baSourceID( 0)5bControlSize 4bmControls( 0) 0x0fbmControls( 1) 0x00bmControls( 2) 0x00bmControls( 3) 0x00iExtension 0 VideoControl Interface Descriptor:bLength29bDescriptorType 36bDescriptorSubtype6 (EXTENSION_UNIT)bUnitID 7guidExtensionCode {82066163-7050-ab49-b8cc-b3855e8d221d}bNumControl 20bNrPins 1baSourceID( 0)6bControlSize 4bmControls( 0) 0xffbmControls( 1) 0xffbmControls( 2) 0x71bmControls( 3) 0x00iExtension 0 VideoControl Interface Descriptor:bLength 9bDescriptorType 36bDescriptorSubtype3 (OUTPUT_TERMINAL)bTerminalID 3wTerminalType0x0101 USB StreamingbAssocTerminal0bSourceID7iTerminal0 Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x83 EP 3 INbmAttributes 3Transfer Type InterruptSynch TypeNoneUsage TypeDatawMaxPacketSize0x0040 1x 64 bytesbInterval 32Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 1bAlternateSetting 0bNumEndpoints 0bInterfaceClass 14 VideobInterfaceSubClass2 Video StreamingbInterfaceProtocol0 iInterface 0 VideoStreaming Interface Descriptor:bLength 15bDescriptorType36bDescriptorSubtype 1 (INPUT_HEADER)bNumFormats2wTotalLength 796bEndPointAddress 133bmInfo0bTerminalLink 3bStillCaptureMethod 2bTriggerSupport 1bTriggerUsage 0bControlSize 1bmaControls( 0)11bmaControls( 1)11VideoStreaming Interface Descriptor:bLength 11bDescriptorType36bDescriptorSubtype 6 (FORMAT_MJPEG)bFormatIndex 1bNumFrameDescriptors12bFlags1Fixed-size samples: YesbDefaultFrameIndex 1bAspectRatioX 0bAspectRatioY 0bmInterlaceFlags 0x00Interlaced stream or variable: NoFields per frame: 1 fieldsField 1 first: NoField pattern: Field 1 onlybCopyProtect 0VideoStreaming Interface Descriptor:bLength 30bDescriptorType36bDescriptorSubtype 7 (FRAME_MJPEG)bFrameIndex1bmCapabilities 0x00Still image unsupportedwWidth 1920wHeight1080dwMinBitRate 912384dwMaxBitRate 912384dwMaxVideoFrameBufferSize614400dwDefaultFrameInterval 333333bFrameIntervalType 1dwFrameInterval( 0) 333333VideoStreaming Interface Descriptor:bLength 30bDescriptorType36bDescriptorSubtype 7 (FRAME_MJPEG)bFrameIndex2bmCapabilities 0x00Still image unsupportedwWidth 1440wHeight1080dwMinBitRate 912384dwMaxBitRate 912384dwMaxVideoFrameBufferSize614400dwDefaultFrameInterval 333333bFrameIntervalType 1dwFrameInterval( 0) 333333VideoStreaming Interface Descriptor:bLength 30bDescriptorType36bDescriptorSubtype 7 (FRAME_MJPEG)bFrameIndex3bmCapabilities 0x00Still image unsupportedwWidth 1280wHeight 720dwMinBitRate 912384dwMaxBitRate 912384dwMaxVideoFrameBufferSize614400dwDefaultFrameInterval 333333bFrameIntervalType 1dwFrameInterval( 0) 333333VideoStreaming Interface Descriptor:bLength 30bDescriptorType36bDescriptorSubtype 7 (FRAME_MJPEG)bFrameIndex4bmCapabilities 0x00Still image unsupportedwWidth 800wHeight 600dwMinBitRate 912384dwMaxBitRate 912384dwMaxVideoFrameBufferSize614400dwDefaultFrameInterval 333333bFrameIntervalType 1dwFrameInterval( 0) 333333VideoStreaming Interface Descriptor:bLength 30bDescriptorType36bDescriptorSubtype 7 (FRAME_MJPEG)bFrameIndex5bmCapabilities 0x00Still image unsupportedwWidth 800wHeight 480dwMinBitRate 912384dwMaxBitRate 912384dwMaxVideoFrameBufferSize614400dwDefaultFrameInterval 333333bFrameIntervalType 1dwFrameInterval( 0) 333333VideoStreaming Interface Descriptor:bLength 30bDescriptorType36bDescriptorSubtype 7 (FRAME_MJPEG)bFrameIndex6bmCapabilities 0x00Still image unsupportedwWidth 720wHeight 480dwMinBitRate 912384dwMaxBitRate 912384dwMaxVideoFrameBufferSize614400dwDefaultFrameInterval 333333bFrameIntervalType 1dwFrameInterval( 0) 333333VideoStreaming Interface Descriptor:bLength 30bDescriptorType36bDescriptorSubtype 7 (FRAME_MJPEG)bFrameIndex7bmCapabilities 0x00Still image unsupportedwWidth 640wHeight 480dwMinBitRate 912384dwMaxBitRate 912384dwMaxVideoFrameBufferSize614400dwDefaultFrameInterval 333333bFrameIntervalType 1dwFrameInterval( 0) 333333VideoStreaming Interface Descriptor:bLength 30bDescriptorType36bDescriptorSubtype 7 (FRAME_MJPEG)bFrameIndex8bmCapabilities 0x00Still image unsupportedwWidth 640wHeight 360dwMinBitRate 912384dwMaxBitRate 912384dwMaxVideoFrameBufferSize614400dwDefaultFrameInterval 333333bFrameIntervalType 1dwFrameInterval( 0) 333333VideoStreaming Interface Descriptor:bLength 30bDescriptorType36bDescriptorSubtype 7 (FRAME_MJPEG)bFrameIndex9bmCapabilities 0x00Still image unsupportedwWidth 480wHeight 270dwMinBitRate 912384dwMaxBitRate 912384dwMaxVideoFrameBufferSize614400dwDefaultFrameInterval 333333bFrameIntervalType 1dwFrameInterval( 0) 333333VideoStreaming Interface Descriptor:bLength 30bDescriptorType36bDescriptorSubtype 7 (FRAME_MJPEG)bFrameIndex 10bmCapabilities 0x00Still image unsupportedwWidth 320wHeight 240dwMinBitRate 912384dwMaxBitRate 912384dwMaxVideoFrameBufferSize614400dwDefaultFrameInterval 333333bFrameIntervalType 1dwFrameInterval( 0) 333333VideoStreaming Interface Descriptor:bLength 30bDescriptorType36bDescriptorSubtype 7 (FRAME_MJPEG)bFrameIndex 11bmCapabilities 0x00Still image unsupportedwWidth 176wHeight 144dwMinBitRate 912384dwMaxBitRate 912384dwMaxVideoFrameBufferSize614400dwDefaultFrameInterval 333333bFrameIntervalType 1dwFrameInterval( 0) 333333VideoStreaming Interface Descriptor:bLength 30bDescriptorType36bDescriptorSubtype 7 (FRAME_MJPEG)bFrameIndex 12bmCapabilities 0x00Still image unsupportedwWidth 1920wHeight1080dwMinBitRate 912384dwMaxBitRate 912384dwMaxVideoFrameBufferSize614400dwDefaultFrameInterval 333333bFrameIntervalType 1dwFrameInterval( 0) 333333VideoStreaming Interface Descriptor:bLength 58bDescriptorType36bDescriptorSubtype 3 (STILL_IMAGE_FRAME)bEndpointAddress0bNumImageSizePatterns 12wWidth( 0) 1920wHeight( 0) 1080wWidth( 1) 1440wHeight( 1) 1080wWidth( 2) 1280wHeight( 2) 720wWidth( 3) 800wHeight( 3) 600wWidth( 4) 800wHeight( 4) 480wWidth( 5) 720wHeight( 5) 480wWidth( 6) 640wHeight( 6) 480wWidth( 7) 640wHeight( 7) 360wWidth( 8) 480wHeight( 8) 270wWidth( 9) 320wHeight( 9) 240wWidth(10) 176wHeight(10) 144wWidth(11) 1920wHeight(11) 1080bNumCompressionPatterns 12bCompression( 0)1bCompression( 1)5bCompression( 2) 10bCompression( 3) 20VideoStreaming Interface Descriptor:bLength 6bDescriptorType36bDescriptorSubtype 13 (COLORFORMAT)bColorPrimaries 1 (BT.709,sRGB)bTransferCharacteristics 1 (BT.709)bMatrixCoefficients 4 (SMPTE 170M (BT.601))VideoStreaming Interface Descriptor:bLength 27bDescriptorType36bDescriptorSubtype 4 (FORMAT_UNCOMPRESSED)bFormatIndex 2bNumFrameDescriptors9guidFormat {59555932-0000-1000-8000-00aa00389b71}bBitsPerPixel 16bDefaultFrameIndex 1bAspectRatioX 0bAspectRatioY 0bmInterlaceFlags 0x00Interlaced stream or variable: NoFields per frame: 2 fieldsField 1 first: NoField pattern: Field 1 onlybCopyProtect 0VideoStreaming Interface Descriptor:bLength 30bDescriptorType36bDescriptorSubtype 5 (FRAME_UNCOMPRESSED)bFrameIndex1bmCapabilities 0x00Still image unsupportedwWidth 800wHeight 480dwMinBitRate 73728000dwMaxBitRate147456000dwMaxVideoFrameBufferSize768000dwDefaultFrameInterval 333333bFrameIntervalType 1dwFrameInterval( 0) 333333VideoStreaming Interface Descriptor:bLength 30bDescriptorType36bDescriptorSubtype 5 (FRAME_UNCOMPRESSED)bFrameIndex2bmCapabilities 0x00Still image unsupportedwWidth 720wHeight 480dwMinBitRate 73728000dwMaxBitRate147456000dwMaxVideoFrameBufferSize691200dwDefaultFrameInterval 333333bFrameIntervalType 1dwFrameInterval( 0) 333333VideoStreaming Interface Descriptor:bLength 30bDescriptorType36bDescriptorSubtype 5 (FRAME_UNCOMPRESSED)bFrameIndex3bmCapabilities 0x00Still image unsupportedwWidth 640wHeight 480dwMinBitRate 73728000dwMaxBitRate147456000dwMaxVideoFrameBufferSize614400dwDefaultFrameInterval 333333bFrameIntervalType 1dwFrameInterval( 0) 333333VideoStreaming Interface Descriptor:bLength 30bDescriptorType36bDescriptorSubtype 5 (FRAME_UNCOMPRESSED)bFrameIndex4bmCapabilities 0x00Still image unsupportedwWidth 640wHeight 360dwMinBitRate 73728000dwMaxBitRate147456000dwMaxVideoFrameBufferSize460800dwDefaultFrameInterval 333333bFrameIntervalType 1dwFrameInterval( 0) 333333VideoStreaming Interface Descriptor:bLength 30bDescriptorType36bDescriptorSubtype 5 (FRAME_UNCOMPRESSED)bFrameIndex5bmCapabilities 0x00Still image unsupportedwWidth 480wHeight 270dwMinBitRate 73728000dwMaxBitRate147456000dwMaxVideoFrameBufferSize259200dwDefaultFrameInterval 333333bFrameIntervalType 1dwFrameInterval( 0) 333333VideoStreaming Interface Descriptor:bLength 30bDescriptorType36bDescriptorSubtype 5 (FRAME_UNCOMPRESSED)bFrameIndex6bmCapabilities 0x00Still image unsupportedwWidth 320wHeight 240dwMinBitRate 73728000dwMaxBitRate147456000dwMaxVideoFrameBufferSize153600dwDefaultFrameInterval 333333bFrameIntervalType 1dwFrameInterval( 0) 333333VideoStreaming Interface Descriptor:bLength 30bDescriptorType36bDescriptorSubtype 5 (FRAME_UNCOMPRESSED)bFrameIndex7bmCapabilities 0x00Still image unsupportedwWidth 176wHeight 144dwMinBitRate 73728000dwMaxBitRate147456000dwMaxVideoFrameBufferSize 50688dwDefaultFrameInterval 333333bFrameIntervalType 1dwFrameInterval( 0) 333333VideoStreaming Interface Descriptor:bLength 30bDescriptorType36bDescriptorSubtype 5 (FRAME_UNCOMPRESSED)bFrameIndex8bmCapabilities 0x00Still image unsupportedwWidth 800wHeight 480dwMinBitRate 73728000dwMaxBitRate147456000dwMaxVideoFrameBufferSize768000dwDefaultFrameInterval 333333bFrameIntervalType 1dwFrameInterval( 0) 333333VideoStreaming Interface Descriptor:bLength 30bDescriptorType36bDescriptorSubtype 5 (FRAME_UNCOMPRESSED)bFrameIndex9bmCapabilities 0x00Still image unsupportedwWidth 800wHeight 480dwMinBitRate 73728000dwMaxBitRate147456000dwMaxVideoFrameBufferSize768000dwDefaultFrameInterval 333333bFrameIntervalType 1dwFrameInterval( 0) 333333VideoStreaming Interface Descriptor:bLength 43bDescriptorType36bDescriptorSubtype 3 (STILL_IMAGE_FRAME)bEndpointAddress0bNumImageSizePatterns9wWidth( 0) 800wHeight( 0) 480wWidth( 1) 720wHeight( 1) 480wWidth( 2) 640wHeight( 2) 480wWidth( 3) 640wHeight( 3) 360wWidth( 4) 480wHeight( 4) 270wWidth( 5) 320wHeight( 5) 240wWidth( 6) 176wHeight( 6) 144wWidth( 7) 800wHeight( 7) 480wWidth( 8) 800wHeight( 8) 480bNumCompressionPatterns 9bCompression( 0)1VideoStreaming Interface Descriptor:bLength 6bDescriptorType36bDescriptorSubtype 13 (COLORFORMAT)bColorPrimaries 1 (BT.709,sRGB)bTransferCharacteristics 1 (BT.709)bMatrixCoefficients 4 (SMPTE 170M (BT.601))Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 1bAlternateSetting 1bNumEndpoints 1bInterfaceClass 14 VideobInterfaceSubClass2 Video StreamingbInterfaceProtocol0 iInterface 0 Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x85 EP 5 INbmAttributes 5Transfer Type IsochronousSynch TypeAsynchronousUsage TypeDatawMaxPacketSize0x0100 1x 256 bytesbInterval1Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 1bAlternateSetting 2bNumEndpoints 1bInterfaceClass 14 VideobInterfaceSubClass2 Video StreamingbInterfaceProtocol0 iInterface 0 Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x85 EP 5 INbmAttributes 5Transfer Type IsochronousSynch TypeAsynchronousUsage TypeDatawMaxPacketSize0x0200 1x 512 bytesbInterval1Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 1bAlternateSetting 3bNumEndpoints 1bInterfaceClass 14 VideobInterfaceSubClass2 Video StreamingbInterfaceProtocol0 iInterface 0 Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x85 EP 5 INbmAttributes 5Transfer Type IsochronousSynch TypeAsynchronousUsage TypeDatawMaxPacketSize0x0400 1x 1024 bytesbInterval1Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 1bAlternateSetting 4bNumEndpoints 1bInterfaceClass 14 VideobInterfaceSubClass2 Video StreamingbInterfaceProtocol0 iInterface 0 Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x85 EP 5 INbmAttributes 5Transfer Type IsochronousSynch TypeAsynchronousUsage TypeDatawMaxPacketSize0x0b00 2x 768 bytesbInterval1Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 1bAlternateSetting 5bNumEndpoints 1bInterfaceClass 14 VideobInterfaceSubClass2 Video StreamingbInterfaceProtocol0 iInterface 0 Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x85 EP 5 INbmAttributes 5Transfer Type IsochronousSynch TypeAsynchronousUsage TypeDatawMaxPacketSize0x0c00 2x 1024 bytesbInterval1Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 1bAlternateSetting 6bNumEndpoints 1bInterfaceClass 14 VideobInterfaceSubClass2 Video StreamingbInterfaceProtocol0 iInterface 0 Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x85 EP 5 INbmAttributes 5Transfer Type IsochronousSynch TypeAsynchronousUsage TypeDatawMaxPacketSize0x1354 3x 852 bytesbInterval1Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 1bAlternateSetting 7bNumEndpoints 1bInterfaceClass 14 VideobInterfaceSubClass2 Video StreamingbInterfaceProtocol0 iInterface 0 Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x85 EP 5 INbmAttributes 5Transfer Type IsochronousSynch TypeAsynchronousUsage TypeDatawMaxPacketSize0x1400 3x 1024 bytesbInterval1Interface Association:bLength 8bDescriptorType 11bFirstInterface 2bInterfaceCount 2bFunctionClass1 AudiobFunctionSubClass 0 bFunctionProtocol 0 iFunction4 Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 2bAlternateSetting 0bNumEndpoints 0bInterfaceClass 1 AudiobInterfaceSubClass1 Control DevicebInterfaceProtocol0 iInterface 4 AudioControl Interface Descriptor:bLength 9bDescriptorType 36bDescriptorSubtype1 (HEADER)bcdADC1.00wTotalLength 38bInCollection 1baInterfaceNr( 0) 3AudioControl Interface Descriptor:bLength12bDescriptorType 36bDescriptorSubtype2 (INPUT_TERMINAL)bTerminalID 3wTerminalType0x0201 MicrophonebAssocTerminal0bNrChannels 1wChannelConfig0x0000iChannelNames 0 iTerminal0 AudioControl Interface Descriptor:bLength 8bDescriptorType 36bDescriptorSubtype6 (FEATURE_UNIT)bUnitID 5bSourceID3bControlSize 1bmaControls( 0)0x03Mute ControlVolume ControliFeature0 AudioControl Interface Descriptor:bLength 9bDescriptorType 36bDescriptorSubtype3 (OUTPUT_TERMINAL)bTerminalID 4wTerminalType0x0101 USB StreamingbAssocTerminal0bSourceID5iTerminal0 Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 3bAlternateSetting 0bNumEndpoints 0bInterfaceClass 1 AudiobInterfaceSubClass2 StreamingbInterfaceProtocol0 iInterface 0 Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 3bAlternateSetting 1bNumEndpoints 0bInterfaceClass 1 AudiobInterfaceSubClass2 StreamingbInterfaceProtocol0 iInterface 0 Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 3bAlternateSetting 2bNumEndpoints 0bInterfaceClass 1 AudiobInterfaceSubClass2 StreamingbInterfaceProtocol0 iInterface 0 Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 3bAlternateSetting 3bNumEndpoints 0bInterfaceClass 1 AudiobInterfaceSubClass2 StreamingbInterfaceProtocol0 iInterface 0 Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 3bAlternateSetting 4bNumEndpoints 0bInterfaceClass 1 AudiobInterfaceSubClass2 StreamingbInterfaceProtocol0 iInterface 0 Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 3bAlternateSetting 5bNumEndpoints 1bInterfaceClass 1 AudiobInterfaceSubClass2 StreamingbInterfaceProtocol0 iInterface 0 AudioStreaming Interface Descriptor:bLength 7bDescriptorType 36bDescriptorSubtype1 (AS_GENERAL)bTerminalLink 4bDelay 1 frameswFormatTag 1 PCMAudioStreaming Interface Descriptor:bLength11bDescriptorType 36bDescriptorSubtype2 (FORMAT_TYPE)bFormatType 1 (FORMAT_TYPE_I)bNrChannels 1bSubframeSize 2bBitResolution 16bSamFreqType 1 DiscretetSamFreq[ 0] 16000Endpoint Descriptor:bLength 9bDescriptorType 5bEndpointAddress0x87 EP 7 INbmAttributes 1Transfer Type IsochronousSynch TypeNoneUsage TypeDatawMaxPacketSize0x0100 1x 256 bytesbInterval4bRefresh0bSynchAddress 0AudioControl Endpoint Descriptor:bLength 7bDescriptorType 37bDescriptorSubtype1 (EP_GENERAL)bmAttributes 0x00bLockDelayUnits 0 UndefinedwLockDelay 0 Undefinedcaozilong@caozilong-Vostro-3268:~/Workspace/camera$

6.USB串口:

czl@czl-VirtualBox:~/WorkSpace$ lsusb -d 1a86:7523 -vBus 001 Device 004: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapterCouldn't open device, some information will be missingDevice Descriptor:bLength18bDescriptorType 1bcdUSB1.10bDeviceClass255 Vendor Specific ClassbDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8idVendor 0x1a86 QinHeng ElectronicsidProduct0x7523 HL-340 USB-Serial adapterbcdDevice 2.64iManufacturer 0 iProduct2 iSerial 0 bNumConfigurations1Configuration Descriptor:bLength 9bDescriptorType 2wTotalLength 39bNumInterfaces1bConfigurationValue1iConfiguration0 bmAttributes 0x80(Bus Powered)MaxPower98mAInterface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 0bAlternateSetting 0bNumEndpoints 3bInterfaceClass 255 Vendor Specific ClassbInterfaceSubClass1 bInterfaceProtocol2 iInterface 0 Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x82 EP 2 INbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0020 1x 32 bytesbInterval0Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x02 EP 2 OUTbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0020 1x 32 bytesbInterval0Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x81 EP 1 INbmAttributes 3Transfer Type InterruptSynch TypeNoneUsage TypeDatawMaxPacketSize0x0008 1x 8 bytesbInterval1czl@czl-VirtualBox:~/WorkSpace$

7: STM32F407G-DISC1平台接口配置

caozilong@caozilong-Vostro-3268:~$ lsusb -d 0483:374b -vBus 001 Device 009: ID 0483:374b STMicroelectronics ST-LINK/V2.1 (Nucleo-F103RB)Couldn't open device, some information will be missingDevice Descriptor:bLength18bDescriptorType 1bcdUSB2.00bDeviceClass239 Miscellaneous DevicebDeviceSubClass 2 ?bDeviceProtocol 1 Interface AssociationbMaxPacketSize0 64idVendor 0x0483 STMicroelectronicsidProduct0x374b ST-LINK/V2.1 (Nucleo-F103RB)bcdDevice 1.00iManufacturer 1 iProduct2 iSerial 3 bNumConfigurations1Configuration Descriptor:bLength 9bDescriptorType 2wTotalLength128bNumInterfaces4bConfigurationValue1iConfiguration0 bmAttributes 0x80(Bus Powered)MaxPower 100mAInterface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 0bAlternateSetting 0bNumEndpoints 3bInterfaceClass 255 Vendor Specific ClassbInterfaceSubClass 255 Vendor Specific SubclassbInterfaceProtocol 255 Vendor Specific ProtocoliInterface 4 Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x81 EP 1 INbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0040 1x 64 bytesbInterval0Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x01 EP 1 OUTbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0040 1x 64 bytesbInterval0Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x82 EP 2 INbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0020 1x 32 bytesbInterval0Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 1bAlternateSetting 0bNumEndpoints 2bInterfaceClass 8 Mass StoragebInterfaceSubClass6 SCSIbInterfaceProtocol80 Bulk-OnlyiInterface 5 Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x83 EP 3 INbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0040 1x 64 bytesbInterval0Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x03 EP 3 OUTbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0040 1x 64 bytesbInterval0Interface Association:bLength 8bDescriptorType 11bFirstInterface 2bInterfaceCount 2bFunctionClass2 CommunicationsbFunctionSubClass 2 Abstract (modem)bFunctionProtocol 1 AT-commands (v.25ter)iFunction6 Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 2bAlternateSetting 0bNumEndpoints 1bInterfaceClass 2 CommunicationsbInterfaceSubClass2 Abstract (modem)bInterfaceProtocol1 AT-commands (v.25ter)iInterface 6 CDC Header:bcdCDC1.10CDC Call Management:bmCapabilities 0x00bDataInterface3CDC ACM:bmCapabilities 0x06sends breakline coding and serial stateCDC Union:bMasterInterface 2bSlaveInterface 3 Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x84 EP 4 INbmAttributes 3Transfer Type InterruptSynch TypeNoneUsage TypeDatawMaxPacketSize0x0002 1x 2 bytesbInterval 255Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 3bAlternateSetting 0bNumEndpoints 2bInterfaceClass 10 CDC DatabInterfaceSubClass0 UnusedbInterfaceProtocol0 iInterface 7 Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x05 EP 5 OUTbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0008 1x 8 bytesbInterval0Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x85 EP 5 INbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0010 1x 16 bytesbInterval0caozilong@caozilong-Vostro-3268:~$

8.FRDM K64F 平台的USB配置。

caozilong@caozilong-Vostro-3268:~$ lsusb -d 0d28:0204 -vBus 001 Device 012: ID 0d28:0204 NXP LPC1768Couldn't open device, some information will be missingDevice Descriptor:bLength18bDescriptorType 1bcdUSB1.10bDeviceClass 2 CommunicationsbDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8idVendor 0x0d28 NXPidProduct0x0204 LPC1768bcdDevice 1.00iManufacturer 1 iProduct2 iSerial 3 bNumConfigurations1Configuration Descriptor:bLength 9bDescriptorType 2wTotalLength122bNumInterfaces4bConfigurationValue1iConfiguration0 bmAttributes 0x80(Bus Powered)MaxPower 500mAInterface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 0bAlternateSetting 0bNumEndpoints 2bInterfaceClass 8 Mass StoragebInterfaceSubClass6 SCSIbInterfaceProtocol80 Bulk-OnlyiInterface 7 Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x82 EP 2 INbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0040 1x 64 bytesbInterval0Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x02 EP 2 OUTbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0040 1x 64 bytesbInterval0Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 1bAlternateSetting 0bNumEndpoints 1bInterfaceClass 2 CommunicationsbInterfaceSubClass2 Abstract (modem)bInterfaceProtocol1 AT-commands (v.25ter)iInterface 4 CDC Header:bcdCDC1.10CDC Call Management:bmCapabilities 0x03call managementuse DataInterfacebDataInterface2CDC ACM:bmCapabilities 0x06sends breakline coding and serial stateCDC Union:bMasterInterface 1bSlaveInterface 2 Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x83 EP 3 INbmAttributes 3Transfer Type InterruptSynch TypeNoneUsage TypeDatawMaxPacketSize0x0010 1x 16 bytesbInterval 32Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 2bAlternateSetting 0bNumEndpoints 2bInterfaceClass 10 CDC DatabInterfaceSubClass0 UnusedbInterfaceProtocol0 iInterface 5 Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x04 EP 4 OUTbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0040 1x 64 bytesbInterval0Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x84 EP 4 INbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0040 1x 64 bytesbInterval0Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 3bAlternateSetting 0bNumEndpoints 2bInterfaceClass 3 Human Interface DevicebInterfaceSubClass0 No SubclassbInterfaceProtocol0 NoneiInterface 6 HID Device Descriptor:bLength 9bDescriptorType 33bcdHID1.00bCountryCode 0 Not supportedbNumDescriptors 1bDescriptorType 34 ReportwDescriptorLength33Report Descriptors: ** UNAVAILABLE **Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x81 EP 1 INbmAttributes 3Transfer Type InterruptSynch TypeNoneUsage TypeDatawMaxPacketSize0x0040 1x 64 bytesbInterval1Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x01 EP 1 OUTbmAttributes 3Transfer Type InterruptSynch TypeNoneUsage TypeDatawMaxPacketSize0x0040 1x 64 bytesbInterval1caozilong@caozilong-Vostro-3268:~$

9.USB外置声卡

插入后,可以看到它使用的驱动是snd-usb-audio.

czl@czl-VirtualBox:~$ lsusbBus 001 Device 005: ID 0d8c:0014 C-Media Electronics, Inc. Bus 001 Device 003: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapterBus 001 Device 002: ID 80ee:0021 VirtualBox USB TabletBus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubczl@czl-VirtualBox:~$ lsusb -d 0d8c:0014 -vBus 001 Device 005: ID 0d8c:0014 C-Media Electronics, Inc. Couldn't open device, some information will be missingDevice Descriptor:bLength18bDescriptorType 1bcdUSB1.10bDeviceClass 0 (Defined at Interface level)bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8idVendor 0x0d8c C-Media Electronics, Inc.idProduct0x0014 bcdDevice 1.00iManufacturer 1 iProduct2 iSerial 0 bNumConfigurations1Configuration Descriptor:bLength 9bDescriptorType 2wTotalLength253bNumInterfaces4bConfigurationValue1iConfiguration0 bmAttributes 0x80(Bus Powered)MaxPower 100mAInterface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 0bAlternateSetting 0bNumEndpoints 0bInterfaceClass 1 AudiobInterfaceSubClass1 Control DevicebInterfaceProtocol0 iInterface 0 AudioControl Interface Descriptor:bLength10bDescriptorType 36bDescriptorSubtype1 (HEADER)bcdADC1.00wTotalLength100bInCollection 2baInterfaceNr( 0) 1baInterfaceNr( 1) 2AudioControl Interface Descriptor:bLength12bDescriptorType 36bDescriptorSubtype2 (INPUT_TERMINAL)bTerminalID 1wTerminalType0x0101 USB StreamingbAssocTerminal0bNrChannels 2wChannelConfig0x0003Left Front (L)Right Front (R)iChannelNames 0 iTerminal0 AudioControl Interface Descriptor:bLength12bDescriptorType 36bDescriptorSubtype2 (INPUT_TERMINAL)bTerminalID 2wTerminalType0x0201 MicrophonebAssocTerminal0bNrChannels 1wChannelConfig0x0001Left Front (L)iChannelNames 0 iTerminal0 AudioControl Interface Descriptor:bLength 9bDescriptorType 36bDescriptorSubtype3 (OUTPUT_TERMINAL)bTerminalID 6wTerminalType0x0301 SpeakerbAssocTerminal0bSourceID9iTerminal0 AudioControl Interface Descriptor:bLength 9bDescriptorType 36bDescriptorSubtype3 (OUTPUT_TERMINAL)bTerminalID 7wTerminalType0x0101 USB StreamingbAssocTerminal0bSourceID8iTerminal0 AudioControl Interface Descriptor:bLength 7bDescriptorType 36bDescriptorSubtype5 (SELECTOR_UNIT)bUnitID 8bNrInPins1baSource( 0) 10iSelector0 AudioControl Interface Descriptor:bLength10bDescriptorType 36bDescriptorSubtype6 (FEATURE_UNIT)bUnitID 9bSourceID 15bControlSize 1bmaControls( 0)0x01Mute ControlbmaControls( 1)0x02Volume ControlbmaControls( 2)0x02Volume ControliFeature0 AudioControl Interface Descriptor:bLength 9bDescriptorType 36bDescriptorSubtype6 (FEATURE_UNIT)bUnitID10bSourceID2bControlSize 1bmaControls( 0)0x43Mute ControlVolume ControlAutomatic Gain ControlbmaControls( 1)0x00iFeature0 AudioControl Interface Descriptor:bLength 9bDescriptorType 36bDescriptorSubtype6 (FEATURE_UNIT)bUnitID13bSourceID2bControlSize 1bmaControls( 0)0x03Mute ControlVolume ControlbmaControls( 1)0x00iFeature0 AudioControl Interface Descriptor:bLength13bDescriptorType 36bDescriptorSubtype4 (MIXER_UNIT)bUnitID15bNrInPins2baSourceID( 0)1baSourceID( 1) 13bNrChannels 2wChannelConfig0x0003Left Front (L)Right Front (R)iChannelNames 0 bmControls 0x00iMixer 0 Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 1bAlternateSetting 0bNumEndpoints 0bInterfaceClass 1 AudiobInterfaceSubClass2 StreamingbInterfaceProtocol0 iInterface 0 Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 1bAlternateSetting 1bNumEndpoints 1bInterfaceClass 1 AudiobInterfaceSubClass2 StreamingbInterfaceProtocol0 iInterface 0 AudioStreaming Interface Descriptor:bLength 7bDescriptorType 36bDescriptorSubtype1 (AS_GENERAL)bTerminalLink 1bDelay 1 frameswFormatTag 1 PCMAudioStreaming Interface Descriptor:bLength14bDescriptorType 36bDescriptorSubtype2 (FORMAT_TYPE)bFormatType 1 (FORMAT_TYPE_I)bNrChannels 2bSubframeSize 2bBitResolution 16bSamFreqType 2 DiscretetSamFreq[ 0] 48000tSamFreq[ 1] 44100Endpoint Descriptor:bLength 9bDescriptorType 5bEndpointAddress0x01 EP 1 OUTbmAttributes 9Transfer Type IsochronousSynch TypeAdaptiveUsage TypeDatawMaxPacketSize0x00c8 1x 200 bytesbInterval1bRefresh0bSynchAddress 0AudioControl Endpoint Descriptor:bLength 7bDescriptorType 37bDescriptorSubtype1 (EP_GENERAL)bmAttributes 0x01Sampling FrequencybLockDelayUnits 1 MillisecondswLockDelay 1 MillisecondsInterface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 2bAlternateSetting 0bNumEndpoints 0bInterfaceClass 1 AudiobInterfaceSubClass2 StreamingbInterfaceProtocol0 iInterface 0 Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 2bAlternateSetting 1bNumEndpoints 1bInterfaceClass 1 AudiobInterfaceSubClass2 StreamingbInterfaceProtocol0 iInterface 0 AudioStreaming Interface Descriptor:bLength 7bDescriptorType 36bDescriptorSubtype1 (AS_GENERAL)bTerminalLink 7bDelay 1 frameswFormatTag 1 PCMAudioStreaming Interface Descriptor:bLength14bDescriptorType 36bDescriptorSubtype2 (FORMAT_TYPE)bFormatType 1 (FORMAT_TYPE_I)bNrChannels 1bSubframeSize 2bBitResolution 16bSamFreqType 2 DiscretetSamFreq[ 0] 48000tSamFreq[ 1] 44100Endpoint Descriptor:bLength 9bDescriptorType 5bEndpointAddress0x82 EP 2 INbmAttributes 13Transfer Type IsochronousSynch TypeSynchronousUsage TypeDatawMaxPacketSize0x0064 1x 100 bytesbInterval1bRefresh0bSynchAddress 0AudioControl Endpoint Descriptor:bLength 7bDescriptorType 37bDescriptorSubtype1 (EP_GENERAL)bmAttributes 0x01Sampling FrequencybLockDelayUnits 0 UndefinedwLockDelay 0 UndefinedInterface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 3bAlternateSetting 0bNumEndpoints 1bInterfaceClass 3 Human Interface DevicebInterfaceSubClass0 No SubclassbInterfaceProtocol0 NoneiInterface 0 HID Device Descriptor:bLength 9bDescriptorType 33bcdHID1.00bCountryCode 0 Not supportedbNumDescriptors 1bDescriptorType 34 ReportwDescriptorLength60Report Descriptors: ** UNAVAILABLE **Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x87 EP 7 INbmAttributes 3Transfer Type InterruptSynch TypeNoneUsage TypeDatawMaxPacketSize0x0004 1x 4 bytesbInterval2czl@czl-VirtualBox:~$

10.USB2.0 100Mbps Ethernet Network Adaptor.USB-A 网卡

USB网卡使用的是亚信(ASIX)的网络IC芯片,它是位于台湾新竹科学园的一家芯片公司。

USB描述符如下,还是比较简单的,只有一个Interface用于实现网卡功能。

(base) caozilong@caozilong-Vostro-3268:~$ lsusb -d 0b95:772b -vBus 001 Device 008: ID 0b95:772b ASIX Electronics Corp. AX88772BCouldn't open device, some information will be missingDevice Descriptor:bLength18bDescriptorType 1bcdUSB2.00bDeviceClass255 Vendor Specific ClassbDeviceSubClass 255 Vendor Specific SubclassbDeviceProtocol 0 bMaxPacketSize0 64idVendor 0x0b95 ASIX Electronics Corp.idProduct0x772b AX88772BbcdDevice 0.02iManufacturer 1 iProduct2 iSerial 3 bNumConfigurations1Configuration Descriptor:bLength 9bDescriptorType 2wTotalLength 39bNumInterfaces1bConfigurationValue1iConfiguration4 bmAttributes 0xa0(Bus Powered)Remote WakeupMaxPower 200mAInterface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 0bAlternateSetting 0bNumEndpoints 3bInterfaceClass 255 Vendor Specific ClassbInterfaceSubClass 255 Vendor Specific SubclassbInterfaceProtocol0 iInterface 7 Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x81 EP 1 INbmAttributes 3Transfer Type InterruptSynch TypeNoneUsage TypeDatawMaxPacketSize0x0008 1x 8 bytesbInterval 11Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x82 EP 2 INbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0200 1x 512 bytesbInterval0Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x03 EP 3 OUTbmAttributes 2Transfer Type BulkSynch TypeNoneUsage TypeDatawMaxPacketSize0x0200 1x 512 bytesbInterval0(base) caozilong@caozilong-Vostro-3268:~$

USB HUB

7口HUB

在HUB中,TT表示transaction translator,为了解决连接高速设备和低速设备兼容性问题设计的一块硬件电路,位于HUB中,负责高速,低速和全速的数据转换,如果一个高速设备中有了TT电路,那么就可以连接低速,全速设备了。要不然,低速,全速设备就没法连接到HUB上用。

(base) caozilong@caozilong-RedmiBook-14:~$ lsusb -d 1a40:0201 -vBus 001 Device 019: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port HubCouldn't open device, some information will be missingDevice Descriptor:bLength18bDescriptorType 1bcdUSB2.00bDeviceClass 9 HubbDeviceSubClass 0 UnusedbDeviceProtocol 2 TT per portbMaxPacketSize0 64idVendor 0x1a40 Terminus Technology Inc.idProduct0x0201 FE 2.1 7-port HubbcdDevice 1.00iManufacturer 0 iProduct1 iSerial 0 bNumConfigurations1Configuration Descriptor:bLength 9bDescriptorType 2wTotalLength 41bNumInterfaces1bConfigurationValue1iConfiguration0 bmAttributes 0xe0Self PoweredRemote WakeupMaxPower 100mAInterface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 0bAlternateSetting 0bNumEndpoints 1bInterfaceClass 9 HubbInterfaceSubClass0 UnusedbInterfaceProtocol1 Single TTiInterface 0 Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x81 EP 1 INbmAttributes 3Transfer Type InterruptSynch TypeNoneUsage TypeDatawMaxPacketSize0x0001 1x 1 bytesbInterval 12Interface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 0bAlternateSetting 1bNumEndpoints 1bInterfaceClass 9 HubbInterfaceSubClass0 UnusedbInterfaceProtocol2 TT per portiInterface 0 Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress0x81 EP 1 INbmAttributes 3Transfer Type InterruptSynch TypeNoneUsage TypeDatawMaxPacketSize0x0001 1x 1 bytesbInterval 12(base) caozilong@caozilong-RedmiBook-14:~$

UVC的 USB 设备端的descriptor有哪些?

UVC_INPUT_HEADER_DESCRIPTOR, structuvc_format_uncompressed,struct UVC_FRAME_MJPEG(3),struct UVC_FRAME_UNCOMPRESSED(3).

关于如何获取HUB口的数目,是根据hub descriptor的的来的

End.

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。