It doesn't work.
If I try to set EPP mode, an exception is thrown.
If I try to access to the FileInputStream, an exception is thrown.
Looking in the sun help, only Error and buffer empty events have sent. Like
in Windows platform. I am not be able to read anything from the parallel
I am continuing investigation.
----- Original Message -----
From: "Andreas Fester" <Andreas.Fester@eigner.com>
To: "Ramón Suárez Alvarez" <email@example.com>; <firstname.lastname@example.org>
Sent: Tuesday, February 25, 2003 4:43 PM
Subject: Re: [PARPORT] Bidirectional access to parallel port (JAVA)
> Hi Ramón,
> you could use the Java Communications API
> (http://java.sun.com/products/javacomm/), but SUN only provides
> drivers for Solaris and Windows. Maybe this package helps:
> I have not tried it though, but it sais that it supports
> IEEE1284 parallel ports.
> Ramón Suárez Alvarez wrote:
> > Hi all;
> > I'm a newbie in this mailling list and I need some help with this
> > I'm developing a program in Java to control a parallel printer, sending
> > directly to the printer it's escape sequences docummented by the printer
> > manufacturer.
> > In Windows I had a sys file provided by the printer manufacturer and
> > CreateFile, ReadFile and WriteFile, I sent commands to the printer
> > problems. Now, I need to do the same in Linux. Reading in Internet, I
> > that it's possible to use directly the lp device and, from Java, using
> > FileInputStream and FileOutputStrem objets, open, read and write the
> > /dev/lp0. But it doesn't work. I be able to write but trying to read, I
> > receive exceptions. The question is:
> > How can I use the parallel port as a bidirectional port? Do I need to
> > something special to use the standard parallel port driver in linux? Do
> > need to write some c code to access to the port and then make a JNI
> > from Java to this c code? any idea?
-- To unsubscribe, send mail to: email@example.com --
-- with the single word "unsubscribe" in the body of the message. --
This archive was generated by hypermail 2b29 : Tue Mar 04 2003 - 12:23:45 EST