Pages: [1]   Go Down
Author Topic: Can the arduino run a java application  (Read 605 times)
0 Members and 1 Guest are viewing this topic.
London
Offline Offline
Jr. Member
**
Karma: 0
Posts: 50
Uk Arduino Member
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Dear everyone,
At this moment in time im working on a project with the arduino.
And i want to run a java application on the arduino so it can talk to other devices running my java application?
is it possible to run a java applicaiton on the arduino itself?
Or do i have to say "connect it to a computer which runs a java application?

Would be great to get some information so my project can move forward

Kind Regards

Lewis
Logged

Lewis Joyce

Offline Offline
Edison Member
*
Karma: 58
Posts: 2078
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No.
The 'normal' Arduino boards run compiled code and can turn a led on and off and so. But communication with .NET is possible for some board and the new Arduino Due has more possibilities.

However, the Arduino can communicate with almost everything.
See the Playground section, http://playground.arduino.cc//Main/InterfacingWithHardware#Communication
How would you want to communicate between the Java applications ?
Logged

London
Offline Offline
Jr. Member
**
Karma: 0
Posts: 50
Uk Arduino Member
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

we are communicating with TCP messaging through java.

So im guessing we would have to have the java application on the computer itself.

Regards

Lewis Joyce
Logged

Lewis Joyce

Earth
Offline Offline
Edison Member
*
Karma: 52
Posts: 1809
My browser no longer is binding static IP, Floating is the way to go.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

u might try out processing (java base app)

http://playground.arduino.cc/interfacing/processing

if u like processing visual interface, then import your TCP messaging class into processing.  you are all set.

if u dislike processing visual interface or prefer headless (no visual interface at all), then import your processing class into yours.

Java's  "Write once, run anywhere" has pre-requirement condition;-  Java run time lib/JVM.

atmel/arduino chip (highend) does meet JVM (subset) requirement. i.e. avr javacard.

processing forum

java for 8/16 bits cpu/mpu

JAVA EMBEDDED





« Last Edit: March 21, 2013, 09:55:03 am by sonnyyu » Logged

Offline Offline
Full Member
***
Karma: 5
Posts: 181
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If your other programs are running java you can have them communicate with the arduino through the serial com ports.

Alternatively you could probably have the arduino send TCP/IP packets over ethernet or possibly wifi.
http://arduino.cc/forum/index.php/topic,24085.0.html

This also looks interesting, TCP/IP over serial.
http://playground.arduino.cc/Code/SerialIP

Hopefully that will steer you in the right direction.
Logged

Earth
Offline Offline
Edison Member
*
Karma: 52
Posts: 1809
My browser no longer is binding static IP, Floating is the way to go.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

One thing at Arduino site;-

use firmata communicate with processing+TCP messaging class.

Now you need wrote 0 line of code at Arduino.

0 line of code=100% bug free code.


firmata

Logged

Pages: [1]   Go Up
Jump to: