Sending a byte to the parallel port

 
Thread Tools Search this Thread
Operating Systems Linux Fedora Sending a byte to the parallel port
# 1  
Old 06-13-2009
Data Sending a byte to the parallel port

Greetings,

A sort of newbie question...

I would like to control a couple of stepper motors via the parallel port using C code. I have discovered in Linux, the ioperm() function is required before the outportb() function can be used to send a byte to the parallel port. My problem is ioperm() can only be executed as root. I have discovered setuid is frowned upon to get root privlidges. Can anyone suggest a simple way to send a byte to the parallel port (with code examples if possible?)

I'm using Fedora 10

TIA
# 2  
Old 06-13-2009
/proc interface?

My linux installation has /usr/include/ieee1284.h

Functions include ieee1284_open, _close, _read_data, _write_data, _wait_data, etc.

YMMV

HTH
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

How to enable Serial port on ILOM, when Network Port is enabled in parallel

Hi Everyone, In my environment, I have few T5220. On the iLOM Management Card, I have both Network and Serial port are cabled, I don't have any issues while I try to connect using Network Management port, but when I try to connect the serial port for the same server which is actually connected... (3 Replies)
Discussion started by: bobby320
3 Replies

2. UNIX for Dummies Questions & Answers

Parallel port Printing in SCO OSR6

Hi, I am trying to add a parallel printer to my SCO OSR6 server, yet when I run mkdev parallel it just brings up the message: "Parallel Ports are configured automatically in SCO Openserver 6". So when I try and add a local printer, no /dev/lp# ports are shown in the list, only serial ports... (1 Reply)
Discussion started by: Martyn
1 Replies

3. SCO

PCI / PCIExpress Parallel port in SCO 6.0.0

How do or what do I need to add PCI / PCIe (PCI Express) parallel ports add-on adapters to OpenServer 6.0.0? OpenServer 5 could see PCI slots but OpenServer 6.0.0 (Original CD or the Re-cut one) required a maintenance pack to be installed? Is this right and how do I check to see if these work? (2 Replies)
Discussion started by: uxlunatick
2 Replies

4. UNIX for Advanced & Expert Users

SCO openserver 6 parallel port issues

I am having issues with SCO recognizing my parallel port. The port is being used so I can run dialogic using a dongle for the serial number but the port is not noticed. It is turned on in the bios and should work fine but when I attempt to run the software I get errno=6 and it appears to not be... (0 Replies)
Discussion started by: shuhemizer
0 Replies

5. UNIX for Dummies Questions & Answers

SCO openserver 6 parallel port issues

I am having issues with SCO recognizing my parallel port. The port is being used so I can run dialogic using a dongle for the serial number but the port is not noticed. It is turned on in the bios and should work fine but when I attempt to run the software I get errno=6 and it appears to not be... (0 Replies)
Discussion started by: shuhemizer
0 Replies

6. UNIX for Dummies Questions & Answers

How to connect laptop to Unix system via Parallel port

Hi, I have been using a computer to keep track of inventory for my business. I am pretty sure it runs on Unix. In the back of the computer there is some sort of PCI card that has about 8 RJ-11 ports on it. I use that card to connect the Unix system to my 3 VT-220 terminals. I use a simple 6... (1 Reply)
Discussion started by: john202
1 Replies

7. Programming

parallel port proramming for sun ultra

Hi I'm trying to look for information about reading/writing to the parallel port of a Sun Ultra 5 running Solaris 8. I'd just like to see some basic programs written in C, nothing fancy, just reading and wrting to the port, getting the port address etc. toggling the lines. I've tried searching... (2 Replies)
Discussion started by: fishman2001
2 Replies

8. Filesystems, Disks and Memory

Parallel Port info?

is there a command so that i can se info about the parallel port, if there isn't a specific command for that is there a command so i can se info about the system and all ports and devices? Thanx /Nick (2 Replies)
Discussion started by: sajjan2
2 Replies

9. UNIX for Dummies Questions & Answers

Sending hex to a port

I am trying to send hex strings down a port but the server treats the strings as ascii. When I telnet to a port, is there a way in which I can specify that the string being sent is in hexadecimal format. I know thiis can be done quite easily in C, but can it be done using standard unix commands... (3 Replies)
Discussion started by: LLL
3 Replies
Login or Register to Ask a Question