Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Dec 1995 18:55:23 -0500 (EST)
From:      Peter Dufault <dufault@hda.com>
To:        jivko@ijs.com
Cc:        questions@FreeBSD.org
Subject:   Re: lpt0 modifications
Message-ID:  <199512062355.SAA10511@hda.com>
In-Reply-To: <199512061848.KAA09181@freefall.freebsd.org> from "jivko@ijs.com" at Dec 6, 95 10:48:21 am

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> I hope this question will not be too much of a trouble for 
> you, I have spent some time looking around the documentation
> and could not find answer for it myself so here goes:
> 
> I owuld like to use the Paralel Prot of a FreeBSD running 
> machine to control another very simple device which is not a
> printer. The interface to that device, however, is not
> compatible with the interface to a printer and does not 
> support the hardware hand-shake protocol a normal printer 
> would do. Is there a way I could reconfigure the kernel 
> respectively the /dev/lpt0 device to ignore those errors and
> simply dump numbers to the parallel port? It has to be 
> something very simple, but I don't seem to be able to find 
> it.,

I did something like this a while back (386bsd) to drive a stepper
motor.  I can dig up the driver but you'll have to fold it in as
I don't have much time right now.  It will even do trapezoidal
profiling for you.

Will opening /dev/io and doing outbs directly to the data port from
your user process work for this application?

--
Peter Dufault               Real Time Machine Control and Simulation
HD Associates, Inc.         Voice: 508 433 6936
dufault@hda.com             Fax:   508 433 5267



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