Take the 2-minute tour ×
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It's 100% free, no registration required.

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.

share|improve this question
    
The dependence is mostly on getting the arduino recognized by windows (same as so you could utilize the IDE to load a sketch). While the serial APIs are different, that should be well-acommodated by multi-platform libraries or frameworks. –  Chris Stratton Oct 18 '14 at 13:06
1  
the new Arudino IDE uses JSSC which is supported on every OS you could want and worked very well for arduino-java communication for me in the past –  BrettM Oct 18 '14 at 19:03
    
Or you could use USB/RS232 converter on pc and RS232/TTL converter on Arduino side. In this case you dont need Arduino drivers on PC. You just install your demon plug in Arduino with converters and it should communicate –  Martynas Oct 19 '14 at 12:04
    
@Martynas - that only trades the "Arduino" driver need for the USB-serial driver need... and adds expense. –  Chris Stratton Oct 20 '14 at 4:49
    
Yes @ChrisStratton you would have to install USB/RS232 drivers anyway :)) –  Martynas Oct 20 '14 at 5:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.