You are not logged in.
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 TMC488Is there a way to force udev to load the right interface? Or is the problem that I'm missing something from my kernel?
Offline
Does manually loading the usbtmc module help?
modprobe usbtmcOffline
Does manually loading the usbtmc module help?
hmm, nope, that doesn't seem to do anything.
Offline
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
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
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
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
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 0What 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-pciand 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
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