From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 16 00:43:14 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 156B916A40F for ; Sat, 16 Dec 2006 00:43:14 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1989243C9D for ; Sat, 16 Dec 2006 00:41:28 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp157-244.lns2.adl2.internode.on.net [121.44.157.244]) (authenticated bits=0) by cain.gsoft.com.au (8.13.5/8.13.4) with ESMTP id kBG0h8UB036616 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 16 Dec 2006 11:13:10 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: "Mr CW" Date: Sat, 16 Dec 2006 11:12:44 +1030 User-Agent: KMail/1.9.4 References: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart291558726.cVBET4nL85"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200612161112.52611.doconnor@gsoft.com.au> X-Spam-Score: -1.42 () AWL,BAYES_00 X-Scanned-By: MIMEDefang 2.57 on 203.31.81.10 Cc: freebsd-hackers@freebsd.org Subject: Re: Capturing Parallel Port Data X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Dec 2006 00:43:14 -0000 --nextPart291558726.cVBET4nL85 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 16 December 2006 10:24, Mr CW wrote: > Thank you for the pointers. It sounds like reading data back from the > parallel port is not a common thing to do, although I thought parallel po= rt > projects might have done this. Then I realized that most PIC programmers, > parallel port displays, etc. usually only receive data, not send it back = to > the computer... It is pretty easy to read data in a GPIO kind of fashion - you can set the= =20 data direction (PCD) to input and then use PPIGDATA. However for what you=20 want the each byte of the data stream is marked by a STROBE pulse and AFAIK= =20 there isn't a preexisting way to handle this. > I'm still looking into this, so any other suggestions are very welcome. If it was me I'd use a microcontroller (eg AVR) to turn the parallel data i= nto=20 a serial stream and read it in to a PC's serial port. However we already ma= ke=20 PCBs and write microcontroller code at work.. Actually maybe something like this would do what you want=20 http://www.bb-elec.com/product.asp?SKU=3D232SPS2 I think then you could just plug it into the FreeBSD box and log the stuff= =20 coming from the serial port. =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 --nextPart291558726.cVBET4nL85 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBFg0EM5ZPcIHs/zowRAmipAJsGnVOHhD+/Tvc97S4ueE2EJCqQ/QCfbzPW /mm0MezeSu/+RXBoxawHKqk= =5I7t -----END PGP SIGNATURE----- --nextPart291558726.cVBET4nL85--