Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 06-24-2006, 04:14 PM   #1
Registered: Jan 2006
Location: Atlanta, GA
Distribution: Mandriva 2006
Posts: 75

Rep: Reputation: 15
Importing data from /dev/ttyUSB0

I have a problem trying to import data from a Garmin Forerunner 305 USB device. dmesg shows the following:

usb 1-2: new full speed USB device using ohci_hcd and address 3
usbcore: registered new driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic
usbcore: registered new driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
drivers/usb/serial/usb-serial.c: USB Serial support registered for Garmin GPS usb/tty
garmin_gps 1-2:1.0: Garmin GPS usb/tty converter detected
usb 1-2: Garmin GPS usb/tty converter now attached to ttyUSB0
usbcore: registered new driver garmin_gps
drivers/usb/serial/garmin_gps.c: garmin gps driver v0.23

However, if I try to do a cat /dev/ttyUSB0 it just hangs and the cursor doesn't return. Google Earth is also supposed to be able to import the data, but it hangs also.

By the way, if I plug it into the other USB port, it still declares that it is attached to ttyUSB0.

I seem to be missing something here, but I don't know what it is.

Any ideas?

Any ideas?
Old 06-29-2006, 09:06 PM   #2
Registered: Aug 2002
Posts: 13,455

Rep: Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106
I googled a bit.

and this may be of some help.

It appears that the device is being recognized and like you have discovered is independent of the connected USB port i.e. since it is the only tty USB device it should always be /dev/ttyUSB0.

IMO your not seeing any data from the device via the cat command because there is nothing in the receive buffer and the unit might be waiting for commands from the PC to send something. The same thing happens with my serial devices.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically set permissions on /dev/ttyUSB0 MicahCarrick Linux - Software 1 03-22-2006 09:20 AM
Failed to open device /dev/usb/ttyUSB0: No such device efm Linux - Newbie 2 04-04-2005 09:46 PM
/dev/ttyUSB0 and permissions mrsolo Linux - Software 1 11-14-2004 04:24 PM
serial to USB, trying to read from /dev/ttyUSB0 in C code newguy21 Programming 1 09-29-2004 02:11 PM
/dev/ttyUSB0 js72 Linux - Networking 1 01-05-2003 07:02 AM

All times are GMT -5. The time now is 11:27 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration