Windows 上的 Java RS-232 通信
有谁知道在 WIN32 环境中控制 RS-232 设备的良好 Java API? 我试过 RXTX 但他们不支持 RS232,只支持 RS-485。
Does anyone know of a good Java API for controlling RS-232 devices in a WIN32 enviroment?
I've tried RXTX but they don't support RS232, only RS-485.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
毫无保留地,我推荐来自 serialio.com 的 Java Serial Port。 我在使用 Sun、IBM 和 RxTx 串行软件包时遇到了严重的稳定性问题。 SerialPort 在生产中已经坚如磐石,持续了 2 年多,全天候(24/7)。
它们支持标准的 Java 串行 API,以及他们自己的替代专有 API。 不过,我会坚持使用标准 API,除非您确实需要他们拥有而标准 API 没有的东西,只是为了保持您的选择余地。
Without reservation, I recommend Java Serial Port from serialio.com. I had significant stability problems with the Sun, IBM and RxTx serial packages. SerialPort has been rock solid in production for over 2 years 24/7.
They support the standard Java serial API, as well as their own alternative proprietary one. I would stick with the standard API though, unless you really need something theirs has that the standard one doesn't, just to keep your options open.
我建议你尝试jSSC。 该库支持Win32(Win98 - Win7)和Win64。 Linux 版本正在建设中。 Google 代码项目页面:http://code.google.com/p/ java-simple-serial-connector/
I advise you to try jSSC. This lib support Win32(Win98 - Win7) and Win64. Linux version under construction. Project page on Google code: http://code.google.com/p/java-simple-serial-connector/
J/CoMM 怎么样?
What about J/CoMM?
我刚刚使用 Java 1.6 和 Windows 7 64 位快速且没有问题地通过 Scream3r 的 jSSC 库实现了单向接口(设备->计算机)。
提示:如果您查看 jSSC-Terminal.zip 中的附加代码,您会得到一个很好的(对于使用该库至关重要的)示例,说明如何使用该库!
谢谢 Scream3r 分享这个,你让我很开心!
I've just implemented a single-direction interface (device->computer) with Scream3r's jSSC library using Java 1.6 and Windows 7 64 bit quickly and without problems.
Hint: If you look at his additional code in jSSC-Terminal.zip you get a nice (and essential for using the lib) example how to work with the library!
Thank you Scream3r for sharing this, you made my day!
我偶然发现了 scm,它是另一个用于 RS232 串口通信的开源库。 项目页面为 https://github.com/RishiGupta12/serial-communication-manager
I stumbled upon scm which is another open source library for RS232 serial port communication. Project page is https://github.com/RishiGupta12/serial-communication-manager
您是否尝试过 Sun 的 Javacomm ?
Have you tried Javacomm from Sun?