[libhid-discuss] retrieving large HID descriptor bytes

mike stone vrspace1987 at yahoo.com.tw
Thu Jun 17 06:03:46 UTC 2010


Charles Lepple <clepple <at> ghz.cc> writes:

> 
> On Jun 15, 2010, at 1:34 PM, stone mike wrote:
> 
> Does your device respond to both Method 1 and Method 2 described here?
> 
> As mentioned there, lsusb uses the second method - although you may  
> want to re-run lsusb, because it chopped off the interesting part:
> 

Hi Charles,

   Thanks   The device was created on Ti TMS320c6747 using BIOS USB pcakage
(based on JUNGO USB stack).  I am not sure which method it respond.
re-run lsusb seems gotting correct report descriptor

libhid test result:

  TRACE: hid_prepare_hid_descriptor(): retrieving HID descriptor for USB device
008/002[0]...
 NOTICE: hid_prepare_hid_descriptor(): successfully initialised HID descriptor
for USB device 008/002[0] (41984 bytes).
  TRACE: hid_prepare_report_descriptor(): initialising the report descriptor for
USB device 008/002[0]...
  ERROR: hid_prepare_report_descriptor(): report descriptor size for USB device
008/002[0] exceeds maximum size: 41984 > 6144.

re-run lsusb result:

Bus 008 Device 002: ID 09d9:64df KRF Tech, Ltd 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x09d9 KRF Tech, Ltd
  idProduct          0x64df 
  bcdDevice            0.01
  iManufacturer           3 Jungo
  iProduct                2 JUSB Stack
  iSerial                 4 0123456789ABCDEF
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xc0
      Self Powered
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              1 Wintracker III
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      28
          Report Descriptor: (length is 28)
            Item(Global): Usage Page, data= [ 0xa0 0xff ] 65440
                            (null)
            Item(Local ): Usage, data= [ 0x01 ] 1
                            (null)
            Item(Main  ): Collection, data= [ 0x01 ] 1
                            Application
            Item(Local ): Usage, data= [ 0x01 ] 1
                            (null)
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0xff ] 255
            Item(Global): Report Size, data= [ 0x08 ] 8
            Item(Global): Report Count, data= [ 0x18 ] 24
            Item(Main  ): Input, data= [ 0x00 ] 0
                            Data Array Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x02 ] 2
                            (null)
            Item(Global): Report Size, data= [ 0x08 ] 8
            Item(Global): Report Count, data= [ 0x18 ] 24
            Item(Main  ): Output, data= [ 0x00 ] 0
                            Data Array Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Main  ): End Collection, data=none
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0018  1x 24 bytes
        bInterval               2
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered







More information about the libhid-discuss mailing list