usb描述符分析

15 篇文章 0 订阅


Bus 001 Device 002: ID 0ac8:3450 Z-Star Microelectronics Corp. 
Device Descriptor:
  bLength                18
  bDescriptorType         1 // bDescriptorType  1  0x01  DEVICE descriptor
  bcdUSB                2.0 // bcdUSB  2  0x0200  2.00 – current revision of the USB specification
  bDeviceClass          239 Miscellaneous Device//bDeviceClass  1  0xEF  Miscellaneous Device Class
  bDeviceSubClass         2 //bDeviceSubClass  1  0x02  Common Class
  bDeviceProtocol         1 Interface Association//bDeviceProtocol  1  0x01  Interface Association Descriptor
  bMaxPacketSize0        64//bMaxPacketSize0  1  0x40  Control endpoint packet size is 64 bytes
  idVendor           0x0ac8 Z-Star Microelectronics Corp.
  idProduct          0x3450 
  bcdDevice            5.00//bcdDevice  2  0xXXXX  Device release code
  iManufacturer           1 Vimicro
  iProduct                2 Vimicro USB Camera (Altair)
  iSerial                 0 
  bNumConfigurations      1//bNumConfigurations  1  0x01  One configuration
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          461
    bNumInterfaces          2//bNumInterfaces  1  0x02  This device has two interfaces
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Association:
      bLength                 8
      bDescriptorType        11//bDescriptorType  1  0x0B  INTERFACE ASSOCIATION Descriptor
      bFirstInterface         0//bFirstInterface  1  0x00  Interface number of the VideoControl interface that is associated with this function
      bInterfaceCount         2//bInterfaceCount  1  0x02  Number of contiguous Video interfaces that are associated with this function
      bFunctionClass         14 Video //bFunctionClass  1  0x0E  CC_VIDEO
      bFunctionSubClass       3 Video Interface Collection//bFunctionSubClass  1  0x03  SC_VIDEO_INTERFACE_COLLECTION
      bFunctionProtocol       0 
      iFunction               2 Vimicro USB Camera (Altair)
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4//bDescriptorType  1  0x04  INTERFACE descriptor type
      bInterfaceNumber        0//bInterfaceNumber  1  0x00  Index of this interface
      bAlternateSetting       0//bAlternateSetting  1  0x00  Index of this setting
      bNumEndpoints           1//bNumEndpoints  1  0x01  1 endpoint (interrupt endpoint
      bInterfaceClass        14 Video//bInterfaceClass  1  0x0E  CC_VIDEO
      bInterfaceSubClass      1 Video Control//bInterfaceSubClass  1  0x01  SC_VIDEOCONTROL
      bInterfaceProtocol      0 //bInterfaceProtocol  1  0x01  PC_PROTOCOL_15
      iInterface              2 Vimicro USB Camera (Altair)
      VideoControl Interface Descriptor:
        bLength                13
        bDescriptorType        36//bDescriptorType  1  0x24  CS_INTERFACE
        bDescriptorSubtype      1 (HEADER)//bDescriptorSubType  1  0x01  VC_HEADER subtype
        bcdUVC               1.00
        wTotalLength           79//wTotalLength  2  0x0042  Total size of class-specific descriptors
        dwClockFrequency       30.000000MHz
        bInCollection           1//bInCollection  1  0x01  Number of streaming interfaces
        baInterfaceNr( 0)       1//baInterfaceNr(1)  1  0x01  VideoStreaming interface 1 bthis VideoControl interface.
      VideoControl Interface Descriptor:
        bLength                18
        bDescriptorType        36//bDescriptorType  1  0x24  CS_INTERFACE
        bDescriptorSubtype      2 (INPUT_TERMINAL)//bDescriptorSubtype  1  0x02  VC_INPUT_TERMINAL subtype
        bTerminalID             1//bTerminalID  1  0x01  ID of this input terminal
        wTerminalType      0x0201 Camera Sensor//wTerminalType  2  0x0201  ITT_CAMERA type. This terminal is CMOS sensora camera terminal representing the
        bAssocTerminal          0//bAssocTerminal  1  0x00  No association
        iTerminal               0 //iTerminal  1  0x00  Unused
        wObjectiveFocalLengthMin      0//wObjectiveFocalLengthMin  2  0x0000  No optical zoom supported
        wObjectiveFocalLengthMax      0
        wOcularFocalLength            0
        bControlSize                  3//bControlSize  1  0x02  The size of the bmControls is 2 bytes(this terminal doesn’t implement any controls).
        bmControls           0x0000000a
          Auto-Exposure Mode
          Exposure Time (Absolute)
      VideoControl Interface Descriptor:
        bLength                11
        bDescriptorType        36
        bDescriptorSubtype      5 (PROCESSING_UNIT)//bDescriptorSubtype  1  0x05  VC_PROCESSING_UNIT
      Warning: Descriptor too short
        bUnitID                 2//bUnitID  1  0x05  ID of this unit
        bSourceID               1//bSourceID  1  0x04  This input pin of this unit is connected to the output pin of unit with ID 0x04.
        wMaxMultiplier          0
        bControlSize            2//bControlSize  1  0x03  Size of the bmControls field, in bytes.
        bmControls     0x0000157b
          Brightness
          Contrast
          Saturation
          Sharpness
          Gamma
          White Balance Temperature
          Backlight Compensation
          Power Line Frequency
          White Balance Temperature, Auto
        iProcessing             0 
        bmVideoStandards     0x 9
          None
          SECAM - 625/50
      VideoControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36//bDescriptorType  1  0x24  CS_INTERFACE
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)//bDescriptorSubtype  1  0x03  VC_OUTPUT_TERMINAL
        bTerminalID             3//bTerminalID  1  0x03  ID of this terminal
        wTerminalType      0x0101 USB Streaming//wTerminalType  2  0x0101  TT_STREAMING type. This terminal is a USB streaming terminal
        bAssocTerminal          0
        bSourceID               2//bSourceID  1  0x05  The input pin of this unit is connected to the output pin of unit 2. 
        iTerminal               0 //iTerminal  1  0x00  Unused
      VideoControl Interface Descriptor:
        bLength                28
        bDescriptorType        36
        bDescriptorSubtype      6 (EXTENSION_UNIT)
        bUnitID                 4
        guidExtensionCode         {5dc717a9-1941-da11-ae0e-000d56ac7b4c}
        bNumControl             8
        bNrPins                 1
        baSourceID( 0)          1
        bControlSize            3
        bmControls( 0)       0x59
        bmControls( 1)       0x80
        bmControls( 2)       0x80
        iExtension              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3//bmAttributes  1  0x03  Interrupt transfer type
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x000a  1x 10 bytes
        bInterval               5
    Interface Descriptor://2.3.5.1.1  Standard VS Interface Descriptor
      bLength                 9
      bDescriptorType         4//bDescriptorType  1  0x04  INTERFACE descriptor typ
      bInterfaceNumber        1//bInterfaceNumber  1  0x01  Index of this interface
      bAlternateSetting       0//bAlternateSetting  1  0x00  Index of this alternate setting
      bNumEndpoints           0//bNumEndpoints  1  0x00  0 endpoints – no bandwidth used
      bInterfaceClass        14 Video//bInterfaceClass  1  0x0E  CC_VIDEO
      bInterfaceSubClass      2 Video Streaming//bInterfaceSubClass  1  0x02  SC_VIDEOSTREAMING
      bInterfaceProtocol      0 
      iInterface              0 
      VideoStreaming Interface Descriptor:
        bLength                            14
        bDescriptorType                    36
        bDescriptorSubtype                  1 (INPUT_HEADER)//bDescriptorSubtype  1  0x01  VS_INPUT_HEADER.
        bNumFormats                         1//bNumFormats  1  0x01  One format descriptor follows
        wTotalLength                      223//wTotalLength  2  0x00dF  Total size of class-specific VideoStreaming interface descriptors
        bEndPointAddress                  130//bEndpointAddress  1  0x82  Address of the isochronous endpoint used for video data
        bmInfo                              0
        bTerminalLink                       3//bTerminalLink  1  0x03  This VideoStreaming interface supplies terminal ID 3 (Output Terminal).
        bStillCaptureMethod                 2//bStillCaptureMethod  1  0x01  Device supports still image capture method 1
        bTriggerSupport                     1
        bTriggerUsage                       1
        bControlSize                        1
        bmaControls( 0)                    27
      VideoStreaming Interface Descriptor:
        bLength                            27
        bDescriptorType                    36
        bDescriptorSubtype                  4 (FORMAT_UNCOMPRESSED)
        bFormatIndex                        1
        bNumFrameDescriptors                5//bNumFormats  1  0x05  five formats descriptor follows.
        guidFormat                            {59555932-0000-1000-8000-00aa00389b71}
        bBitsPerPixel                      16
        bDefaultFrameIndex                  1
        bAspectRatioX                       0//bAspectRatioX  1  0x00  Non-interlaced stream – not required
        bAspectRatioY                       0//bAspectRatioY  1  0x00  Non-interlaced stream – not required
        bmInterlaceFlags                 0x00//bmInterlaceFlags  1  0x00  Non-interlaced stream
          Interlaced stream or variable: No
          Fields per frame: 2 fields
          Field 1 first: No
          Field pattern: Field 1 only
          bCopyProtect                      0
      VideoStreaming Interface Descriptor:
        bLength                            30
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         1
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            640
        wHeight                           480
        dwMinBitRate                196608000
        dwMaxBitRate                196608000
        dwMaxVideoFrameBufferSize      614400
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  1
        dwFrameInterval( 0)            333333
      VideoStreaming Interface Descriptor:
        bLength                            30
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         2
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            352
        wHeight                           288
        dwMinBitRate                196608000
        dwMaxBitRate                196608000
        dwMaxVideoFrameBufferSize      202752
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  1
        dwFrameInterval( 0)            333333
      VideoStreaming Interface Descriptor:
        bLength                            30
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         3
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            320
        wHeight                           240
        dwMinBitRate                196608000
        dwMaxBitRate                196608000
        dwMaxVideoFrameBufferSize      153600
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  1
        dwFrameInterval( 0)            333333
      VideoStreaming Interface Descriptor:
        bLength                            30
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         4
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            176
        wHeight                           144
        dwMinBitRate                196608000
        dwMaxBitRate                196608000
        dwMaxVideoFrameBufferSize       50688
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  1
        dwFrameInterval( 0)            333333
      VideoStreaming Interface Descriptor:
        bLength                            30
        bDescriptorType                    36
        bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
        bFrameIndex                         5
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            160
        wHeight                           120
        dwMinBitRate                196608000
        dwMaxBitRate                196608000
        dwMaxVideoFrameBufferSize       38400
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  1
        dwFrameInterval( 0)            333333
      VideoStreaming Interface Descriptor:
        bLength                            26
        bDescriptorType                    36
        bDescriptorSubtype                  3 (STILL_IMAGE_FRAME)
        bEndpointAddress                    0
        bNumImageSizePatterns               5
        wWidth( 0)                        640
        wHeight( 0)                       480
        wWidth( 1)                        352
        wHeight( 1)                       288
        wWidth( 2)                        320
        wHeight( 2)                       240
        wWidth( 3)                        176
        wHeight( 3)                       144
        wWidth( 4)                        160
        wHeight( 4)                       120
        bNumCompressionPatterns             5
      VideoStreaming Interface Descriptor:
        bLength                             6
        bDescriptorType                    36
        bDescriptorSubtype                 13 (COLORFORMAT)
        bColorPrimaries                     0 (Unspecified)
        bTransferCharacteristics            0 (Unspecified)
        bMatrixCoefficients                 0 (Unspecified)
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0080  1x 128 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       2
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       3
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       4
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0b00  2x 768 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       5
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x0c00  2x 1024 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       6
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x1380  3x 896 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       7
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            5
          Transfer Type            Isochronous
          Synch Type               Asynchronous
          Usage Type               Data
        wMaxPacketSize     0x1400  3x 1024 bytes
        bInterval               1
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass          239 Miscellaneous Device
  bDeviceSubClass         2 ?
  bDeviceProtocol         1 Interface Association
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000

  (Bus Powered)






评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值