Go Down

Topic: Sending parameters to Java (Read 1 time) previous topic - next topic

PaulS

Quote
Mhmmm, do you know how I can write that in Java?

So it runs on the Arduino? You can't.

azziplekkus

#6
Oct 20, 2012, 05:39 pm Last Edit: Oct 21, 2012, 12:50 am by azziplekkus Reason: 1
No, I mean how do I write that in Java? So I can get the strings out again?

EDIT: nevermind, a friend of me helped me with writing the code :)

Amjad


Mohammed90


Quote
Mhmmm, do you know how I can write that in Java?

So it runs on the Arduino? You can't.


He meant that he wants with the Arduino via serial port using Java as the in-between-er to fetch and send the data over the serial port to the Arduino. That, sir, can be done. He does not want to run Java code on the Arduino. He says:
Quote
I want to have my arduino to send numbers/words to the PC, and read it in Java


Anyhow, here are a few links on how to start a serial connection on Java to read data from a serial port:
http://www.java-samples.com/showtutorial.php?tutorialid=11
and
http://stackoverflow.com/questions/900950/how-to-send-data-to-com-port-using-java

Go Up