Java communicating with a microcontroller (help needed)

I am writing a Java program that should be communicating with a microcontroller (AVR), how can this communication be estblished?
[135 byte] By [Eng_walaaa] at [2007-11-26 13:36:29]
# 1
good question, over a serial port perhaps?
mkoryaka at 2007-7-7 22:21:57 > top of Java-index,Java Essentials,New To Java...
# 2

> I am writing a Java program that should be communicating with a

> microcontroller (AVR), how can this communication be estblished?

Those Atmels can easily handle a UART so RS232 is an easy possibilty.

Java supports RS232 and small converters allow you to use RS422 or RS485

without any additional coding.

kind regards,

Jos

JosAHa at 2007-7-7 22:21:57 > top of Java-index,Java Essentials,New To Java...
# 3
perhaps, what difference does this make?
Eng_walaaa at 2007-7-7 22:21:57 > top of Java-index,Java Essentials,New To Java...
# 4
> perhaps, what difference does this make?Difference between what and what?kind regards,Jos
JosAHa at 2007-7-7 22:21:57 > top of Java-index,Java Essentials,New To Java...
# 5
what difference does it make whether the communication is over a serial port or anything else?Thanks,
Eng_walaaa at 2007-7-7 22:21:57 > top of Java-index,Java Essentials,New To Java...
# 6
sorry,but I still do not understand.What packages should I usein coding? I was given an advice before to use JNI and write some C/C++ code , do I really need to do that?Thanks;
Eng_walaaa at 2007-7-7 22:21:57 > top of Java-index,Java Essentials,New To Java...
# 7

> what difference does it make whether the communication is over a

> serial port or anything else?

Your question is a non-sequitur: first you're asking *how* to communicate

with such a little Atmel and then you pose the question what the difference

would be for hypothetical other possibilities to establish communication

between a host and that thingie. I personally would welcome a fast

ethernet device for communication purposes.

kind regards,

Jos

JosAHa at 2007-7-7 22:21:57 > top of Java-index,Java Essentials,New To Java...
# 8
I think he's asking - and I'd like to know too - is a library out there that provides Java support for serial ports so we don't have to make our own native methods?
MutantPlatypusa at 2007-7-7 22:21:57 > top of Java-index,Java Essentials,New To Java...
# 9

> I think he's asking - and I'd like to know too - is a

> library out there that provides Java support for

> serial ports so we don't have to make our own native

> methods?

For serial (or parallel) port comms, there is [url=http://www.rxtx.org/]RXTX[/url]. Personally I prefer to use USB, since serial/parallel ports are slowly disappearing, in which case you can use [url=http://www.steelbrothers.ch/jusb/]jUSB[/url].

Since most uCs don't natively support USB, you can use some sort of USB->serial/parallel converter. Some of these have drivers and APIs already written, which makes life incredibly easy, e.g. [url=http://sourceforge.net/projects/ftd2xxj]FTD2xxj[/url].

Mr_Evila at 2007-7-7 22:21:57 > top of Java-index,Java Essentials,New To Java...