Controlling external hardware via lpt0

Daniel O'Connor doconnor at gsoft.com.au
Tue Aug 3 22:06:55 PDT 2004


-----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 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 
port for an example of some software that uses it)

- -- 
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFBEG7Y5ZPcIHs/zowRAjyoAKCiAkilygYm3cwmleYeRGOBlE03QQCfQp64
63HouUdFXijhAljS7BM5YiA=
=w+sQ
-----END PGP SIGNATURE-----


More information about the freebsd-hackers mailing list