Date: Sat, 16 Dec 2006 11:12:44 +1030 From: "Daniel O'Connor" <doconnor@gsoft.com.au> To: "Mr CW" <mrcomputerwiz@hotmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Capturing Parallel Port Data Message-ID: <200612161112.52611.doconnor@gsoft.com.au> In-Reply-To: <BAY127-F2600E499F0FAE61D967201B3D40@phx.gbl> References: <BAY127-F2600E499F0FAE61D967201B3D40@phx.gbl>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] 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 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... It is pretty easy to read data in a GPIO kind of fashion - you can set the data direction (PCD) to input and then use PPIGDATA. However for what you want the each byte of the data stream is marked by a STROBE pulse and AFAIK 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 into a serial stream and read it in to a PC's serial port. However we already make PCBs and write microcontroller code at work.. Actually maybe something like this would do what you want http://www.bb-elec.com/product.asp?SKU=232SPS2 I think then you could just plug it into the FreeBSD box and log the stuff coming from the serial port. -- 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 [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBFg0EM5ZPcIHs/zowRAmipAJsGnVOHhD+/Tvc97S4ueE2EJCqQ/QCfbzPW /mm0MezeSu/+RXBoxawHKqk= =5I7t -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612161112.52611.doconnor>
