From owner-freebsd-questions@FreeBSD.ORG Wed Jun 30 00:05:28 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E7E416A4CE for ; Wed, 30 Jun 2004 00:05:28 +0000 (GMT) Received: from mail.bitfreak.org (mail.bitfreak.org [65.75.198.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFFD943D2D for ; Wed, 30 Jun 2004 00:05:27 +0000 (GMT) (envelope-from dmp@bitfreak.org) Received: from speck.techno.pagans (c-24-21-232-241.client.comcast.net [24.21.232.241]) by mail.bitfreak.org (Postfix) with ESMTP id 938802A41A; Tue, 29 Jun 2004 17:05:03 -0700 (PDT) Received: from spud (one0.techno.pagans [172.21.42.10]) by speck.techno.pagans (Postfix) with ESMTP id 7D5C3A926; Tue, 29 Jun 2004 17:03:39 -0700 (PDT) From: "Darren Pilgrim" To: Date: Tue, 29 Jun 2004 17:04:50 -0700 Message-ID: <000201c45e35$e00f6740$0a2a15ac@spud> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 In-Reply-To: <20040629160146.GF609@cicely12.cicely.de> Importance: Normal cc: questions@freebsd.org Subject: RE: Can I access a USB device that has no driver attached? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 00:05:28 -0000 > From: Bernd Walter [mailto:ticso@cicely12.cicely.de]=20 > On Thu, Jun 03, 2004 at 06:22:54PM -0700, Darren Pilgrim wrote: > > I have a UPS with a USB interface. There isn't a specific UPS = driver in > > FreeBSD beyond uhid. If I were to connect the UPS's interface port > > without having a driver attached, is it still possible to talk to = the > > device in some way? I ask because I'm helping get nut = (sysutils/nut) > > working for USB UPSes under FreeBSD. >=20 > Maybe your question is outdated, but since noone answered yet. >=20 > - You can enhance our uhid driver > - You can write your own driver > - You can do raw control transfers via /dev/usb* > - You can also do raw control and pipe trandfers if ugen takes the > device > - You can use libusb for portable (Linux, ...) device access via ugen Wow, I'd given up on getting an answer for this one. Here's the = situation right now: With some custom patches provided some helpful folks, I've been able to = get nut's newhidups driver to compile, run, and talk to the device without crashing. As newhidups uses libusb, it is necessary to attach the USB = with ugen. In debugging mode, the newhidups driver dumps the entire usage = table data for the device. Unfortunately, APC irrationally believes the = format of this data to be their intellectual property and thus refuses to make it available, even under NDA. APC will, however, send, at no cost to the customer, serial cables to be used with any UPS that comes with a USB = cable.