/ Forside / Teknologi / Udvikling / Java / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Java
#NavnPoint
molokyle 3688
Klaudi 855
strarup 740
Forvirret 660
gøgeungen 500
Teil 373
Stouenberg 360
vnc 360
pmbruun 341
10  mccracken 320
javax.comm
Fra : Krypton


Dato : 27-02-02 17:40

Is there someone who knows how you can easily read data from your parallel
port? I'm stuck. I can find 1000 examples of applications that access the
serial port but none that access the parallel port.

Thx in advance

Krypton



 
 
Martin Ehmsen (27-02-2002)
Kommentar
Fra : Martin Ehmsen


Dato : 27-02-02 18:12

On Wed, 27 Feb 2002 16:40:17 GMT, Krypton <iets@nomail.com> wrote:
> Is there someone who knows how you can easily read data from your parallel
> port? I'm stuck. I can find 1000 examples of applications that access the
> serial port but none that access the parallel port.

I comment http://java.sun.com/products/javacomm/index.html

"JavaTM Communications API

The JavaTM Communications API can be used to write platform-independent
communications applications for technologies such as voice mail,
fax, and smartcards.

This version of the Java Communications API contains support for RS232
serial ports and IEEE 1284 parallel ports. With updated
Functionality, one can:
...."

What more do you want??

Martin
--
Jeg har det med min rumlige frihed som jeg har lagt mærke til at mænd
har det med deres testikler.
Jeg vugger den som et spædbarn, og tilbeder den som en gudinde.
   Smilla Jaspersen

Krypton (27-02-2002)
Kommentar
Fra : Krypton


Dato : 27-02-02 18:18

Martin Ehmsen <thames@thames.basement87.homeip.net> schreef in berichtnieuws
slrna7q4rr.10e.thames@thames.basement87.homeip.net...
> On Wed, 27 Feb 2002 16:40:17 GMT, Krypton <iets@nomail.com> wrote:
> > Is there someone who knows how you can easily read data from your
parallel
> > port? I'm stuck. I can find 1000 examples of applications that access
the
> > serial port but none that access the parallel port.
>
> I comment http://java.sun.com/products/javacomm/index.html
>
> "JavaTM Communications API
>
> The JavaTM Communications API can be used to write platform-independent
> communications applications for technologies such as voice mail,
> fax, and smartcards.
>
> This version of the Java Communications API contains support for RS232
> serial ports and IEEE 1284 parallel ports. With updated
> Functionality, one can:
> ..."
>
> What more do you want??
>
> Martin
> --
> Jeg har det med min rumlige frihed som jeg har lagt mærke til at mænd
> har det med deres testikler.
> Jeg vugger den som et spædbarn, og tilbeder den som en gudinde.
> Smilla Jaspersen

Sorry but I use this API allready but it isn't that simple. The parallel
port isn't well enough supported. I can find enough examples of parallel
port programs that use this API that write to the parallel port but no
examples that read from it. I have searched endlessly but didn't find
anything.

Krypton



Martin Ehmsen (27-02-2002)
Kommentar
Fra : Martin Ehmsen


Dato : 27-02-02 19:02

On Wed, 27 Feb 2002 17:17:43 GMT, Krypton <iets@nomail.com> wrote:
> Sorry but I use this API allready but it isn't that simple. The parallel
> port isn't well enough supported. I can find enough examples of parallel
> port programs that use this API that write to the parallel port but no
> examples that read from it. I have searched endlessly but didn't find
> anything.

Ahh okay, I misunderstod you.
I have used that API a little my self, but only the serial-part.
But as far as I can read in the API, you can replace SerialPort with
ParallelPort in all your examples.
Honestly I can't see what your problem is. As I read the API, it is
straight forward, an the parallelport should work just as the serial
counterpart.
If it's because your are unfamilliar with Java as a hole, then you
probably should start with something simpler.

Martin
(Please ignore any misspellings. I read more english than I write.)
--
Jeg har det med min rumlige frihed som jeg har lagt mærke til at mænd
har det med deres testikler.
Jeg vugger den som et spædbarn, og tilbeder den som en gudinde.
   Smilla Jaspersen

Krypton (28-02-2002)
Kommentar
Fra : Krypton


Dato : 28-02-02 09:42

Martin Ehmsen <thames@thames.basement87.homeip.net> wrote
> Ahh okay, I misunderstod you.
> I have used that API a little my self, but only the serial-part.
> But as far as I can read in the API, you can replace SerialPort with
> ParallelPort in all your examples.
> Honestly I can't see what your problem is. As I read the API, it is
> straight forward, an the parallelport should work just as the serial
> counterpart.
> If it's because your are unfamilliar with Java as a hole, then you
> probably should start with something simpler.

Thx

I know what my problem is. I used the API perfectly but it seems that my
parallel port doesn't support reading. Strange like hell and very annoying
because I have to write an application that reads from it

Krypton



Thorbjørn Ravn Ander~ (28-02-2002)
Kommentar
Fra : Thorbjørn Ravn Ander~


Dato : 28-02-02 09:49

"Krypton" <iets@nomail.com> writes:

> I know what my problem is. I used the API perfectly but it seems that my
> parallel port doesn't support reading. Strange like hell and very annoying

Check your BIOS-settings. You need ECP or EPP capability.
Standard/Normal is write-only.
--
Thorbjørn Ravn Andersen
http://unixsnedkeren.dk

Krypton (28-02-2002)
Kommentar
Fra : Krypton


Dato : 28-02-02 10:12

Thorbjørn Ravn Andersen <thunderbear@bigfoot.com> wrote:
> Check your BIOS-settings. You need ECP or EPP capability.
> Standard/Normal is write-only.

I changed it but it gives me the same results. Something with the parallel
port driver maybe. I heard that many drivers don't support reading. That's
just nice...

Krypton



Søg
Reklame
Statistik
Spørgsmål : 177501
Tips : 31968
Nyheder : 719565
Indlæg : 6408522
Brugere : 218887

Månedens bedste
Årets bedste
Sidste års bedste