2

I have been trying for some time to get documentation on using Java and a Firmata client library for the communication between a PC and an Arduino. Please note I want to use Java only, i.e., not Processing.

Up to now I used the excellent Haskell library hArduino for Firmata communication with Arduino boards.

Now I am teaching a Java course at the university as a PhD student. Therefore I need to use Java. However, compared to Haskell there are no centralized libraries, packages, documentation as with Haskell.

So I used Google to find more information on using Firmata client libraries for Java. Unfortunately, the search results are polluted with irrelevant results about Processing and Javascript. Therefore I ask here.

According to the Firmata client library page, there are two Java client libraries. However, only 4ntoine seems to be up to date, while the Javarduino project seems abandoned.

So I guess the standard way is to use the "4ntoine" Java client library. Or are there other options?

(I am not interested in Processing or Javascript.)

Question: Where do I find up-to-date documentation and example code on using Firmata client libraries for Java?

  • Can someone create the firmata and java tags? – mrsteve Nov 28 '14 at 0:05
1

Maybe this can work for you. Some months ago i used RXTXcomm library [1] to send Arduino data to a Program i made in java and store in in a file, it works fine with some issues:

  • I made the Java programm in linux but just works in java 6, so in the windows pc of the client i installed that version, i don't know if works with java7 or java8 in windows.
  • Java programm reads data from Arduino sketch with Serial.print() function, Arduino continously is using this function, i lose some data, so i had to put a short delay to java programm get all data send by Arduino.

[1] http://rxtx.qbang.org/wiki/index.php/Main_Page

| improve this answer | |
0

Maybe JArduino can give you some useful information. Check the native code in jardunio.core.

| improve this answer | |
  • 3
    Link only answers are frowned upon because they don't add much value. Please expand your answer with information on why it is useful or make a comment instead. – sachleen Dec 10 '14 at 22:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.