Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-23-2004, 03:12 PM   #1
LQ Newbie
Registered: Jul 2004
Posts: 8

Rep: Reputation: 0
serial to USB, trying to read from /dev/ttyUSB0 in C code

I'm trying to read a GPS stream from /dev/ttyUSB0 in code. I have an external gps sending out a data stream on a serial line and then i have a serial to USB converter so I can use the USB port. I see the GPS data stream by doing cat /dev/ttyUSB0, but when I try to read it in code I dont get the messages. what could be different? Do I need to set up /dev/ttyUSB0 differently than /dev/ttyS0. Once I plug the db9 connector from the gps into COM1 and change and run my code it works fine. Thanks in advance, this forum rocks.
Old 09-29-2004, 02:11 PM   #2
LQ Newbie
Registered: Jul 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Do you set up COM1 the same for dev/ttyS0 as you would for /dev/ttyUSB0??? Thanks


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
USB to Serial Converter on Serial Modem bongski55 Linux - General 3 08-29-2005 11:04 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
zoom external serial with usb to serial adapter foustware Linux - Hardware 1 12-07-2003 03:02 AM
/dev/ttyUSB0 js72 Linux - Networking 1 01-05-2003 07:02 AM

All times are GMT -5. The time now is 12:23 AM.

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