From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 15 23:54:12 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 9081216A415 for ; Fri, 15 Dec 2006 23:54:12 +0000 (UTC) (envelope-from mrcomputerwiz@hotmail.com) Received: from bay0-omc2-s23.bay0.hotmail.com (bay0-omc2-s23.bay0.hotmail.com [65.54.246.159]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18C7043CA6 for ; Fri, 15 Dec 2006 23:52:28 +0000 (GMT) (envelope-from mrcomputerwiz@hotmail.com) Received: from hotmail.com ([65.55.132.106]) by bay0-omc2-s23.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Fri, 15 Dec 2006 15:54:12 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 15 Dec 2006 15:54:11 -0800 Message-ID: Received: from 65.55.132.123 by by127fd.bay127.hotmail.msn.com with HTTP; Fri, 15 Dec 2006 23:54:09 GMT X-Originating-IP: [71.234.63.28] X-Originating-Email: [mrcomputerwiz@hotmail.com] X-Sender: mrcomputerwiz@hotmail.com In-Reply-To: <200612152025.17442.doconnor@gsoft.com.au> From: "Mr CW" To: freebsd-hackers@freebsd.org Date: Fri, 15 Dec 2006 23:54:09 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 15 Dec 2006 23:54:11.0749 (UTC) FILETIME=[51811D50:01C720A4] Cc: 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: Fri, 15 Dec 2006 23:54:12 -0000 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 port 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... I'm still looking into this, so any other suggestions are very welcome. Thanks again, -J On Friday 15 December 2006 05:32, Mr CW wrote: > Now, my real question is: how do I read data from the parallel port on the > FreeBSD computer that is coming from the tester which is trying to 'print' > to the FBSD computer's parallel port? Is there a suggested pinout for a > parallel crossover calbe to accomplish this task with ppi? Is the > crossover cable even required? I think you would need to wire ACK to STROBE at the very least.. I kind of suspect you'd need to write a ppbus driver because lpt only returns the printer status when read. > Finally, is there a FBSD-sanctioned parallel port driver for use with Perl > instead of using ppi and C? It would be pretty easy to write a wrapper to use ppi in Perl (eg SWIG) -- 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 << attach3 >> _________________________________________________________________ WIN up to $10,000 in cash or prizes – enter the Microsoft Office Live Sweepstakes http://clk.atdmt.com/MRT/go/aub0050001581mrt/direct/01/