You are not logged in.

#1 2014-06-25 16:46:40

c2hollow
Member
From: Kitchener, Ontario
Registered: 2013-11-27
Posts: 30

udev not loading the right driver for usbtmc device

I have a usb beam profiler  and I'm trying to get it to work on arch linux. It works using NI-VISA, so I should be able to communicate with it using usbtmc. However, when I plug it in, it does not show up in /dev.

I think the problem is that udev is not loading the tmc interface driver when I plug it in.

Here's a snippet of the output from lsusb -v:

    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           4
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 

I believe that bInterface* should look something like:

      bInterfaceClass       254 Application Specific Interface
      bInterfaceSubClass      3 Test and Measurement
      bInterfaceProtocol      1 TMC
      iInterface              5 TMC488

Is there a way to force udev to load the right interface? Or is the problem that I'm missing something from my kernel?

Offline

#2 2014-06-25 17:02:45

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: udev not loading the right driver for usbtmc device

Does manually loading the usbtmc module help?

modprobe usbtmc

Offline

#3 2014-06-25 17:08:21

c2hollow
Member
From: Kitchener, Ontario
Registered: 2013-11-27
Posts: 30

Re: udev not loading the right driver for usbtmc device

Does manually loading the usbtmc module help?

hmm, nope, that doesn't seem to do anything.

Offline

#4 2014-06-25 17:20:09

c2hollow
Member
From: Kitchener, Ontario
Registered: 2013-11-27
Posts: 30

Re: udev not loading the right driver for usbtmc device

Is the problem that the usbtmc does not recognize the VID/PID as in its list of usbtmc devices? How does usbtmc know what devices are compatible?

Offline

#5 2014-06-25 17:41:27

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: udev not loading the right driver for usbtmc device

Could you post the entire output of lsusb -v for the device?
What device node name are you expecting?
Is there a chance that it is being instantiated as a HID device?  Does /dev/usbhid0 appear?
What does the journal say when the device has been attached?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#6 2014-06-25 17:42:12

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: udev not loading the right driver for usbtmc device

Have you read http://www.home.agilent.com/upload/cmc_ … usbtmc.htm theres a link from there to a download for usbtmc.tar which contains a shell script usbtmc_load which looks relevant.

Offline

#7 2014-06-25 17:57:39

c2hollow
Member
From: Kitchener, Ontario
Registered: 2013-11-27
Posts: 30

Re: udev not loading the right driver for usbtmc device

Have you read http://www.home.agilent.com/upload/cmc_ … usbtmc.htm theres a link from there to a download for usbtmc.tar which contains a shell script usbtmc_load which looks relevant.

That script requires that I have a file called usbtmc.ko, is this different from what I have already under /sys/bus/usb/drivers/usbtmc and /sys/module/usbtmc?

Offline

#8 2014-06-25 18:03:48

c2hollow
Member
From: Kitchener, Ontario
Registered: 2013-11-27
Posts: 30

Re: udev not loading the right driver for usbtmc device

Could you post the entire output of lsusb -v for the device?

Bus 001 Device 013: ID 1313:8019 ThorLabs 
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x1313 ThorLabs
  idProduct          0x8019 
  bcdDevice            0.00
  iManufacturer           1 
  iProduct                2 
  iSerial                 3 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           46
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           4
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x88  EP 8 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0

What device node name are you expecting?

Not sure, but probably /dev/usbtmc0

Is there a chance that it is being instantiated as a HID device?  Does /dev/usbhid0 appear?

Nope, don't have a /dev/usbhid0

What does the journal say when the device has been attached?

I'm not sure what you mean, but dmesg says:

[ 6095.219400] usb 1-1.2: new high-speed USB device number 14 using ehci-pci

and udevadm monitor says:

KERNEL[6098.321484] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2 (usb)
KERNEL[6098.321887] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0 (usb)
UDEV  [6098.324333] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2 (usb)
UDEV  [6098.325356] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0 (usb)

Offline

#9 2014-06-25 18:37:41

c2hollow
Member
From: Kitchener, Ontario
Registered: 2013-11-27
Posts: 30

Re: udev not loading the right driver for usbtmc device

hmm, compiling and loading the Agilent driver replaced a registered module called "usbtmc" with one called "USBTMC". It created /dev/usbtmc0-9, but it did not change the interface type of my camera.

Offline

Board footer

Powered by FluxBB