Windows上的Java RS-232通信 [英] Java RS-232 Communication on Windows
问题描述
有没有人知道用于在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.
推荐答案
无保留,我推荐 serialio.com 中的Java串口。我在Sun,IBM和RxTx系列软件包中遇到了严重的稳定性问题。 SerialPort已经在生产中稳定运行超过2年24/7。
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.
它们支持标准的Java串行API,以及它们自己的替代专有API。我会坚持使用标准的API,除非你真的需要他们的标准API没有,只是为了让你的选项保持开放。
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.
这篇关于Windows上的Java RS-232通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!