Re: [Gpsbabel-misc] Port /dev/ttyUSB0 not initialised on Linux 64 bits
Brought to you by:
robertl
From: Guillaume A. <gui...@gm...> - 2009-07-15 13:26:40
|
Hi, I used the flag, and I found this: $ gpsbabel -D 4 -t -r -w -i m241 -f /dev/ttyUSB0 -o gpx -F data.gpx GPSBabel Version: 1.3.6 options: module/option=value: m241/erase="0" (=default) Opening port /dev/ttyUSB0... gbser_init("/dev/ttyUSB0") Failed to open port (Permission denied) mtk_logger: Can't initialise port "/dev/ttyUSB0" It seems to be (only) a file permission issue. I didn't know it matters as I didn't have to run it as root on my other PC (Ubuntu 9.04 / 32bits). In running gpsbabel with sudo, I can now download successfully the gpx file. Changing the permission with chmod o+rw makes it always work. It could help to display by default the "Failed to open port (Permission denied)" error message to avoid investigating so long for a simple thing. Thanks a lot for your help. Guillaume 2009/7/15 John Doe <e4b...@ya...> > > Hi, > I just had a quick look at the gbser_posix.c source, > Could you try downloading with '-D 4' flag as well, then we could > see why it fails. > > I also noticed that there is a similar ',' (comma) construct within > the gbser_init() function - yes it's probably not a compiler bug..... > > >> else if (h->fd = open(port_name, O_RDWR | O_NOCTTY), h->fd == -1) { > > |