Difference between revisions of "IKALOGIC Scanalogic-2/Info"

From sigrok
Jump to navigation Jump to search
m (Uwe Hermann moved page Ikalogic SCANALOGIC-2/Info to IKALOGIC Scanalogic-2/Info without leaving a redirect)
 
Line 13: Line 13:
== Unbinding the usbhid driver ==
== Unbinding the usbhid driver ==


In order to get HID descriptor output in lsusb you need to either '''rmmod usbhid''' (which will disable ''all'' USB HID devices, including your USB keyboard/mouse!) or just '''unbind a specific driver instance'''.
See [[FAQ#Getting_a_usable_lsusb_for_USB_HID_devices]].
 
Example:
 
<small>
$ '''ls /sys/bus/usb/drivers/usbhid'''
3-2:1.0  4-3:1.4  5-3:1.0  bind  module  new_id  uevent  unbind
$ '''echo 5-3:1.0 > /sys/bus/usb/drivers/usbhid/unbind'''
</small>


== lsusb ==
== lsusb ==

Latest revision as of 12:38, 12 July 2015

dmesg

usb 5-3: new low speed USB device using ohci_hcd and address 79
usb 5-3: New USB device found, idVendor=20a0, idProduct=4123
usb 5-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 5-3: Product: SCANALOGIC
usb 5-3: Manufacturer: ikalogic
usb 5-3: configuration #1 chosen from 1 choice
generic-usb 0003:20A0:4123.0028: hiddev0,hidraw2: USB HID v1.01 Device [ikalogic SCANALOGIC] on usb-0000:00:13.0-3/input0

Unbinding the usbhid driver

See FAQ#Getting_a_usable_lsusb_for_USB_HID_devices.

lsusb

This is the lsusb ouput on Linux (you need to do rmmod usbhid or unbind the usbhid driver to also get the HID descriptor output in lsusb, see above):

$ lsusb -vvv
Bus 005 Device 076: ID 20a0:4123 Clay Logic
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x20a0 Clay Logic
  idProduct          0x4123 
  bcdDevice            1.00
  iManufacturer           1 ikalogic
  iProduct                2 SCANALOGIC
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus 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              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.01
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      22
          Report Descriptor: (length is 22)
            Item(Global): Usage Page, data= [ 0x00 0xff ] 65280
                            (null)
            Item(Local ): Usage, data= [ 0x01 ] 1
                            (null)
            Item(Main  ): Collection, data= [ 0x01 ] 1
                            Application
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0xff 0x00 ] 255
            Item(Global): Report Size, data= [ 0x08 ] 8
            Item(Global): Report Count, data= [ 0x80 ] 128
            Item(Local ): Usage, data= [ 0x00 ] 0
                            (null)
            Item(Main  ): Feature, data= [ 0x02 0x01 ] 258
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Buffered Bytes
            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     0x0008  1x 8 bytes
        bInterval             100
Device Status:     0x0000
  (Bus Powered)