Hi,
I think what you're looking for is the JavaComm for Linux
(http://www.interstice.com/~kevinh/linuxcomm.html). I've tried it very
recently (talking to a modem through /dev/ttyS0) and rxtx version 1.3-4
worked fine with Redhat 6.0, except I didn't get it to find all of my
serial ports. 

The machine I used had about twenty serial ports and
javax.comm.CommPortIdentifier.getPortIdebtifiers() only found
/dev/ttyS[0-3] (the "internal" ports on my main board). It didn't find
for example /dev/ttyD0 which is the first "external" serial port. It did
however find /dev/ttyd0 (and a lot of other /dev/tty-files that don't
even exist) which I couldn't talk to. I can only use /dev/ttyD0 if i
rename it to /dev/ttyS[0-3], but that's no solution, of course, since I
still can't use more than four ports. Has anyone else had this problem?

I also tried it on RH5.0, which has a older c-lib, but then I had to use
rxtx version 1.2-2, and it was much, much slower and I didn't get it to
work properly. So I recommend using libc 2.1 (e.g. RH6.0) and rxtx
1.3-4.

/Jonas Holmberg, Forget-IT AB



Wayne wrote:
> 
> Hello,
> Sometime ago I seen an API for serial connection, but when I went
> to the blackdown site I couldn;t find anything. Does anyone know
> if such a API exist? I need to write some code that talks to a CNC
> machine.
> TIA.
> Wayne
> 
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to