Difference between revisions of "UNI-T UT61D/Info"

From sigrok
Jump to navigation Jump to search
(Fix bogus HID parts of the lsusb.)
m
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
== How to get a proper lsusb ==
As [http://erste.de/UT61/index.html documented by Ralf Burger] the [[Multimeter_cables#UNI-T_UT-D04|UT-D04]] USBHID-to-serial cable (at least the one with WCH CH9325 chip) that comes with the UT61D multimeter has some issues on Linux. Apparently you need to [http://www.lesswatts.org/projects/devices-power-management/usb.php put it into a (auto)suspend first], before you can properly use it.
Here's a script (written by Ralf Burger) which you can run before using the chip and/or doing an lsusb:
<small>
$ '''cat suspend.HE2325U.sh'''
#!/bin/bash
for dat in /sys/bus/usb/devices/*; do
  if test -e $dat/manufacturer; then
    grep "WCH.CN" $dat/manufacturer > /dev/null && echo auto > ${dat}/power/level && echo 0 > ${dat}/power/autosuspend
  fi
done
</small>
== lsusb ==
== lsusb ==


This is the lsusb ouput on Linux:
See [[Device cables/Info#UNI-T_UT-D04]].
 
<small>
$ '''lsusb -vvv'''
Bus 003 Device 023: ID '''1a86:e008 QinHeng Electronics HID-based serial adapater'''
Device Descriptor:
  bLength                18
  bDescriptorType        1
  bcdUSB              1.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass        0
  bDeviceProtocol        0
  bMaxPacketSize0        8
  idVendor          0x1a86 '''QinHeng Electronics'''
  idProduct          0xe008 '''HID-based serial adapater'''
  bcdDevice          11.00
  iManufacturer          1 '''WCH.CN �'''
  iProduct                2 '''USB to Serial'''
  iSerial                0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                9
    bDescriptorType        2
    wTotalLength          41
    bNumInterfaces          1
    bConfigurationValue    1
    iConfiguration          4
    bmAttributes        0x80
      (Bus 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      37
          Report Descriptor: (length is 37)
            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 0x00 ] 255
            Item(Global): Report Size, data= [ 0x08 ] '''8'''
            Item(Global): Report Count, data= [ 0x08 ] '''8'''
            Item(Main  ): '''Input''', data= [ 0x02 ] 2
                            Data Variable 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= [ 0x08 ] '''8'''
            Item(Main  ): '''Output''', data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x03 ] 3
                            (null)
            Item(Global): Report Size, data= [ 0x08 ] '''8'''
            Item(Global): Report Count, data= [ 0x05 ] '''5'''
            Item(Main  ): '''Feature''', data= [ 0x02 ] 2
                            Data Variable 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    0x82  '''EP 2 IN'''
        bmAttributes            3
          Transfer Type            '''Interrupt'''
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0008  1x 8 bytes
        bInterval              5
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x02  '''EP 2 OUT'''
        bmAttributes            3
          Transfer Type            '''Interrupt'''
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0008  1x 8 bytes
        bInterval              5
Device Status:    0x0000
  (Bus Powered)
</small>

Latest revision as of 20:55, 3 January 2014