PDA

View Full Version : no more /dev/ttyUSB1 ?


daviddoria
23rd October 2008, 04:21 PM
I need to find out the "path" to a device I have plugged in. I thought it used to be something like /dev/ttyUSB1, but I don't have anything like that.

here is the last bit of dmesg

usb 1-6.1.4: configuration #1 chosen from 1 choice
input: 3Dconnexion SpaceNavigator as /devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6.1/1-6.1.4/1-6.1.4:1.0/input/input6
input,hidraw2: USB HID v1.10 Multi-Axis Controller [3Dconnexion SpaceNavigator] on usb-0000:00:1d.7-6.1.4
usb 1-6.1.4: New USB device found, idVendor=046d, idProduct=c626
usb 1-6.1.4: New USB device strings: Mfr=3, Product=1, SerialNumber=0
usb 1-6.1.4: Product: SpaceNavigator
usb 1-6.1.4: Manufacturer: 3Dconnexion



and here is lsusb

Bus 001 Device 010: ID 046d:c626 Logitech, Inc. 3DConnexion Space Navigator 3D Mouse


I don't see anything in those that gives me a path like /dev/something

How do I tell what the path is?

Thanks,
Dave

sideways
23rd October 2008, 04:52 PM
you can check what the most recent device node created is using something like

ls -lrt /dev

brebs
23rd October 2008, 04:55 PM

Set udev_log in /etc/udev/udev.conf, to see what udev does.

If you want to refer to the device, create a SYMLINK+="mynameforit" udev rule.

daviddoria
23rd October 2008, 04:56 PM
here is ls -lrt before i plug it in

drwxrwxrwt 2 root root 100 2008-10-23 11:22 shm
crw--w---- 1 doriad tty 4, 1 2008-10-23 11:52 tty1
drwxr-xr-x 4 root root 260 2008-10-23 11:52 input
crw-rw-rw- 1 root tty 5, 2 2008-10-23 11:52 ptmx


and after I plug it in


drwxrwxrwt 2 root root 100 2008-10-23 11:22 shm
crw-rw---- 1 root root 249, 26 2008-10-23 11:52 usbdev1.13_ep00
crw-rw---- 1 root root 250, 2 2008-10-23 11:52 hidraw2
crw-rw---- 1 root root 249, 27 2008-10-23 11:52 usbdev1.13_ep81
drwxr-xr-x 4 root root 280 2008-10-23 11:52 input
crw--w---- 1 doriad tty 4, 1 2008-10-23 11:52 tty1
crw-rw-rw- 1 root tty 5, 2 2008-10-23 11:52 ptmx



so is it one of these guys
usbdev1.13_ep81

that I have to use?

Thanks,
Dave

daviddoria
23rd October 2008, 04:59 PM
udev_log is set to "err" . so where would I look to see the log?

sideways
23rd October 2008, 05:04 PM
looks like /dev/hidraw2 is the one you want. What is the device? Have you any software to use with it? Is it a joystick, try 'jstest /dev/hidraw2'

daviddoria
23rd October 2008, 05:06 PM
it is called a "space navigator", its like a 3d-ish mouse - the goal is to use it in an openGL program I have, I haven't started doing anything yet, but I assumed that I'd need to know the path to the device once I do!

Does this still sound reasonable?

Dave

sideways
23rd October 2008, 05:10 PM
You mean one of these (http://www.linux.com/feature/60918)

You probably need a driver

http://www.3dconnexion.com/support/downloads.php

brebs
23rd October 2008, 05:14 PM
The log is /var/log/messages

input: 3Dconnexion SpaceNavigator as /devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6.1/1-6.1.4/1-6.1.4:1.0/input/input6
Is presumably also /dev/input/input6

sideways
23rd October 2008, 05:18 PM
I think you'll just get raw events dumped to those device nodes, you'll need the actual driver to interpret the events. You can see raw events using hexdump eg

hexdump -Cv /dev/hidraw2

or 'hexdump -Cv /dev/input/input6' etc