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 的稳定替代品
- value & 是什么意思?0xff 在 Java 中做什么? 2022-01-01
- Java包名称中单词分隔符的约定是什么? 2022-01-01
- C++ 和 Java 进程之间的共享内存 2022-01-01
- Eclipse 插件更新错误日志在哪里? 2022-01-01
- 如何使用WebFilter实现授权头检查 2022-01-01
- Safepoint+stats 日志,输出 JDK12 中没有 vmop 操作 2022-01-01
- 将log4j 1.2配置转换为log4j 2配置 2022-01-01
- 从 finally 块返回时 Java 的奇怪行为 2022-01-01
- Spring Boot连接到使用仲裁器运行的MongoDB副本集 2022-01-01
- Jersey REST 客户端:发布多部分数据 2022-01-01