[Rxtx] [PARALLELPORT] read parallel port status
Trent Jarvi
tjarvi at qbang.org
Mon Sep 18 22:07:05 MDT 2006
On Mon, 18 Sep 2006, 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 :)
>
>
Which version of rxtx are you trying? There appears to e support for the
things you want. The parallel support is much less mature than the serial
support but has worked for people.
public abstract boolean isPaperOut();
public abstract boolean isPrinterBusy();
public abstract boolean isPrinterError();
public abstract boolean isPrinterSelected();
public abstract boolean isPrinterTimedOut();
These are what you are after, right?
The read error looks like maybe a bad native lib? We do very little
testing on those. If it is current rxtx, we can take a look.
--
Trent Jarvi
tjarvi at qbang.org
More information about the Rxtx
mailing list