Re: Controlling external hardware via lpt0

2004-08-05 Thread Fernando Gleiser
Thanks to all who replied. ppi(4) was exactly what I needed. Fer ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Controlling external hardware via lpt0

2004-08-03 Thread Daniel O'Connor
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 4 Aug 2004 01:34, Fernando Gleiser wrote: > The problem is, I can't even open the paralel port for writing, it > always fails with EBUSY. /dev/lpt0 expects a printer to be connected (you can open /dev/lpt0.ctl but this is not what you should

Re: Controlling external hardware via lpt0

2004-08-03 Thread Nicolas Rachinsky
* Fernando Gleiser <[EMAIL PROTECTED]> [2004-08-03 13:04 -0300]: > I need to control some external hardware with a small program in > FreeBSD. I thought about using the 8 data bits of the parallel port > for sending the control bits to the hardware. > The hardware is a very simple combinational lo

Re: Controlling external hardware via lpt0

2004-08-03 Thread Frank Nobis
Am 3. Aug 2004 um 18:04 schrieb Fernando Gleiser: Is there anything I'm missing? Are there a "programming and using the parallel port in FreeBSD" guide? You should try the ppi(4) driver. See the EXAMPLE section of the man page for details how to send single bytes to the port. Gruß Frank -

Controlling external hardware via lpt0

2004-08-03 Thread Fernando Gleiser
First, I apologize if this isn't the right place for asking this things I need to control some external hardware with a small program in FreeBSD. I thought about using the 8 data bits of the parallel port for sending the control bits to the hardware. The hardware is a very simple combinational lo