Newport Power Meter 2935T-C via libusb on Linux

This power meter from Newport has a serial RS232 and a USB connection. This page tries to find out how it's possible to talk to the device via USB. For RS232 connection, look at the blog post Newport Power Meter 2935T-C – Serial Connection via Python.

USB Connection Info

Output of dmesg:

[ 7007.801523] usb 2-2: new full speed USB device using uhci_hcd and address 7
[ 7007.955141] hub 2-2:1.0: USB hub found
[ 7007.956112] hub 2-2:1.0: 7 ports detected
[ 7008.240868] usb 2-2.1: new full speed USB device using uhci_hcd and address 8

Information of Apple's OS X 10.6.8 System Profiler:

 Newport Instrument:

  Product ID:   0xcec7
  Vendor ID:    0x104d
  Version:   0.00
  Speed:    Up to 12 Mb/sec
  Manufacturer: Newport
  Location ID:  0xfa134000 / 7
  Current Available (mA):   500
  Current Required (mA):    0

lsusb -v:

Bus 002 Device 008: ID 104d:cec7 Newport Corporation 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        16
  idVendor           0x104d Newport Corporation
  idProduct          0xcec7 
  bcdDevice            0.00
  iManufacturer           1 
  iProduct                2 
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xc0
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
can't get device qualifier: Operation not permitted
can't get debug descriptor: Operation not permitted
cannot read device status, Operation not permitted (1)

Inspiration

check http://libusb.6.n5.nabble.com/Help-needed-to-read-write-using-libusb-tt7669.html#none

Resources

Comments