For questions about communication via LPT parallel port and IEEE 1284 standard
Questions tagged [lpt]
68 questions
1
vote
1 answer
printing to usb QW BASIC/ QUICK BASIC
I am looking to convert GW BASIC/ QUICK BASIC programs to an auto executable files (exe) so I can run these programs on windows 7 pro 64bit/ windows 8 pro. But these programs prints from LPT1 port. I would like it to revert to USB as non of new…

Yogesh R.L
- 609
- 7
- 17
0
votes
1 answer
Interrupts from LPT (bi-directional mode)
I wish to ask You if it's possible to use ACK to generate interrupts (IRQ7/IRQ5) from ACK line (LPT mode set to bi-directional mode) ? I've set the mask bits of 8259, but still nothing. Interrupt procedure is not called. I am able to read data from…

esz
- 31
- 2
0
votes
1 answer
vxWorks Parallel Port write() Failure
I'm attempting to write to the parallel port for the first time using the vxWorks lptDrv driver, but a call to write() always seems to return a -1. Here's the code I'm using:
#define PARALLEL_PORT "/lpt/0"
/* Create a device for the parallel port…

bjsample
- 45
- 1
- 5
0
votes
2 answers
Checking bit state of lpt port binary
I've part of code which is checking input pins of lpt port, but using decimal values:
while (PortAccess.Input(889) == 120)
How to use this instruction with binary values?
for example while bit 3 of 00100100 is 0 then do something.

Elfoc
- 3,649
- 15
- 46
- 57
0
votes
0 answers
Flow control of stepper motors via parallel port in Delphi
I created 4 threads for each of the 4 stepper motors separately, where an infinite loop will spin with the given Dir and Step and with delays depending on the current speed for each motor. Each call to Out32 will be in a critical section.
In…
0
votes
1 answer
Is there a procedure like Out32 that changes only certain bits at the input of the LPT port?
This code, when the variable Vel is set to more than zero, starts clockwise rotation, when the variable Vel is set to less than zero, it starts counterclockwise rotation, setting the variable Vel to zero stops the motor.
In total, 4 stepper motors…
0
votes
0 answers
Create and monitor a virtual LPT port
I've got this old Windows program that prints by writing directly to an LPT port. Unfortunately, the number of printers we can get that are compatible with it keep dwindling. The obvious choice to just ditch the program and move on to something more…

HiddenWindshield
- 246
- 1
- 8
0
votes
0 answers
Is there a software solution for LPT port emulation?
Is there a software solution for simulating a printer for an old program under DOS or an old Windows (type 98 or XP), which sends a text stream through the LPT port to the printer, intercepts this stream and redirects it to a text file?
This is a…

Kadel
- 17
- 5
0
votes
1 answer
LPT port control in Windows 7 (x86), Windows 10 (x64) and Embarcadero Delphi XE
I am now faced with the task of managing the LPT port from a program on Embarcadero Delphi XE in Windows 7 (x86) (in the future on Windows 10 (x64)). To begin with, at least blink the LEDs connected to the outputs of the LPT port. The LPT port is…

Rix1970
- 1
0
votes
0 answers
How to disable LPT port programmatically?
I want to write a program to enable/disable the LPT port so that I can make sure everyone who uses the printer should gain permission. At the same time, I can use some functions to record who is using the printer and what he wants to print. However,…

Chanlen
- 41
- 1
- 1
- 8
0
votes
0 answers
how Printing raw from asc file with changing from LPT1 to USB001
I want to do a print of the dos program that supports lpt1 then I want to do the print by redirecting to the usb port and below the file path asc file. how can do a raw print of the asc file that is or with other solutions do directly or through a…

roy
- 693
- 2
- 11
0
votes
1 answer
Cannot read from /dev/parport by timeout
Please help with a question.
I'm trying to resolve programm example for parport
loopback wtire/read.
While reading program skip first 6 symbols due to select timeout
and I can't understand what to do in that situation.
How to trace what is hold…

Cvl
- 1
- 2
0
votes
1 answer
How to reuse old LPT HASP key?
I've got a bunch of old LPT HASP keys. 1
Is there a way to interrogate these?
Can I use these HASP Keys as a source of random values or something like that?
Maybe there is a better way to give those things a second life?

Pavel P. Kim
- 3
- 1
- 3
0
votes
0 answers
Controlling LPT hardware with web app on win64 client
I'm making a PHP-based web app which, on one of its parts, must control a device with the parallel port, I want it to allow port selection from the LPT list, not dealing if possible with hex addresses.
Which options I have for controlling that…

Yohann Hernandez
- 11
- 1
- 4
0
votes
2 answers
Can't get port handle from LPT1
I'm writing a program which reads from file and send to printer to print.
I set "HP Laser Jet 4" as default printer and checked "LPT1" in printer properties of "HP Laser Jet 4". Print spooler is also running (Windows 7).
The problem is hPort always…

emeraldhieu
- 9,380
- 19
- 81
- 139