From 261d774aa7cb5e11f8efd9842ff3b566251a9a42 Mon Sep 17 00:00:00 2001 From: Marcus Handte Date: Mon, 29 Apr 2019 21:54:23 +0200 Subject: [PATCH] Added readme. --- README.md | 101 ++++++++++++++++++++++++++++++++++++++++++++ serial-rxtx/pom.xml | 1 + 2 files changed, 102 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..33520c7 --- /dev/null +++ b/README.md @@ -0,0 +1,101 @@ +# SmartBotKit Serial Communication Library + +A simple (wrapper) library to support the interaction between devices over a serial port. + +## Structure + +The **serial-core** of the library is a very thin interface to configure and access a serial +connection with the usual settings, i.e. baud rate, data bits, stop bits, parity and flow +control. In addition, the library contains the following extensions: + + - **serial-rxtx**: a wrapper around the [rxtx](http://rxtx.qbang.org) library which provides support for + traditional desktop systems including Windows, Linux and MacOS. A set of prebuilt binaries + with installation instructions for for 64-bit operating systems can be found + [here](http://fizzed.com/oss/rxtx-for-java). + - **serial-android**: an implementation of different USB serial drivers for devices running Android + that is based mostly on [UsbSerial](https://github.com/felHR85/UsbSerial). Note that in order to + load the correct driver, you need to know the association between hardware id and driver class as + explained in the [USB Guide](https://developer.android.com/guide/topics/connectivity/usb/host). + - **serial-test**: an implementation of a serial port that will generate a known byte sequence for + testing. + +## Versions + + - Latest development version: **1.0.0-SNAPSHOT** + - Latest production version: **none** + +## Usage + +To use the library, include the NES Maven repository in your build. The URLs are +[https://project.nes.uni-due.de/artifactory/snapshots](https://project.nes.uni-due.de/artifactory/snapshots) +and [https://project.nes.uni-due.de/artifactory/releases](https://project.nes.uni-due.de/artifactory/releases) +for the snapshot and release repository. The username is **public** and the password is also **public**. + +### Maven + +To include the repository in a Maven build, simply add the corresponding username and password via server entries +to your settings.xml. + +``` + + ... + + + snapshots.project.nes.uni-due.de + public + public + + + releases.project.nes.uni-due.de + public + public + + + ... + +``` + +Then point Maven to the correct repository by including the servers as repositories in you project's pom.xml. + +``` + + ... + + + snapshots.project.nes.uni-due.de + https://project.nes.uni-due.de/snapshots + + + releases.project.nes.uni-due.de + https://project.nes.uni-due.de/releases + + + ... + +``` + +### Gradle + +To include the repository in a Gradle project, add the configuration using the Maven closure to the repositories section of your build.gradle: + +``` +repositories { + ... + maven { + url "https://project.nes.uni-due.de/artifactory/snapshots" + credentials { + username = 'public' + password = 'public' + } + } + maven { + url "https://project.nes.uni-due.de/artifactory/releases" + credentials { + username = 'public' + password = 'public' + } + } +} +``` diff --git a/serial-rxtx/pom.xml b/serial-rxtx/pom.xml index 90992be..8ee84f4 100644 --- a/serial-rxtx/pom.xml +++ b/serial-rxtx/pom.xml @@ -29,6 +29,7 @@ org.rxtx rxtx ${version.rxtx} + pom