问题描述
在将RXTX用于许多不同的项目之后,我遇到了许多烦人的差异和问题,这些问题只能明智地归结为库中的错误 - 死锁,竞争危险以及RXTX库深处的监控线程open open阻止程序关闭(即使我正在使用的所有端口都已关闭!)运行最新的不稳定版本有所帮助,但它仍然远离我称之为可靠的地方,以及项目上的活动目前似乎相当低。
After using RXTX for a number of different projects, I've come across many annoying discrepancies and issues that can only sensibly be put down to bugs in the library - deadlocks, race hazards, and monitor threads deep in the RXTX library being left open preventing the program from closing (even though all ports I was using have been closed!) Running the latest "unstable" version has helped a bit, but it's still far from where I'd call it reliable, and activity on the project seems rather low at present.
但是,搜索RXTX的免费跨平台替代品似乎没有提出太多其他内容。
However, searching for free cross-platform alternatives to RXTX doesn't seem to come up with much else.
是否有其他人试图运气更好的图书馆?我不需要并行端口支持,只需要串行,它不一定要与RXTX或 javax.comm
API兼容。
Is there another library that anyone's tried with more luck? I don't need parallel port support, just serial, and it doesn't necessarily have to be compatible with RXTX or the javax.comm
API.
推荐答案
我们搬到了在当前版本0.9.0中看起来非常稳定和舒适。目前,它适用于Windows和Linux系统。我们将它用于调制解调器交互。
We have moved to java-simple-serial-connector which seems to be very stable and comfortable at the current release 0.9.0. For now, it works on windows and linux systems. We use it for modem interactions.
这篇关于RXTX的稳定替代品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!