Questions tagged [lpt]

For questions about communication via LPT parallel port and IEEE 1284 standard

68 questions
8
votes
4 answers

C# LPT inpout32.dll

I don't get any error or exception. Button in one Window: private void button1_Click(object sender, EventArgs e) { ControlPort.Output(0x378, 0xff); } and inpout.dll interface: class ControlPort { [DllImport("inpout32.dll", EntryPoint =…
Hooch
  • 28,817
  • 29
  • 102
  • 161
7
votes
2 answers

How can I get the data sent to printer by attaching linux pc to the printer side of the wire?

I have a very very old PC that is running DOS and using an ISA card to receive the data from an old fashioned testing device. What I want to do is attach the Printer (LPT) wire to the old PC and attach another PC with linux to the other side of the…
davidb
  • 8,884
  • 4
  • 36
  • 72
4
votes
1 answer

C# + WMI + LPT help!

I'm making an application that needs to list all the LPT ports in a machine with their IO addresses. (ie it's output : LPT1 [starting ; ending] ....) Using WMI you can get this info.. the name/number from Win32_ParallelPort and the addresses from…
ppusiol
  • 41
  • 2
4
votes
1 answer

Finding available LPT (parallel) ports and addresses in Delphi

I am doing direct I/O on a parallel port which is fine and necessary for speed. I would like to enumerate the available ports to offer the user a choice of ports at setup time rather than a tedious trawl through device manager to read the address…
Brian Frost
  • 13,334
  • 11
  • 80
  • 154
4
votes
1 answer

Parallel port with C#

I am trying to send data to LPT1 port with a C# program, unfortunately with no success.. I am using windows 7 x64. I tried both x86 and x64 (inpoutx64.dll) dll's.. With the x64 dll when I send: Output(888, 255); It just continues the program as…
Michael S.
  • 305
  • 4
  • 17
3
votes
2 answers

Windows Monitoring a parallel or LPT port

Does anyone know a good library to allow us to programmatically monitor a parallel port (or LPT port) in windows. There are lots of good ones for Serial ports but I have had no luck yet for parallel ports. C# would be preferred but we're happy to do…
probably at the beach
  • 14,489
  • 16
  • 75
  • 116
3
votes
1 answer

Send print commands directly to LPT parallel port using C#.net

As in DOS we can do: ECHO MESSAGE>LPT1 How can we achieve same thing in C# .NET? Sending information to COM1 seems to be easy using C# .NET. What about LPT1 ports? I want to send Escape commands to the thermal printer.
HackTweaks
  • 41
  • 1
  • 2
  • 3
3
votes
3 answers

Sniffing LPT Traffic

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…
ArcherT
2
votes
1 answer

LPT ports in C#

I'd like to send some instructions while one of pins of LPT port is on. I was trying to do something like this: When LPT port 379 (889 dec) is different from dec 120 then stop doing part of code. while ((PortAccess.Output(889,120)) I don't know…
Elfoc
  • 3,649
  • 15
  • 46
  • 57
2
votes
1 answer

LPT I/O address mapping in PC

I heard about USB to LPT adapters that are capable of mapping PC legacy parallel port address. What is the level of such mapping? I mean - is it possible to access the adpater's pins by using 'in' or 'out' x86 assembler instructions (in Windows or…
marcin
  • 21
  • 2
2
votes
1 answer

Modify basic files used with gwbasic

I have a batch file which launches other .bas files with the help of gwbasic. Here is the code of the batch file: graphics cd basic gwbasic menut-hp/d cd \ Then I have the possibility by typing 1 or 2 etc + ENTER to choose which program i want to…
manny-
  • 129
  • 2
  • 10
2
votes
2 answers

Is that possible to provide a JavaScript API to control USB, LPT, and COM devices?

I have a computer running Windows and connected with many devices, such as a printer, an RFID reader, etc. I want all my applications run as HTML, CSS, and JavaScript, so I need to access these devices through JavaScript. But I don't know if it is…
Mickey Shine
  • 12,187
  • 25
  • 96
  • 148
2
votes
2 answers

Cannot open LPT1(Printer Port) on win7 (64bit). The same applicaion works on win XP

I have an application that opens a port to a printer(it's a bar code printer) which works on win XP but when i switch to win7 (64bit) i have a problem. Here is the code: I am using this method to open the port: [DllImport("kernel32.dll",…
gigi
  • 3,846
  • 7
  • 37
  • 50
2
votes
1 answer

How to enumerate windows LPT ports and their I/O Range?

I am working on project for controlling some devices through lpt port. I am using inpout32.dll to get raw access to ports and now trying to enumerate all available LPT ports and get their I/O Range. I now I can check device manager, but is there any…
yatagarasu
  • 550
  • 6
  • 13
2
votes
1 answer

Access parallel port using Linux

currently I access the parallel port this way: ioperm(data->baseaddr,5,1); outb(0x00,data->controlport); inb(data->statusport); The big disadvantage: it requires root-privileges and works with real parallel port hardware only (means USB-2-LPT…
Elmi
  • 5,899
  • 15
  • 72
  • 143
1
2 3 4 5