This may help. I found a site which described modem access. In that I found:
fcntl(fd, F_SETFL, FNDELAY);
which while reading the port would allow checking the serial input buffer for bytes stored or 0 for none. I think this is what I need but am not sure of salient situations where this might cause data damage/loss. Can someone advise?
I vaguely remember about raw mode but if I am checking the modem from a second window while attempting to download on another am not sure if this will royally screw stuff up.
Last edited by waddles; 11-04-2013 at 12:09 PM.
|