LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 07: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, 08:40 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,969

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
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, 10: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 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 11:23 PM.

Main Menu
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