LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-23-2004, 02:12 PM   #1
newguy21
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, 01:11 PM   #2
newguy21
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
 
  


Reply


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 10:04 AM
Failed to open device /dev/usb/ttyUSB0: No such device efm Linux - Newbie 2 04-04-2005 08:46 PM
/dev/ttyUSB0 and permissions mrsolo Linux - Software 1 11-14-2004 03:24 PM
zoom external serial with usb to serial adapter foustware Linux - Hardware 1 12-07-2003 02:02 AM
/dev/ttyUSB0 js72 Linux - Networking 1 01-05-2003 06:02 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:31 PM.

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