This is another rxtx library release based on my previous release. This new version improves the “serial event callback function” and thus reduce the library latency enormous – for more information read THIS article.
So whats the use of this updated library? For example, talk to your Arduino up to 10 times faster with the new library.
Download my modified source rxtx-2.2pre5-src.zip
and the Windows and MacOSX binaries rxtx-2.2pre5-bin.zip
Here is the cvs diff.
Build RXTX library for Windows – make sure you installed Visual Studio Express.
1 2 3 4 5 6 7 8 9 10 11 12 | C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools>vsvars32.bat Setting environment for using Microsoft Visual Studio 2010 x86 tools. C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools>cd c:\rxtx-devel\ C:\rxtx-devel> mkdir build C:\rxtx-devel> copy Makefile.msvc build\Makefile C:\rxtx-devel> cd build C:\rxtx-devel\build> set path=%PATH%;"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin" # EDIT Makefile and correct path variables C:\rxtx-devel\build> nmake serial |
Update 29.11.2012:
To build x86/x64 versions of the library with VS Express 2010 v7.1 use this command:
1 2 3 | C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin> SetEnv.Cmd /release /x64 /xp C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin>cd c:\rxtx-devel\build C:\rxtx-devel\build> nmake serial |




Hint: Ultimaker 3d printer is using this patched version of librxtx.
Hi,
Interested in your patches to rxtx.. but the windows .dll here does not work for me. tried compiling from your source, compiles identical .dll here. tried compiling from cvs, also gives non working dll. but, your version of 2.2pre3 works fine. so.. any idea what is going on? does the pre5 dll here work fine on other windows systems? any clue appreciated.
I use this dll on my 32bit Windows System for some PixelInvaders installation without issues…. are you using a 64bit os? what does “does not work” mean? Did you use Dependency Viewer to check some missing libraries? Oh, I had an issue on a old Windows XP System, after updating it so SP3 it worked.
I really wish I could elaborate on “does not work”, but it just.. fails silently.. no errors or warning but the rxtx objects in the java program can’t be initialized, class not found.. exact errors as when there is no .dll at all in the path. I tried enabling debugging in the makefile, made a .dll 50k larger but same silent failure. thanks for letting me know it does work on something at least :) now i will try to find the difference here.
just a note to say this does work very fine in a winxp VM running on the very same vista machine it wont load on. maybe just a problem with that box. if it is only a few words could you say how to make a 64 bit build? i tried changing obvious things in the makefile but no joy… i am !aware to windows :(
I guess I compiled the 64b version, you can get it from my github site:
https://github.com/neophob/PixelController/tree/master/lib/serial
cheers
sorry to bother, i think this is the pre2 64bit .dll.. it matches size with the one i have for pre2, claims to be pre2 in version warning, and performs as poorly as the pre2 i have :) did you ever build one for win64 with your latency patch? this is what i am trying to find, create, or beg..
Any chance you could provide some instructions for updating the library on Mac OS X systems? I’m having some latency issues with an Arduino project. Thanks, great post!
check out http://neophob.com/2010/07/serial-library-rxtx-v2-2pre3/ – I use OSX too!
Hi!
I need to modify the rxtxserial.dll to increase the answer in a spécial case of smardcard communication.
what environement have you used to gererate what we can found in the build folder? (enviroment , compilator ..)
what os do you use? the steps to compile it for windows are in this article, for osx use xcode and for linux use make.
hope that helps
cheers