From owner-freebsd-usb@FreeBSD.ORG Sun Oct 11 14:38:20 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 C5B7B1065676 for ; Sun, 11 Oct 2009 14:38:20 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe12.swipnet.se [212.247.155.97]) by mx1.freebsd.org (Postfix) with ESMTP id 4F7978FC0A for ; Sun, 11 Oct 2009 14:38:19 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=UuNRGLdq-uYA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=atjvDLXKAAAA:8 a=CVj4utX5Qhq6xpOkMSsA:9 a=66EdAio0GQv0CiDTHJ9-5FJldb8A:4 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe12.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 1139946852; Sun, 11 Oct 2009 16:38:15 +0200 From: Hans Petter Selasky To: Sven Hazejager Date: Sun, 11 Oct 2009 16:39:05 +0200 User-Agent: KMail/1.11.4 (FreeBSD/9.0-CURRENT; KDE/4.2.4; i386; ; ) References: <0910111122164F.-1077952704@somehost.domainz.com> <200910111217.49002.hselasky@c2i.net> <09101116183255.-1077948416@somehost.domainz.com> In-Reply-To: <09101116183255.-1077948416@somehost.domainz.com> X-Face: (%:6u[ldzJ`0qjD7sCkfdMmD*RxpOwEEQ+KWt[{J#x6ow~JO:,zwp.(t; @Aq :4:&nFCgDb8[3oIeTb^'",;u{5{}C9>"PuY\)!=#\u9SSM-nz8+SR~B\!qBv MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200910111639.07588.hselasky@c2i.net> 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:38:20 -0000 On Sunday 11 October 2009 16:19:45 Sven Hazejager wrote: > 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 Hi, 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. --HPS