PDA

View Full Version : Any Java programmers ?


Willson
16-02-07, 18:48
I need to write an application in Java that talks to the serial port to control a piece of tv broadcasting kit.
Would it be possible to run this same code on different platforms, mac or linux, and still talk to the serial port ?

This is for my final year degree project and I am concerned that it is not possible !

Thanks for any guidence / help either way :)

sdavies
16-02-07, 22:47
You could always have a stab at the javax.comm package:

see: http://java.sun.com/products/javacomm/

Seems to be what you are after. I have never had any excuse to use it, although I guess I can find some time with the new AEM AFR gauge (handy RS232 output on it :)) :d

Willson
16-02-07, 22:51
Yeah, I was planning to use that, or at least try lol. I just wondered if it was platform 'free' if thats the right term.

Thanks though :)

sdavies
16-02-07, 22:57
Oh I see what you mean.

There is mention of the RxTx project that has their own implementation using the Sun comm.jar and their own native libraries. There is a version 2.1.7 available bundled with native support for linux/solaris/windows/macosx.

See: http://www.rxtx.org/

Willson
16-02-07, 23:01
Thanks, I will check it out :)