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

hatmakers hatmakers at cableone.net
Sat Mar 10 21:53:03 CET 2007



Hello, 
I am new to the usb/hid programming and am having problems getting a usb device
working with libhid.  I am using the svn src for the libhid but I am getting a
protocol error.   communication with this device should be via interrupt writes.
  The device works ok under win but have not been successful under linux.      
Any help would be greatly appreciated.  

Thanks,

James


Linux  2.6.17-1.2142_FC4 #1 Tue Jul 11 22:41:14 EDT 2006 i686 i686 i386 GNU/Linux

Name: libhid
Description: HID access library
Version: 0.2.14




 NOTICE: hid_init(): successfully initialised HID library.
  TRACE: hid_new_HIDInterface(): creating a new HIDInterface instance...
  TRACE: hid_force_open(): forcefully opening a device interface according to
matching criteria...
  TRACE: hid_get_usb_handle(): acquiring handle for a USB device...
  TRACE: hid_find_usb_device(): enumerating USB busses...
  TRACE: hid_find_usb_device(): enumerating USB devices on bus 001...
  TRACE: hid_find_usb_device(): inspecting USB device 001/023[0]...
  TRACE: hid_compare_usb_device(): comparing match specifications to USB device...
  TRACE: hid_compare_usb_device(): inspecting vendor ID...
  TRACE: hid_compare_usb_device(): match on vendor ID: 0x0925.
  TRACE: hid_compare_usb_device(): inspecting product ID...
  TRACE: hid_compare_usb_device(): match on product ID: 0x1299.
  TRACE: hid_compare_usb_device(): no custom matching function supplied.
 NOTICE: hid_find_usb_device(): found a matching USB device 001/023[0].
  TRACE: hid_force_open(): claiming USB device 001/023[0].
 NOTICE: hid_force_open(): successfully claimed USB device 001/023[0].
  TRACE: hid_init_parser(): initialising the HID parser for USB Device 001/023[0]...
  TRACE: hid_init_parser(): allocating space for HIDData structure...
  TRACE: hid_init_parser(): successfully allocated memory for HIDData strcture.
  TRACE: hid_init_parser(): allocating space for HIDParser structure...
  TRACE: hid_init_parser(): successfully allocated memory for HIDParser strcture.
 NOTICE: hid_init_parser(): successfully initialised the HID parser for USB
Device 001/023[0].
  TRACE: hid_prepare_hid_descriptor(): initialising the HID descriptor for USB
device 001/023[0]...
  TRACE: hid_prepare_hid_descriptor(): retrieving HID descriptor for USB
device(endpoint: 80) 001/023[0]...
USB error: error sending control message: Protocol error
WARNING: hid_prepare_hid_descriptor(): failed to get HID descriptor for USB
device 001/023[0]:error sending control message: Protocol error
  TRACE: hid_close(): closing USB device 001/023[0]...
  TRACE: hid_close(): closing handle of USB device 001/023[0]...
 NOTICE: hid_close(): successfully closed USB device 001/023[0].
  TRACE: hid_reset_parser(): resetting the HID parser for USB device 001/023[0]...
  TRACE: hid_close(): freeing memory allocated for HID parser...
  TRACE: hid_close(): resetting HIDInterface...
hid_force_open failed with return code 13









Bus 001 Device 017: ID 0925:1299 Lakeview Research
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        16
  idVendor           0x0925 Lakeview Research
  idProduct          0x1299
  bcdDevice            0.01
  iManufacturer           1
  iProduct                2
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           41
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xa0
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         3 Human Interface Devices
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.01
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      47
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval              10
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval              10
can't get device qualifier: Protocol error
can't get debug descriptor: Protocol error


---- Msg sent via CableONE.net MyMail - http://www.cableone.net


More information about the libhid-discuss mailing list