javax comm 2.0 API

Hello everyone.

Do anyone of you know why the new version ofcomm api (version 3.0)does not support Windows? It is only available for Solaris SPARC, Solaris x86, and Linux x86.

Therefore, I can only usecomm 2.0. But my problem is that although I have managed to connect a GPS device with my desktop, I can not do that with my laptop or a different desktop pc that I have tried.

The problem is that the application that I have developed can not find theCOM portthat I describe.

Any thoughts?

Thanks a lot

Pavlos

[582 byte] By [p_spanidisa] at [2007-11-26 22:41:55]
# 1

http://www.rxtx.org/

RXTX is an open source javax.comm 2.x compatible package with multi platform support. I use it on all of WinXP/CE, Linux, FreeBSD, OSX and it works like a charm for parallel, serial and serial to USB devices (for GPRS modems and GPS devices specifically). RXTX is nicely abstracted also so you don't specifically need to use anything but the javax.comm interface unless you want to use one of the API extensions (for example clearCommInput() which is a very obvious omission in the javax.comm api - skip() just does not cut it).

The code itself is not well documented - for the most part you can use the javax.comm documentation or just read the source - but it works, and works very well. Even if the heuristics in the RXTXCommDriver don't automatically find the device (you can check the sources as to why) you can add devices at runtime with CommPortIdentifier.addPortName() if needed.

deepravea at 2007-7-10 11:57:06 > top of Java-index,Java Essentials,New To Java...