Go Down

Topic: Plain java Firmata implementation (Read 4300 times) previous topic - next topic

4ntoine

Dec 04, 2011, 07:01 am Last Edit: Dec 09, 2011, 12:30 pm by 4ntoine Reason: 1
I develop an app to interact with my arduino board and i decided to develop JavaFX 2.0 and Android apps also. I decided to use Firmata protocol (http://firmata.org/wiki/Main_Page), but unfortunately, existing Java implementation (http://www.arduino.cc/playground/Interfacing/Processing) has hard-coded processing.core.* and processing.serial.Serial dependencies.

So i created fork - plain Java Firmata implementation (almost the same code as original, so it has exactly the same features) with an opportunity to use any Serial implementation with adapter. It has regular Processing serial and RxTx adapters so you can use it with your existing code too.

Now you can use Firmata in your console java apps, Swing apps, JavaFX 2.0 apps and Android.

Check it out - https://github.com/4ntoine/Firmata

4ntoine

#1
Dec 07, 2011, 01:30 pm Last Edit: Dec 08, 2011, 08:48 am by 4ntoine Reason: 1
I've reviewed Processing Firmata implementation code and i am not happy with it  :smiley-sad-blue: I am going to refactor it. Can somebody help me with Firmata protocol details? F.e. Processing implementation does not implement some Firmata messages like 'report digital port' and there are few more questions.

4ntoine

Check out a new android application to control Arduino from Android - ArduinoCommander (https://market.android.com/details?id=name.antonsmirnov.android.arduinocommander). It uses this Firmata implementation.

amburkoff


Now you can use Firmata in your console java apps, Swing apps, JavaFX 2.0 apps and Android.

Excellent library!
Can write a test application on android using bluetooth and firmata?
I'm not good in java and android, so I can not understand itself.

Go Up