[Rxtx] [PARALLELPORT] read parallel port status
Andre-John Mas
ajmas at sympatico.ca
Mon Sep 18 10:51:04 MDT 2006
Hi,
I have never had to deal with parallel ports myself, though there
are a couple of examples here:
http://rxtx.qbang.org/wiki/index.php/Examples
If you look at the first example, which is for a serial port, as
a basis, then at the line where the the following test is done:
commPort instanceof SerialPort
modify it to test to see if commPort is an instance of ParallelPort
and then cast it to ParallelPort. The API specification is here:
http://java.sun.com/products/javacomm/reference/api/index.html
Hope this helps.
Andre
yves pielusenet wrote:
>
> Hello,
> I was using the Parport library to read parallel port status.
> http://www.geocities.com/Juanga69/parport/
> I did something like parport.read() which gives me a byte.
> I use this to get a printer status.
> I don't want to use parport anymore since it doesn't work with XP
> without the Userport programme.
>
> How can I do this with rxtx ? I want to read all parallel status pin
> from my programme.
>
> I'm searching but I can't find any exemple :(
>
> thanks in advance :)
>
> --
> yves piel
>
> _______________________________________________
> Rxtx mailing list
> Rxtx at qbang.org
> http://mailman.qbang.org/mailman/listinfo/rxtx
>
More information about the Rxtx
mailing list