This project is intended to bring a full range of serial communications to Java. This does not use the Java comm API, however it is partially inspired by it.
The reason that I created this library was because I felt that the Java Comm API was not flexible enough – it did not allow me to do everything that I wanted. As I wrote this library, I came to the conclusion that this was because of limitations in the Windows Serial API, and not because of any other reasons. This library is designed to be as similar as possible to the normal Java way of reading and writing files, in that it uses InputStreams and OutputStreams in order to do all of its work. This makes it very simple to add in a serial port to your application.
The code for this project is released under Apache 2.0 license. This means that you can use it in both commercial and non-commercial programs, as long as you give credit.
Bug fixes and patches are always welcome. Please file a bug report.
Check out the source code on GitHub!
The easiest way to use the library is to create a Maven project, and add it as a dependency:
<dependency> <groupId>com.rm5248</groupId> <artifactId>JavaSerial</artifactId> <version>0.9</version> </dependency>
Java Serial 0.10 [SOURCE]
Java Serial 0.9 [SOURCE]
Java Serial 0.8 [SOURCE]
Java Serial 0.7 [SOURCE]
JAVA SERIAL 0.6.1 [SOURCE]
Java Serial 0.5 [Source]