Parallel port blocking

Posted by asalamon74 on Server Fault See other posts from Server Fault or by asalamon74
Published on 2009-09-10T10:24:28Z Indexed on 2010/04/03 13:03 UTC
Read the original article Hit count: 534

Filed under:
|
|

I have a legacy Java program which handles a special card printer by sending binary data to the LPT1 port (no printer driver is involved, the Java program creates the binary stream).

The program was working correctly with the client's old computer. The Java program sent all the bytes to the printer and after sending the last byte the program was not blocked. It took an other minute to finish the card printing, but the user was able to continue the work with the program.

After changing the client's computer (but not the printer, or the Java program), the program does not finish the task till the card is ready, it is blocked until the last second.

It seems to me that LPT1 has a different behavior now than was before. Is it possible to change this in Windows? I've checked BIOS for parallel port settings: The parallel port is set to EPP+ECP (but also tried the other two options: Bidirectional, Output only). Maybe some kind of parallel port buffer is too small? How can I increase it?

© Server Fault or respective owner

Related posts about lpt

  • USB to LPT adapter?

    as seen on Super User - Search for 'Super User'
    I'm bummed out, pretty much all of our computers here lack parallel ports. I have an EETools ChipMax programming tool that has one of the old-school Centronics connectors on the back. I figured that someone must make a USB to LPT adapter. Sure enough, I found one from iogear, the GUC1284B that… >>> More

  • Sniffing LPT Traffic

    as seen on Stack Overflow - Search for 'Stack Overflow'
    I need to intercept LPT output traffic. After a couple of hours of research, I've come to understand that the only way to do this is by writing a kernel-mode driver, more precisely a "filter driver"...? I've downloaded the WDK, but the terminology and vast number of driver types is a little overwhelming… >>> More

  • Send data to LPT on windows XP

    as seen on Stack Overflow - Search for 'Stack Overflow'
    I want to send data to a printer on LPT1 and i trying exactly this but my CreateFile returns -1 (The system cannot find the file specified.Exception from HRESULT:0x80070002). How to open LPT1 port and send data to? I am trying this on XP and after that in win7 64 bit because from what i've read working… >>> More

  • No LPT port in Windows 7 virtual machines

    as seen on Super User - Search for 'Super User'
    Windows 7 has MS virtual PC integrated, the VM settings don't give a parallel LPT port mapping to the physical machine. Where did it go? Has anyone else noticed this, and found a solution? Update: After much digging, I found the one and only reference to this issue, on the VPC Blog: "Parallel port… >>> More

  • WinXP How to Tunnel LPT over USB

    as seen on Server Fault - Search for 'Server Fault'
    I have a windows program that accesses a device connected to a LPT (1-3) 25 pin port. The communication is bidirectional, and I suspected the control lines are also accessed directly. I would like to migrate the device to a machine that does not have a LPT port. I saw the dos2usb software, but… >>> More

Related posts about parallel-port