Documented interface to communicate with serial ports for beginners, including example project

From Rxtx

Revision as of 15:00, 13 June 2010 by Paranox (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Download

download the zip file [1]

Short Description

This is an interface, which is supposed to simplify communication with one or several serial ports (e.g. communication with arduinos [2]) for beginners. The interface consists of one class and one Java interface file, extensive documentation is included and can also be generated from the source code using Javadoc [3].

An very simple example project (look at the code or simply run it, it's pretty self explanatory) is provided to show the use of the interface.

An ant-buildfile [4] is part of the project, simplifying compilation and also the running of the example project without the need to install libraries in the system (on Linux). Adapt it as you want for your own projects!

Documentation

Please read the readme.txt in the zip-file for help on how to compile and run the example using ant. For help on the use of the methods implemented or the members of the class, read the included documentation (or the source code).

Usage

For simplicity, i packed everything (including the at the time of writing most recent stable version of RXTX) into the zip-file. Extract, go to the folder where it has been extracted on command line, type 'ant' and then 'ant run' to compile and run the example program on a Linux-box (note: you need to have ant [5] installed. For a different OS, consult the webpage on how to install the RXTX-library. Read the readme.txt for further explanations.

Personal tools