[Rxtx] rxtx 2.1.7 on Debian Wheezy - Don't seems do find serial port

Michael Stummvoll michael at stummi.org
Wed Mar 30 01:55:18 MDT 2011


Hello,

I want to communicate with an device over serial port (rs232), so i 
decided to get started with rxtx.

Debian seems to find my serial Port:

 > root at eddie:~# dmesg | grep ttyS
 > [    0.799624] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
 > [    0.799827] 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
 > root at eddie:~# setserial /dev/ttyS0
 > /dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4

But rxtx don't seems to see this. I tested this with the following line 
in java:
 > 
System.out.println(CommPortIdentifier.getPortIdentifiers().hasMoreElements());

and got the following output:
 > Stable Library
 > =========================================
 > Native lib Version = RXTX-2.1-7
 > Java lib Version   = RXTX-2.1-7
 > false
 > Experimental:  JNI_OnLoad called.

So, I think, rxtx don't seems to find any device on my machine.

What i am doing wrong?

Debian testing ("Wheezy") with java from official non-free-repository 
(build 1.6.0_24-b07)

Thanks,
Michael



More information about the Rxtx mailing list