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
EPP.
I will tell here my results.
Thank you again.
----- Original Message -----
From: "Andreas Fester" <Andreas.Fester@eigner.com>
To: "Ramón Suárez Alvarez" <rsuarez@dynasty.es>; <linux-parport@torque.net>
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:
> http://mavnet.dynip.com/doc/packages/IBMJava2-JAVACOMM/docs/
>
> I have not tried it though, but it sais that it supports
> IEEE1284 parallel ports.
>
> Regards,
>
> Andreas
>
>
> Ramón Suárez Alvarez wrote:
>
> > Hi all;
> >
> > I'm a newbie in this mailling list and I need some help with this
problem:
> >
> > 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
using
> > CreateFile, ReadFile and WriteFile, I sent commands to the printer
without
> > problems. Now, I need to do the same in Linux. Reading in Internet, I
found
> > that it's possible to use directly the lp device and, from Java, using
> > FileInputStream and FileOutputStrem objets, open, read and write the
file
> > /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
make
> > something special to use the standard parallel port driver in linux? Do
I
> > need to write some c code to access to the port and then make a JNI
access
> > from Java to this c code? any idea?
>
>
>
-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- 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