Henry Poon's Blog

Java Serial Programming

After fiddling with using the Serial Monitor on the Arduino IDE for serial communication inputs, I thought it was very useful to set up my own program to achieve the serial communication so that I didn’t have to rely on the Serial Monitor for it.  I came across a serial communication API called JavaComm (more info in the link below).  Only its 2.0 version will run on Windows, but there is a 3.0 version that is available for Linux users.  The article discusses how to use the library to achieve serial communication, and has a lot of example code to follow.  The PDF in the other link below has information on how to use the JavaComm API, and the information there is presented a little better than Wiki pages, since Wiki pages seem to be loaded with technical information that beginners (like me), can’t really follow too well.

Link: http://en.wikibooks.org/wiki/Serial_Programming/Serial_Java

Link: http://java.sun.com/developer/Books/javaprogramming/cookbook/11.pdf

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Next Post

Previous Post

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

© 2024 Henry Poon's Blog

Theme by Anders Norén