Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 08-24-2004, 07:47 PM   #1
LQ Newbie
Registered: Aug 2004
Posts: 2

Rep: Reputation: 0
accessing data from serial port

Hi all,

I am pretty new at linux. I have two serial ports(ttyS0 & ttyS1), on one I have GPS system and on the other I have a weather station. I am trying to read data from both the serial ports. I am able to read the data from the weather station, but when i try to read data from gps(ttyS1) the output remains blank. It doesn't even print out the printf statements, that are before the open() & read() functions. Please suggest me.

Old 08-24-2004, 08:40 PM   #2
Registered: Aug 2002
Posts: 13,319

Rep: Reputation: 1093Reputation: 1093Reputation: 1093Reputation: 1093Reputation: 1093Reputation: 1093Reputation: 1093Reputation: 1093
Does connecting the weather station to the 2nd serial port work? Are the permissions on the 2nd serial port correct?

Maybe you seen this app:
Old 08-24-2004, 10:17 PM   #3
LQ Newbie
Registered: Aug 2004
Posts: 2

Original Poster
Rep: Reputation: 0
It doesn't give me errors pertaining to permissions. it just hangs up without showing any output


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
Serial port capture printed data erald Linux - Software 0 04-12-2005 01:12 AM
reading data from a serial port mchitrakar Linux - Networking 3 12-04-2004 01:24 PM
Serial port data to audio on the fly floydes Programming 0 10-14-2004 01:35 AM
exchanging data between 2 computer using serial port blackzone Linux - General 1 07-24-2004 02:54 AM
Log incomming data from a serial port shoekstr Linux - Hardware 6 05-28-2004 10:53 AM

All times are GMT -5. The time now is 12:48 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