Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 May 2002 16:17:22 -0500 (CDT)
From:      John Utz <john@utzweb.net>
To:        Jai Dhar <jdhar@omega.focalnetworks.net>
Cc:        freebsd-hardware@FreeBSD.ORG
Subject:   Re: Parallel port writing
Message-ID:  <Pine.LNX.4.44.0205101616330.4473-100000@jupiter.linuxengine.net>
In-Reply-To: <20020510171451.W42862-100000@omega.focalnetworks.net>

next in thread | previous in thread | raw e-mail | index | archive | help
i'd suggest looking for a tutorial for accessing devices in FreeBSD, 
because i am not even sure that my assertion is correct.

On Fri, 10 May 2002, Jai Dhar wrote:

> 
> I'm in the process of learning a lot of C's IO commands, so could you tell
> me how I would use that? (I'm more into circuits, haven't really explored
> the interfacing part until now, heh)
> Thanx
> 
> On Fri, 10 May 2002, John Utz wrote:
> 
> > ok, one more suggestion.
> >
> > the code fragment isnt sufficient i think. doesnt it need an open() on the
> > device?
> >
> > On Fri, 10 May 2002, Jai Dhar wrote:
> >
> > >
> > > /dev/ppi0 -> /dev/ppi2 does exist :p
> > > For those who are reading, I'm testing via a simple Led circuit.. led
> > > connected to data pin one and grounded via ground pins. I'm also using the
> > > code snippet used in 'man ppi'.
> > >
> > > On Fri, 10 May 2002, John Utz wrote:
> > >
> > > > how about the device in the dev dir?
> > > >
> > > > ls /dev/ppi doesnt exist on my box, and i am unsure as to how to create
> > > > it.
> > > >
> > > > that's my last idea, best 'o luck!
> > > >
> > > >
> > > > On Fri, 10 May 2002, Jai Dhar wrote:
> > > >
> > > > >
> > > > > device ppc0 at isa? irq 7
> > > > > device ppbus
> > > > > device lpt
> > > > > device ppi
> > > > >
> > > > > All there
> > > > >
> > > > > On Fri, 10 May 2002, John Utz wrote:
> > > > >
> > > > > > do you have the device in the kernel? i've never gave it any thought, but
> > > > > > wouldnt you need device ppi built in?
> > > > > >
> > > > > > i dont know, i am just guessing....
> > > > > >
> > > > > > On Fri, 10 May 2002, Jai Dhar wrote:
> > > > > >
> > > > > > > I am root, lpd isn't running, and as for ppi.. I tried their exact code
> > > > > > > that they have in 'man ppi', and still doesn't work???
> > > > > > >
> > > > > > >
> > > > > > > On Fri, 10 May 2002, John Utz wrote:
> > > > > > >
> > > > > > > > you arent root?
> > > > > > > >
> > > > > > > > or, more likely, lpd owns it!
> > > > > > > >
> > > > > > > > On Fri, 10 May 2002, Jai Dhar wrote:
> > > > > > > >
> > > > > > > > > I have a question about writing to parallel ports.
> > > > > > > > > I am trying to make a basic C program to write simple data to a parallel
> > > > > > > > > port, but when I try, I get an error on opening /dev/lpt0 as "Device Busy"
> > > > > > > > > I tried echo 255 > /dev/lpt0, and also got "Device Busy". When looking at
> > > > > > > > > all my processes, I didn't see anything that visibly took control of
> > > > > > > > > /dev/lpt0. In dmesg, I get both ppc0 and lpt0 detected with an IRQ and IO
> > > > > > > > > address fine. What could be wrong? Thank you
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > > > > > > > with "unsubscribe freebsd-hardware" in the body of the message
> > > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > >
> > > > > > > > John L. Utz III
> > > > > > > > john@utzweb.net
> > > > > > > >
> > > > > > > > Idiocy is the Impulse Function in the Convolution of Life
> > > > > > > >
> > > > > > > >
> > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > > > > > > with "unsubscribe freebsd-hardware" in the body of the message
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > > > > > with "unsubscribe freebsd-hardware" in the body of the message
> > > > > > >
> > > > > >
> > > > > > --
> > > > > >
> > > > > > John L. Utz III
> > > > > > john@utzweb.net
> > > > > >
> > > > > > Idiocy is the Impulse Function in the Convolution of Life
> > > > > >
> > > > > >
> > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > > > > with "unsubscribe freebsd-hardware" in the body of the message
> > > > > >
> > > > >
> > > > >
> > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > > > with "unsubscribe freebsd-hardware" in the body of the message
> > > > >
> > > >
> > > > --
> > > >
> > > > John L. Utz III
> > > > john@utzweb.net
> > > >
> > > > Idiocy is the Impulse Function in the Convolution of Life
> > > >
> > > >
> > > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > > with "unsubscribe freebsd-hardware" in the body of the message
> > > >
> > >
> > >
> > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > with "unsubscribe freebsd-hardware" in the body of the message
> > >
> >
> > --
> >
> > John L. Utz III
> > john@utzweb.net
> >
> > Idiocy is the Impulse Function in the Convolution of Life
> >
> >
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hardware" in the body of the message
> 

-- 

John L. Utz III
john@utzweb.net

Idiocy is the Impulse Function in the Convolution of Life


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hardware" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.44.0205101616330.4473-100000>