From owner-freebsd-questions Wed Dec 6 15:52:09 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA07428 for questions-outgoing; Wed, 6 Dec 1995 15:52:09 -0800 (PST) Received: from hda.com (hda.com [199.232.40.182]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id PAA07351 for ; Wed, 6 Dec 1995 15:51:58 -0800 (PST) Received: (from dufault@localhost) by hda.com (8.6.11/8.6.9) id SAA10511; Wed, 6 Dec 1995 18:55:24 -0500 From: Peter Dufault Message-Id: <199512062355.SAA10511@hda.com> Subject: Re: lpt0 modifications To: jivko@ijs.com Date: Wed, 6 Dec 1995 18:55:23 -0500 (EST) Cc: questions@FreeBSD.org In-Reply-To: <199512061848.KAA09181@freefall.freebsd.org> from "jivko@ijs.com" at Dec 6, 95 10:48:21 am X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-questions@FreeBSD.org Precedence: bulk > > 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