Questions tagged [parallel-port]

A now-obsolete bidirectional DB25-based I/O port.

135 questions
12
votes
2 answers

Method without return value in python c extension module

I'm trying to create a script in python that sends data through a parallel port. I'm creating my own module in C language. The problem is: when I try to execute my module, python crashes. No errors, no data, nothing. It simply closes. This is my…
markmb
  • 852
  • 4
  • 12
  • 32
10
votes
6 answers

"#include " causes "error: asm/io.h: No such file or directory"

I am using gentoo and trying to compile a program to control the bits on the parallel port. It has this line near the top of it: #include And when I try to use gcc on it, it produces this output: port.c:4:20: error: asm/io.h: No such…
marcusw
  • 245
  • 1
  • 2
  • 7
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
8
votes
4 answers

programmatically controlling power sockets in the UK

It's very simple. I want to plug a lamp into the UK mains supply. I want to be able to power it on and off from software - say from serial port commands, or by running a command-line or something I can get to from ruby or Java. I see lots written…
Dafydd Rees
  • 6,941
  • 3
  • 39
  • 48
7
votes
4 answers

Best VM for Delphi development with parallel port

I see that a number of people are doing S/W development (not just Delphi) using a virtual machine to host the IDE and all required files. I've used Microsoft Virtual PC to debug issues with my Applications on various OS's but with little access…
Brian Frost
  • 13,334
  • 11
  • 80
  • 154
7
votes
1 answer

Can I access the Parallel Port normally when using USB to Parallel Port adapter?

Preliminary story There is this program which uses the Parallel Port to synchronize with other hardware. It will set the Parallel Port output to a specified (byte) value. This works without problems when using the built-in Parallel Port of a PC. The…
Heinrich Ulbricht
  • 10,064
  • 4
  • 54
  • 85
6
votes
2 answers

Finding Memory Address of a Parallel Port on Linux

I'm trying to find the base (memory) address of a parallel port I have connected to my laptop via a PCI express card. Running lspci -v shows that my computer recognizes the parallel port and gives the I/O ports (1000 and 1008) but not the memory…
Sam
  • 129
  • 1
  • 2
  • 7
4
votes
1 answer

Use of parallel / serial port redirection to transfer data from Terminal desktop to local computer

Amongst features of terminal desktop services running RDP port, there is port redirection of parallel/serial from remote to local PC. Can this redirection be somehow used to transfer large data to avoid using Clipboard (due to the known stack bug…
Skuta
  • 5,830
  • 27
  • 60
  • 68
4
votes
0 answers

virtual parallel port connector in QEMU

I have been reading Linux Device Drivers 3rd edition and have been running linux 2.6 in QEMU. However, I am at the point where it requires real hardware. I attempted to emulate a paralleport connector in QEMU with no luck. The host has no parallel…
dylan7
  • 803
  • 1
  • 10
  • 22
4
votes
3 answers

Controlling a parallel port via USB adaptor on modern hardware and OS

I have a USB to parallel port device that i want to interface with through c++ on a modern windows OS (xp and newer). I've done a little research but the information is a bit patchy when it comes to programming to one of these USB to parallel port…
Faken
  • 11,352
  • 17
  • 59
  • 74
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
4
votes
3 answers

How to send a code to the parallel port in exact sync with a visual stimulus in Psychopy

I am new to python and psychopy, however I have vast experience in programming and in designing experiments (using Matlab and EPrime). I am running an RSVP (rapid visual serial presentation) experiment with displays a different visual stimuli every…
Shani Shalgi
  • 617
  • 1
  • 6
  • 19
4
votes
4 answers

Printing in (Parallel Port) Dot Matrix over C#

For the needs of a project, i want to print over the LPT1 in specific locations, this will print a document in a dot matrix printer where i should print values in the places they should go. I really hate going back, and i don't have any idea where…
George Taskos
  • 8,324
  • 18
  • 82
  • 147
4
votes
1 answer

Write to /dev/port as non-root user

I am working on a rather complex C++ code which performs the following operation as standard user fd = open("/dev/port",O_WRONLY); ... lseek(fd, 0x2E,SEEK_SET); ... write(fd,&buf,1); I get a 'Operation not permitted' error on opening the file,…
malber
  • 1,053
  • 4
  • 16
  • 24
3
votes
1 answer

Write to a parallel port on windows 7

I try to find out how to access a parallel port for writing some bits on a Windows7 machine. This parallel port ist located on a PCI-Card, and is automatically installed by Windows7 and can be monitored as LPT2. The adresses assigned to the Port are…
Milla Well
  • 3,193
  • 3
  • 35
  • 50
1
2 3
8 9