LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices



Reply
 
Search this Thread
Old 08-24-2004, 08:47 PM   #1
PrerakParikh
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.

Regards,
Prerak
 
Old 08-24-2004, 09:40 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,175

Rep: Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784
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:
http://www.ncc.up.pt/gpsman/
 
Old 08-24-2004, 11:17 PM   #3
PrerakParikh
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
 
  


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


All times are GMT -5. The time now is 08:21 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration