From owner-freebsd-usb@FreeBSD.ORG Sun Oct 11 14:19:49 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7DB13106566B for ; Sun, 11 Oct 2009 14:19:49 +0000 (UTC) (envelope-from sven@hazejager.nl) Received: from chainsoftware.nl (tunnel655.ipv6.xs4all.nl [IPv6:2001:888:10:28f::2]) by mx1.freebsd.org (Postfix) with ESMTP id F3BE88FC14 for ; Sun, 11 Oct 2009 14:19:48 +0000 (UTC) Received: from chainsoftware.nl (localhost [127.0.0.1]) by chainsoftware.nl (8.14.3/8.14.3) with ESMTP id n9BEJjgT009128; Sun, 11 Oct 2009 16:19:45 +0200 (CEST) (envelope-from sven@hazejager.nl) Received: from localhost (sven@localhost) by chainsoftware.nl (8.14.3/8.14.3/Submit) with ESMTP id n9BEJjp5009125; Sun, 11 Oct 2009 16:19:45 +0200 (CEST) (envelope-from sven@hazejager.nl) X-Authentication-Warning: proxy.chain.loc: sven owned process doing -bs Date: Sun, 11 Oct 2009 16:19:45 +0200 (CEST) From: Sven Hazejager To: Hans Petter Selasky In-Reply-To: <200910111217.49002.hselasky@c2i.net> Message-ID: <09101116183255.-1077948416@somehost.domainz.com> References: <0910111122164F.-1077952704@somehost.domainz.com> <200910111217.49002.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Status: No, hits=-3.689 tests=ALL_TRUSTED,AWL,BAYES_00 X-Scanned-By: MIMEDefang 2.64 on 192.168.0.1 Cc: freebsd-usb@freebsd.org Subject: Re: Simple manner to read 1-pin high/low from USB under FBSD? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Oct 2009 14:19:49 -0000 On Sun, 11 Oct 2009, Hans Petter Selasky wrote: >> 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 Thanks for your reply, would I need some GPIO device like this: http://www.fivemanconspiracy.com/node/45 Please excuse my ignorance, I'm completely new to low-level hacking and I'm very happy that I got the parallel port option going in the first place :-) Sven