[libhid-discuss] libhid::error sending control message: Protocol error !!

Mohamed Ait Ouaziz wa3ziz at gmail.com
Fri Feb 25 20:44:19 UTC 2011


2011/2/25 Peter Stuge <peter at stuge.se>

> Hi Mohamed,
>
> Mohamed Ait Ouaziz wrote:
> > I try to write a user-space driver to control a usb device.
>
> Do you know how you will communicate with the device on top of USB?
>
> Separate from that, could you post lsusb -v output for the device?
>
>
> >   TRACE: hid_compare_usb_device(): match on vendor ID: 0x0461.
> >   TRACE: hid_compare_usb_device(): match on product ID: 0x0050.
>
> Primax Electronics it seems, but my usb.ids file doesn't know the
> product id.
>
>
> > WARNING: hid_prepare_hid_descriptor(): failed to get HID descriptor for
> USB
> > device 007/004[0]:error sending control message: Protocol error
>
> Are you sure that this is a HID class device at all?
>
> And if it turns out you'll need to perform simple communication that
> has just been wrapped in HID class by someone for the wrong reasons,
> then suggest using the HIDAPI by Signal 11 instead.
>
>
> //Peter
>
> _______________________________________________
> libhid-discuss mailing list
> libhid-discuss at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss
> http://libhid.alioth.debian.org/
>



Thanks Peter,

Here is the output of : sudo lsusb -v (edited)

Bus 007 Device 004: ID 0461:0050 Primax Electronics, Ltd
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x0461 Primax Electronics, Ltd
  idProduct          0x0050
  bcdDevice            0.0f
  iManufacturer           1
  iProduct                2
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           41
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.00
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      32
          Report Descriptor: (length is -71)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval             250
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10

Cheers,
Mohamed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/libhid-discuss/attachments/20110225/2ae3f251/attachment-0001.htm>


More information about the libhid-discuss mailing list