Roger Oberholtzer wrote:
I would love to know how. The serial settigns (baud rate and all) can, I think, be determined. But blocking mode is a generic file descriptor setting that I do not think is reported in /proc.
You can get/set it with fcntl().
One more detail, I run the serial port in canonical mode. So the read calls return only when there is a complete line of data. Which is how GPS NMEA records are reported. I am guessing that well tested apps like PPP do not run the serial port in this mode.
I think I would take a look at how ntp does it - ntp has interface code for GPS receivers too, maybe they've worked out the right way to do it? /Per Jessen, Zürich -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org