Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Dec 2006 16:37:45 -0800
From:      <soralx@cydem.org>
To:        <mrcomputerwiz@hotmail.com>, <freebsd-hackers@freebsd.org>
Subject:   Re: Capturing Parallel Port Data
Message-ID:  <20061215163745.4662c824@freen0de>
In-Reply-To: <BAY127-F37C5A45F7FB14C21CD800AB3D40@phx.gbl>
References:  <20061214114906.03ab3f6c@freen0de> <BAY127-F37C5A45F7FB14C21CD800AB3D40@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help

> No, I didn't try that but I certainly will now.  I wasn't sure you
> could just cat the port and read the data back.  I will let you know
> how this works.

Well, you should certainly try it, but don't count on it: Daniel says
that lpt returns only printer status (BTW, this means full 5 bits,
right?). What you need is to either write support for the 'byte mode'
in lpt, or utilize the nibble mode if your device supports it.
See `man ppbus` & friends, and `man lptcontrol`.

> -J. Hunt

[SorAlx]  ridin' VN1500-B2



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061215163745.4662c824>