From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 4 05:06:55 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C041616A4CE; Wed, 4 Aug 2004 05:06:55 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id B01BE43D2D; Wed, 4 Aug 2004 05:06:52 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id i7456Wx4054865; Wed, 4 Aug 2004 14:36:33 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Wed, 4 Aug 2004 14:36:32 +0930 User-Agent: KMail/1.6.2 References: <20040803125019.O1361@cactus.fi.uba.ar> In-Reply-To: <20040803125019.O1361@cactus.fi.uba.ar> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200408041436.32294.doconnor@gsoft.com.au> X-Spam-Score: -4.9 () CARRIAGE_RETURNS,IN_REP_TO,PGP_SIGNATURE,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_02_03,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: hackers@freebsd.org Subject: Re: Controlling external hardware via lpt0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 05:06:55 -0000 =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-----