Stable alternative to RXTX(RXTX 的稳定替代品)
问题描述
在将 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 的稳定替代品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:RXTX 的稳定替代品
基础教程推荐
- 无法使用修饰符“public final"访问 java.util.Ha 2022-01-01
- “未找到匹配项"使用 matcher 的 group 方法时 2022-01-01
- FirebaseListAdapter 不推送聊天应用程序的单个项目 - Firebase-Ui 3.1 2022-01-01
- 如何使用 Java 创建 X509 证书? 2022-01-01
- 设置 bean 时出现 Nullpointerexception 2022-01-01
- 降序排序:Java Map 2022-01-01
- 减少 JVM 暂停时间 >1 秒使用 UseConcMarkSweepGC 2022-01-01
- Java:带有char数组的println给出乱码 2022-01-01
- Java Keytool 导入证书后出错,"keytool error: java.io.FileNotFoundException &拒绝访问" 2022-01-01
- 在 Libgdx 中处理屏幕的正确方法 2022-01-01