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
port.
I am continuing investigation.
Thank you.
----- 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 : Tue Mar 04 2003 - 12:23:45 EST