in reply to Re: Serial port - "input" vs "read" in thread Serial port - "input" vs "read"
Thanks all for the responses. I have tried the other methods that you mentioned but probably did not play with them enough. At present I get "stale" data returns even thought I have -icanon set via a system call to stty (e.g. I am running in non canonical mode). I would have thought that in this mode the buffer is continuously flushed but it apparently is not even if I wait several seconds before a read. I have to "read down" the buffer to get the most recent data. I will try again with the other methods mentioned.
fritz
|