Date: Wed, 4 Aug 2004 14:36:32 +0930 From: "Daniel O'Connor" <doconnor@gsoft.com.au> To: freebsd-hackers@freebsd.org Cc: hackers@freebsd.org Subject: Re: Controlling external hardware via lpt0 Message-ID: <200408041436.32294.doconnor@gsoft.com.au> In-Reply-To: <20040803125019.O1361@cactus.fi.uba.ar> References: <20040803125019.O1361@cactus.fi.uba.ar>
next in thread | previous in thread | raw e-mail | index | archive | help
=2D----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= =20 this is not what you should do..) > on the parallel port I attached a DB-25 wired as a "dummy printer", that > is: strobe->/ack, busy, paper end and select inh, wired together and > then sent to pin 18 (GND). > > Is there anything I'm missing? Are there a "programming and using the > parallel port in FreeBSD" guide? man 4 ppi The interface is a bit gross, but it does work quite well (see the avrdude= =20 port for an example of some software that uses it) =2D --=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBEG7Y5ZPcIHs/zowRAjyoAKCiAkilygYm3cwmleYeRGOBlE03QQCfQp64 63HouUdFXijhAljS7BM5YiA=3D =3Dw+sQ =2D----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408041436.32294.doconnor>