Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#644035: gpsbabel: Cannot open serial port '/dev/ttyUSB0': Permission denied

126 views
Skip to first unread message

Guillermo Lengemann

unread,
Oct 2, 2011, 12:30:01 AM10/2/11
to
Package: gpsbabel
Version: 1.4.0-1
Severity: important


When I connect my GPS using a USB cable to download gpx traces the
device is mounted on /dev/ttyUSB0.

#tail -f /var/log/syslog

Oct 1 22:22:07 debian-hacking kernel: [262193.378693] usb 2-1: USB
disconnect, address 8
Oct 1 22:22:19 debian-hacking kernel: [262205.876075] usb 2-1: new full
speed USB device using ohci_hcd and address 9
Oct 1 22:22:19 debian-hacking kernel: [262206.037098] usb 2-1: New USB
device found, idVendor=091e, idProduct=0003
Oct 1 22:22:19 debian-hacking kernel: [262206.037104] usb 2-1: New USB
device strings: Mfr=0, Product=0, SerialNumber=0
Oct 1 22:22:19 debian-hacking kernel: [262206.037247] usb 2-1:
configuration #1 chosen from 1 choice
Oct 1 22:22:19 debian-hacking kernel: [262206.039172] garmin_gps
2-1:1.0: Garmin GPS usb/tty converter detected
Oct 1 22:22:19 debian-hacking kernel: [262206.039291] usb 2-1: Garmin
GPS usb/tty converter now attached to ttyUSB0

But when I try using gpsbabel for download traces I get the following
message:

$gpsbabel -w -r -t -i garmin -f /dev/ttyUSB0 -o gpx -F /home/<path>.gpx
[ERROR] XSERIAL: Cannot open serial port '/dev/ttyUSB0': Permission
denied
[ERROR] Cannot open serial port '/dev/ttyUSB0'
GARMIN:Can't init /dev/ttyUSB0

The group of /dev/ttyUSB0 is dialout.

#ls -l /dev/|grep ttyUSB0
crw-rw---- 1 root dialout 188, 0 oct 1 22:22 ttyUSB0

My users in a newly installed system, not include in the group dialout.

#groups <user>
<user> : <user> lp cdrom floppy audio dip video plugdev lpadmin netdev

I solved the problem add user to dialout group.

#adduser <user> dialout

After that I download the tracks.

-- System Information:
Debian Release: 6.0.2
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=es_VE.utf8, LC_CTYPE=es_VE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gpsbabel depends on:
ii libc6 2.11.2-10 Embedded GNU C Library:
Shared lib
ii libexpat1 2.0.1-7 XML parsing C library -
runtime li
ii libusb-0.1-4 2:0.1.12-16 userspace USB programming
library
ii zlib1g 1:1.2.3.4.dfsg-3 compression library -
runtime

Versions of packages gpsbabel recommends:
ii gpsbabel-doc 1.4.0-1 GPS file conversion plus
transfer

gpsbabel suggests no packages.

-- no debconf information




--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
0 new messages