Control ecpp parallel port on pin level

Control ecpp parallel port on pin level

Post by Arjan van 't Ho » Sat, 26 Apr 2003 23:11:10



Hi All,
I'm looking for a script of software which let me control the parallel port
on pin level. I have a hardware circuit connected on my parallel port with
LED's to see with data channel is up. I have it working on Linux, but the
software (library) is not available on Solaris. The reason for this is, is a
solution to get 8 hardware pins with can be controlled by software to
control relais.

With kind regards,

Arjan van 't Hof

 
 
 

Control ecpp parallel port on pin level

Post by Greg Andre » Sun, 27 Apr 2003 04:22:35



Quote:

>I'm looking for a script of software which let me control the parallel port
>on pin level. I have a hardware circuit connected on my parallel port with
>LED's to see with data channel is up. I have it working on Linux, but the
>software (library) is not available on Solaris. The reason for this is, is a
>solution to get 8 hardware pins with can be controlled by software to
>control relais.

There's no library provided by Sun to do what you're asking.
However, if you want to write your own, the ecpp man page
gives a lot of info on interfacing to the ecpp driver:

    http://docs.sun.com/db/doc/816-0222/6m6nmlstr?a=view#ecpp-7d-indx-1

  -Greg
--
Do NOT reply via e-mail.
Reply in the newsgroup.

 
 
 

1. Low level control of printer port pins, HOW?

Hello world,

Can somebody tell me how I can control the signals of the
printer port using a C program in Linux?

I made a program like this:

  open /dev/lp1
  get lp1 status using an ioctl call
  write 1 character to /dev/lp1 using write
  close /dev/lp1

The program runs as root!
There is no printer connected to the device.
The ioctl call works but after that the program hangs!

When I tried to measure the voltages on the connector pins
I didn't measure any change at all! All pins still measured a low
level voltage!

HOW TO CONTROL THOSE PINS DIRECTLY FROM A PROGRAM WITHOUT HAVING
A PRINTER ON IT?

Regards,

  Remco van den Berg

PS Please answer (also) by mail.
--
_______________________________________________________________________

| Philips Semiconductors B.V.  Phone: +31 40 27 22031                 |
| Building BE-326              Fax  : +31 40 27 22764                 |
| Hurksestraat 19,  5600 MD    http://130.144.62.54/rvdberg/          |

_______________________________________________________________________

2. Very Slow PPP

3. want to control and read pins on the parallel port individually

4. dialup on demand help???

5. How to control parallel port from user level?

6. Roundhill PANEL Plus II

7. Solaris 7 and ecpp parallel port

8. Large File System RH 6.0?

9. have C code for parallel i/o, pin by pin (for interfacing)

10. Help. Data pins in parallel port not responding

11. Interrupt for parallel port on 4 pins?

12. Parallel port programming... pins 12 and 13 not working

13. Pin outs for parallel port zip drive cable?