Date: Sun, 11 Oct 2009 12:17:47 +0200 From: Hans Petter Selasky <hselasky@c2i.net> To: freebsd-usb@freebsd.org Subject: Re: Simple manner to read 1-pin high/low from USB under FBSD? Message-ID: <200910111217.49002.hselasky@c2i.net> In-Reply-To: <0910111122164F.-1077952704@somehost.domainz.com> References: <0910111122164F.-1077952704@somehost.domainz.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 11 October 2009 11:23:53 Sven Hazejager wrote: > Hi all, > > I'm using a simple circuit to read led pulses from my electricity meter > and am now using simple C code to poll the parallel port to detect a > high/low change on pin 12. (see http://offog.org/code/electricity.html) > > My new server probably won't have a parallel port anymore. So the question > is: is there a simple manner to read 1-pin high/low from USB under FBSD? > Any examples anywhere? usbconfig in FreeBSD-8/9 supports control requests from the command line. usbconfig -u XXX -a YYY do_request <see help menu> --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910111217.49002.hselasky>