views:

2840

answers:

3

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.

+1  A: 
VonC
A: 

Have you tried Javacomm from Sun?

Nick
Javacomm doesn't support Windows anymore. On their main page, they don't even list it. More searching reveals that Sun dropped support for it after Java 1.1.6
Steve
+4  A: 

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.

Software Monkey
word! serialio is it worth, really!
Marcel
I should, in fairness, point out that my project was done a little over 2 years ago, and RxTx may have progressed since then.
Software Monkey
The quality of the RXTX code is quite bad. Be prepared to jump through various hoops if you go down this road.
Gili