LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   accessing data from serial port (https://www.linuxquestions.org/questions/linux-hardware-18/accessing-data-from-serial-port-221975/)

PrerakParikh 08-24-2004 07:47 PM

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

michaelk 08-24-2004 08:40 PM

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/

PrerakParikh 08-24-2004 10:17 PM

It doesn't give me errors pertaining to permissions. it just hangs up without showing any output


All times are GMT -5. The time now is 08:48 AM.