[Rxtx] read() not blocking?
Knute Johnson
knute at frazmtn.com
Sat Sep 23 14:04:01 MDT 2006
I'm converting from javax.comm to rxtx and have run in to a snag. My
code needs to block indefinitely on a serial port read() but is
returning -1. Both read timeout and read threshold are disabled. It
doesn't seem to matter if I call disableReceiveTimeout() or
enableReceiveTimeout(0). Behavior appears normal if timeout is set
to some normal value. For now I have enabled receive timeout and set
the value to Integer.MAX_VALUE.
Is this a bug or?
My computer is running XP SP2 and RXTX is 2.1-7.
Any ideas would be greatly appreciated.
Thanks,
--
Knute Johnson
Molon Labe...
More information about the Rxtx
mailing list