[Linux] Permission issue with USB device
Steven Benmosh
wordz2u at gmail.com
Sat Jun 27 18:04:33 EDT 2009
1. It looks like the /dev/ttyUSB0 is temporary.
I inserted the keyspan to the usb and got
ls -l /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 2009-06-27 15:31 /dev/ttyUSB0
Took it out and got
ls: cannot access /dev/ttyUSB0: No such file or directory
Placed the GPS in (another) gps port.
lsusb recognizes the garmin
Bus 005 Device 003: ID 091e:0003 Garmin International GPSmap (various
models)
But I can't find it as /dev/ttyUSB0 or 1.
My udev.conf has only one line, udev_log="err". There are some rules in my
rules.d, the one that applies to my situation is: 10-local.rules, which has
two lines:
SUBSYSTEMS=="usb", ATTRS{dev}=="188:0", NAME="garmin", SYMLINK="gps",
GROUP="dialout"
SUBSYSTEMS=="usb", ATTRS{idProduct}=="0003", ATTRS{idVendor}=="091e",
NAME="garmin", SYMLINK="gps", GROUP="dialout"
/etc/udev/rules.d$ ls -l /dev/g*
crw-rw---- 1 root dialout 252, 16 2009-06-27 15:51 /dev/garmin
lrwxrwxrwx 1 root root 6 2009-06-27 15:51 /dev/gps -> garmin
When I try to reach /dev/gps or /dev/garmin, I get the same error, unable to
connect.
Here is what I get from dmesg, first after using the keyspan, then with the
GPS.
usb 5-2: new full speed USB device using uhci_hcd and address 2
[31568.787351] usb 5-2: configuration #1 chosen from 2 choices
[31568.945642] usbcore: registered new interface driver usbserial
[31568.945657] USB Serial support registered for generic
[31568.945690] usbcore: registered new interface driver usbserial_generic
[31568.945692] usbserial: USB Serial Driver core
[31568.958000] USB Serial support registered for Keyspan - (without
firmware)
[31568.958016] USB Serial support registered for Keyspan 1 port adapter
[31568.958030] USB Serial support registered for Keyspan 2 port adapter
[31568.958043] USB Serial support registered for Keyspan 4 port adapter
[31568.958080] keyspan 5-2:1.0: Keyspan 1 port adapter converter detected
[31568.958192] usb 5-2: Keyspan 1 port adapter converter now attached to
ttyUSB0
[31568.958206] usbcore: registered new interface driver keyspan
[31568.958209] keyspan: v1.1.5:Keyspan USB to Serial Converter Driver
[31704.972075] usb 5-2: USB disconnect, address 2
[31704.974592] keyspan_1 ttyUSB0: Keyspan 1 port adapter converter now
disconnected from ttyUSB0
[31704.974613] keyspan 5-2:1.0: device disconnected
[31825.544056] usb 5-1: new full speed USB device using uhci_hcd and address
3
[31825.692514] usb 5-1: configuration #1 chosen from 1 choice
Regardless of not having /dev/ttyUSB0, I can still access the gps with
gpsbabel, so long as I use sudo.
Hmmm. Confounded...
Z.
On Fri, Jun 26, 2009 at 4:38 PM, Kwan Lowe <kwan at digitalhermit.com> wrote:
> On Fri, Jun 26, 2009 at 5:58 PM, Steven Benmosh<wordz2u at gmail.com> wrote:
> > Hi All,
> >
> > I am using a new, USB GPS, Garmin eTrex Venture HC, and I am experiencing
> a
> > peculiar behavior.
> >
> > When I use GPSMan and set up to use device /dev/ttyUSB0, I get an 'Cannot
> > open device /dev/ttyUSB0' message. GPSMan does not run as root, so I
> can't
> > do anything about it.
>
> You're likely using udev if it's a modern distro. Check out the
> settings in /etc/udev/udev.conf. Some distros will place them in
> subdirectories under /dev/udev. Just grep for the tty device and you
> should see a bunch of lines similar to:
>
>
> KERNEL=="ttyUSB*", SYSFS{product}=="Palm Handheld*", SYMLINK+="pilot",
> GROUP="uucp", MODE="0660"
> KERNEL=="ttyUSB*", SYSFS{product}=="palmOne Handheld*",
> SYMLINK+="pilot", GROUP="uucp", MODE="0660"
> KERNEL=="ttyUSB*", SYSFS{product}=="Handspring Visor*",
> SYMLINK+="pilot", GROUP="uucp", MODE="0660"
>
>
> Change the MODE setting to what you want.
> _______________________________________________
> Linux mailing list
> Linux at flux.org
> http://www.flux.org/mailman/listinfo/linux
>
--
Check out my web site - www.words2u.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.flux.org/pipermail/linux/attachments/20090627/cdd5355f/attachment.html
More information about the Linux
mailing list