In all fairness, I should point out that I only wrote the wrappers to make
RXTX work with JavaComm and many others have enhanced the implementation I
created.

Just go to the listed web page - it is now very easy to control Linux serial
ports from Java.  All of the code has been rolled into the standard RXTX
distribution.

-----Original Message-----
From: Alastair Broom [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 30, 1998 6:21 AM
To: Steve Delahunty
Cc: jinranlin; [EMAIL PROTECTED]
Subject: RE: serial port program


On Wed, 30 Dec 1998, Steve Delahunty wrote:

> It would sure be nice to have basic serial port functionality
> ...
> 
> -----Original Message-----
> Subject: serial port program
>
> I need to make a program to control RS232 port, does anybody know how to
do
> it using java?
>
Theres the "Java Communications API 2.0"
http://java.sun.com/products/javacomm/

But there are only versions for Solaris and Windows - it needs a native
library to actually talk to the ports.
The comm faq http://java.sun.com/products/javacomm/javadocs/CommAPI_FAQ.txt
includes this:
Q: Is there a linux version of the Java communications API?

A: We do not provide a linux implementation. But Kevin Hester
   has written Java communications API drivers for linux and uses our
   CommPort  driver loading scheme to load his own gnu.io.RXTXCommDriver
   class. He gave us permission to disclose his web page:

        http://www.interstice.com/kevinh/linuxcomm.html


See also
http://www.javaworld.com/javaworld/jw-09-1998/jw-09-indepth.html
for a story about getting java to be a boot loader for an old PDP-8 by
pretending to be a 100 baud tape streamer... (includes code examples
using the javax.comm api mentioned above)

Hope some of this helps...
--
Alastair Broom               Valley Technology, Edinburgh, Bonnie Scotland
[EMAIL PROTECTED]

Reply via email to