Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Arduino version of RXTX

branch: master
Octocat-spinner-32 CNI first import January 08, 2013
Octocat-spinner-32 MACOSX_IDE first import January 08, 2013
Octocat-spinner-32 Rewrite2010 first import January 08, 2013
Octocat-spinner-32 WinCE first import January 08, 2013
Octocat-spinner-32 contrib first import January 08, 2013
Octocat-spinner-32 debian first import January 08, 2013
Octocat-spinner-32 m4 first import January 08, 2013
Octocat-spinner-32 src code cleanup January 09, 2013
Octocat-spinner-32 tests first import January 08, 2013
Octocat-spinner-32 .gitignore wider gitignore January 15, 2013
Octocat-spinner-32 AUTHORS first import January 08, 2013
Octocat-spinner-32 BeOS first import January 08, 2013
Octocat-spinner-32 COPYING first import January 08, 2013
Octocat-spinner-32 ChangeLog first import January 08, 2013
Octocat-spinner-32 INSTALL first import January 08, 2013
Octocat-spinner-32 Makefile.am first import January 08, 2013
Octocat-spinner-32 Makefile.in first import January 08, 2013
Octocat-spinner-32 Makefile.lcc first import January 08, 2013
Octocat-spinner-32 Makefile.macosx first import January 08, 2013
Octocat-spinner-32 Makefile.mingw32 first import January 08, 2013
Octocat-spinner-32 Makefile.msvc first import January 08, 2013
Octocat-spinner-32 PORTING first import January 08, 2013
Octocat-spinner-32 README.IPAQ first import January 08, 2013
Octocat-spinner-32 README.OSX first import January 08, 2013
Octocat-spinner-32 README.SCO first import January 08, 2013
Octocat-spinner-32 README.md removed hidden chars in the readme February 21, 2013
Octocat-spinner-32 README.orig README January 09, 2013
Octocat-spinner-32 RMISecurityManager.html first import January 08, 2013
Octocat-spinner-32 SerialPortInstructions.txt first import January 08, 2013
Octocat-spinner-32 TODO first import January 08, 2013
Octocat-spinner-32 aclocal.m4 first import January 08, 2013
Octocat-spinner-32 autogen.sh first import January 08, 2013
Octocat-spinner-32 buildtest first import January 08, 2013
Octocat-spinner-32 buildwin32 first import January 08, 2013
Octocat-spinner-32 config.guess first import January 08, 2013
Octocat-spinner-32 config.h.in first import January 08, 2013
Octocat-spinner-32 config.sub first import January 08, 2013
Octocat-spinner-32 configure first import January 08, 2013
Octocat-spinner-32 configure.in first import January 08, 2013
Octocat-spinner-32 install-japanese.html first import January 08, 2013
Octocat-spinner-32 install-sh first import January 08, 2013
Octocat-spinner-32 ltconfig first import January 08, 2013
Octocat-spinner-32 ltmain.sh first import January 08, 2013
Octocat-spinner-32 missing first import January 08, 2013
Octocat-spinner-32 mkinstalldirs first import January 08, 2013
Octocat-spinner-32 rxtx.spec first import January 08, 2013
Octocat-spinner-32 stamp-h.in first import January 08, 2013
README.md

RXTX 2.2

Latest update with upstream: 2012-01-08

This fork of RXTX patches the upstream sources to introduce the following fixes:

  • support to linux ttyACM* devices
  • reduced latency (thanks @neophob)
  • faster ports listing on Windows boxes with some particular hardware (Bluetooth) configurations (thanks eried from the forum)

Upgrading the source code

Check it out from CVS with the commands

export CVSROOT=:pserver:anonymous@qbang.org:/var/cvs/cvsroot
cvs login # (then hit return)
cvs checkout -r commapi-0-0-1 rxtx-devel

Compiling on linux

Have the necessary tools in place: on debian/ubuntu apt-get install build-essentials should suffice. Then, in the repo folder, run:

mkdir build
../configure
make

and get the resulting files: they should be in folder YOUR_ARCH/.libs/.

If you are using a 64 bit Linux, you can produce 32 bit binaries too: run apt-get install gcc-multilib then run

mkdir build
CFLAGS="-m32" ../configure
make

Compiling on windows

Have the necessary tools in place. These are:

After you have cloned the repo, run:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools>vsvars32.bat
Set­ting envi­ron­ment for using Microsoft Visual Studio 2010 x86 tools.
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools>cd C:\RXTX\

C:\RXTX> mkdir build
C:\RXTX> copy Makefile.msvc build\Makefile
C:\RXTX> cd build
C:\RXTX\build> set path=%PATH%;"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin"

Then edit Makefile and correct path variables, in particular: JAVA_HOME, JUNIT_JAR, JAVAC, JAR, JAVAH, JAVA. Finally run:

C:\RXTX\build> nmake serial

Thanks to @neophob for his blog page.

Compiling on macosx

Have the necessary tools in place. These are:

Then, in a new terminal, clone the repo, cd into its folder, then:

mkdir build
cd build
rm -rf *
CFLAGS="-arch i386" LDFLAGS="-arch i386" sh ../configure
sed -e 's|/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../../../Headers|/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers|g' -i '' Makefile
sed -e 's|$(SHELL) glibtool|$(SHELL) glibtool --tag CC|g' -i '' Makefile
make
Something went wrong with that request. Please try again.