2

I have to realize a communication between Arduino Leonardo and a demon which runs on a pc.

The demon has to tell Arduino informations about the operative system of the machine to which it is linked,the dimension of the screen and other things about its state.

As it has to work both on Windows and on MAC Os, I thought to write the demon in Java, but I've seen that the library RXTX for communication is hardware dependent, so it can create problems if I use a different machine.

In your opinion shall I use Processing, or there is another way to achieve that?

Thank you in advance.

1 Answer 1

0

You can use Processing which has a nice serial library that works on Windows/OSX/Linux, however it has a dependency on Processing's main class: PApplet (which as name hints, is an Applet subclass).

The library, as Processing is opensource, so you can adjust the RXTX wrapper it provides to work without PApplet (as a Daemon/service/etc.) if you need too. Have a look at this answer to see what I mean.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.