[plug] serial/parallel protocol logging

Peter Wright pete at cygnus.uwa.edu.au
Wed Feb 16 13:20:46 WST 2000


On Wed, Feb 16, 2000 at 01:11:31PM +0800, Mike Holland wrote:
> How would you go about logging the data on a bi-directional parallel port,
> for the purpose of analysing the protocol? Its a windoze program, but
> the easiest way (for me) might be vmware or wine. Then log and analyse it
> under linux.
>   I've tried looking for info on this, but am having trouble getting
> started. There seem to be plenty of TCP/IP tools, but how do I log from
> /dev/parport ?  What sort of keywords am I looking for?

I think od(1) is what you might be wanting, if you didn't already know
of it. I've used this quite a lot in the past when attempting to get a
touchscreen (hanging off a serial port) to work under X. It's very useful.

NAME
       od - dump files in octal and other formats

SYNOPSIS
       od [OPTION]... [FILE]...
       od --traditional [FILE] [[+]OFFSET [[+]LABEL]]

DESCRIPTION
       Write   an  unambiguous  representation,  octal  bytes  by
       default, of FILE to standard output.   With  no  FILE,  or
       when FILE is -, read standard input.

[ etc .. ]


Basically, something like

$ od < /dev/parport

should be what you're wanting.

> Mike Holland <mike at golden.wattle.id.au>            Perth, Australia.

Hope that helps,

Pete.
-- 
http://cygnus.uwa.edu.au/~pete/


--
TERRY GILLIAM PLAYED: PATSY (ARTHUR'S TRUSTY STEED), THE GREEN KNIGHT
                      SOOTHSAYER, BRIDGEKEEPER, SIR GAWAIN (THE FIRST TO BE
                      KILLED BY THE RABBIT)
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD



More information about the plug mailing list