In article <4b1405d5$0$3022$>,
Knute Johnson <> wrote:
> Ralph Lecher wrote:
> > With the RXTX Comm API is there a way to avoid OutputStream.write()
> > blocking the application if the targeted serial device doesn't take
> > over the offered data. I only found SerialPort.
> > enableReceiveTimeout(), which I hope prevents at least
> > InputStream.read() from heading towards Nirvana.
The ADTPro project does exactly that:
<https://sourceforge.net/projects/adtpro/>
If you're stuck with RXTX, you might like to look at the project's
transport layer, which uses RXTX for serial I/O:
<http://adtpro.cvs.sourceforge.net/viewvc/adtpro/adtpro/org/adtpro/transport/>
> It shouldn't block which just shows that RXTX has numerous bugs. Use
> Sun's JavaComm API. They support the Linux version and the Windows
> version still works fine (at least on XP). Your only other option is
> to buffer it.
--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
|