Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Oct 2009 02:47:34 +0900
From:      Hiroharu Tamaru <tamaru@myn.rcast.u-tokyo.ac.jp>
To:        Sven Hazejager <sven@hazejager.nl>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: Simple manner to read 1-pin high/low from USB under FBSD?
Message-ID:  <sa6ljjh7rgp.wl%tamaru@myn.rcast.u-tokyo.ac.jp>
In-Reply-To: <09101118515750.-1077948416@somehost.domainz.com>
References:  <0910111122164F.-1077952704@somehost.domainz.com> <200910111217.49002.hselasky@c2i.net> <09101116183255.-1077948416@somehost.domainz.com> <200910111639.07588.hselasky@c2i.net> <09101118515750.-1077948416@somehost.domainz.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi

At Sun, 11 Oct 2009 18:56:16 +0200 (CEST), Sven Hazejager wrote:
> On Sun, 11 Oct 2009, Hans Petter Selasky wrote:
> 
> >> Thanks for your reply, would I need some GPIO device like this:
> >> http://www.fivemanconspiracy.com/node/45
> >
> > I don't know. You need to ask the manufacturer. Ask them if  the control
> > endpoint is used to turn on/off the pin(s) you want.
> 
> Well, I only need to read high/low, not to set anything... I've mailed the 
> manufacturer for info, thanks for suggesting.

I once considered replacing ppi(4) functionalities with usb-
to-parallel converters as well.  They seem to follow the USB
Printer Class specification.

http://www.usb.org/developers/devclass_docs/usbprint11.pdf

According to the protocol description, they seem to be
rather intelligent in processing the handshake and do not
allow the host to program each bits like ppi(4) interface
does.  However, they do seem to support couple of input pins
like "paper empty", "select" and "error" (pin 12, 13, and
15, IIRC).  So, for your use, probably they may be good
enough.

I myself didn't actually try them, 'cause I needed more bits
in and out anyway.  YMMV, but just FYI.


I'd be interested in success stories with USB GPIO devices
as well, so if you'd try it, please send in your experiences
too. I haven't looked at the device you mentioned, but if
they release a spec sheet like the one I mentioned above,
you should be able to used them fine.

-- 
Hiroharu Tamaru



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?sa6ljjh7rgp.wl%tamaru>