Sponsored Content
Operating Systems Linux Fedora Sending a byte to the parallel port Post 302325166 by mgessner on Saturday 13th of June 2009 08:09:25 AM
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
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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 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

7. 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

8. 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

9. 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
IEEE1284_OPEN(3)						     Functions							  IEEE1284_OPEN(3)

NAME
ieee1284_open - open a port SYNOPSIS
#include <ieee1284.h> int ieee1284_open(struct parport *port, int flags, int *capabilities); DESCRIPTION
In order to begin using a port it must be opened. Any initial set-up of the port is done at this stage. When an open port is no longer needed it should be closed with ieee1284_close(3). The possible flags are: F1284_EXCL This device cannot share the port with any other device. If this is the case it must be declared at this stage, so that other drivers trying to access the port know not to bother; otherwise they will wait until this driver releases the port, i.e. never. The iopl/dev-port access methods don't support this yet, but the ppdev ones do. If capabilities is not NULL it must point to storage for an int, which will be treated as a set of flags, one per bit, which the library sets or clears as appropriate. If a capability is present it will be used when asked for. They are: CAP1284_RAW Pin-level access is available. If this capability is present then the following functions are effective: ieee1284_write_data, ieee1284_read_status, ieee1284_wait_status, ieee1284_write_control, ieee1284_read_control, ieee1284_frob_control. CAP1284_NIBBLE There is an implementation of nibble mode for this port. CAP1284_BYTE There is an implementation of byte mode for this port. CAP1284_COMPAT There is an implementation of compatibility mode for this port. CAP1284_ECP There is a hardware implementation of ECP mode for this port. CAP1284_ECPRLE There is an RLE-aware implementation of ECP mode for this port (the F1284_RLE flag is recognised by the ECP transfer functions). CAP1284_ECPSWE There is a software implementation of ECP mode for this port. CAP1284_BECP There is an implementation of bounded ECP mode for this port. CAP1284_EPP There is a hardware implementation of EPP mode for this port. CAP1284_EPPSWE There is a software implementation of EPP mode for this port. CAP1284_IRQ An interrupt line is configured for this port and interrupt notifications can be received using ieee1284_get_irq_fd(3). CAP1284_DMA A DMA channel is configured for this port. RETURN VALUE
E1284_OK The port is now opened. E1284_INIT There was a problem during port initialization. This could be because another driver has opened the port exclusively, or some other reason. E1284_NOMEM There is not enough memory. E1284_NOTAVAIL One or more of the supplied flags is not supported by this type of port. E1284_INVALIDPORT The port parameter is invalid (for instance, the port may already be open). E1284_SYS There was a problem at the operating system level. The global variable errno has been set appropriately. SEE ALSO
ieee1284_close(3) AUTHOR
Tim Waugh <twaugh@redhat.com> Author. COPYRIGHT
Copyright (C) 2001-2003 Tim Waugh 09/18/2007 IEEE1284_OPEN(3)
All times are GMT -4. The time now is 05:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy