问题描述
在将 RXTX 用于许多不同的项目之后,我遇到了许多令人讨厌的差异和问题,这些问题只能合理地归结为库中的错误 - 死锁、竞争危险和 RXTX 库深处的监控线程被保持打开状态以防止程序关闭(即使我使用的所有端口都已关闭!)运行最新的不稳定"版本有所帮助,但它仍然远离我称之为可靠的地方,以及项目上的活动目前似乎相当低.
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.
推荐答案
我们已经搬到 java-simple-serial-connector 在当前版本 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 的稳定替代品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!