Thank you very much.
I supposed that the commAPI had the same problems as in Windows: reading
from parallel port didn't work. But, of course, it is not neccesary the same
code as in Windows. ˇˇIt's Linux!! I need to prove, saying that the mode is
I will tell here my results.
Thank you again.
----- Original Message -----
From: "Andreas Fester" <Andreas.Fester@eigner.com>
To: "Ramón Suárez Alvarez" <firstname.lastname@example.org>; <email@example.com>
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: firstname.lastname@example.org --
-- with the single word "unsubscribe" in the body of the message. --
This archive was generated by hypermail 2b29 : Wed Feb 26 2003 - 11:36:58 EST