From owner-freebsd-questions Wed Sep 25 8:26:24 2002 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 9FB3337B401 for ; Wed, 25 Sep 2002 08:26:23 -0700 (PDT) Received: from hugo.futurequest.net (hugo.futurequest.net [63.144.255.2]) by mx1.FreeBSD.org (Postfix) with SMTP id 085BB43E3B for ; Wed, 25 Sep 2002 08:26:23 -0700 (PDT) (envelope-from robert@kedoin.com) Received: (qmail 19784 invoked from network); 25 Sep 2002 15:26:20 -0000 Received: from kedoin.com (63.144.255.191) by hugo.futurequest.net (63.144.255.2 ); 25 Sep 2002 15:26:20 -0000 Received: from unknown (68.38.135.14) by kedoin.com (63.144.255.191) with ESMTP; 25 Sep 2002 15:26:20 -0000 Date: Wed, 25 Sep 2002 11:26:17 -0400 Mime-Version: 1.0 (Apple Message framework v546) Content-Type: text/plain; charset=US-ASCII; format=flowed Subject: Strings on uhid devices From: Robert Kedoin To: freebsd-questions@FreeBSD.ORG Content-Transfer-Encoding: 7bit Message-Id: <228FA25B-D09B-11D6-9048-000393820C8C@kedoin.com> X-Mailer: Apple Mail (2.546) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I've been trying to figure out how to talk to a UPS that is connected via USB on FreeBSD 4.6.1-RELEASE. Since it's a HID device it connects as /dev/uhid0. My question is how do I get to the string descriptor of a uhid device. Specifically, a UPS device has a usage in the hid report descriptor called "iProduct" which is a "string index" describing the product itself. I presume, and this is my first time trying to work with a USB device, that I need to lookup the "string index" value in the string descriptor. ugen provides an ioctl called USB_GET_STRING_DESC which returns a string for an index. However, that doesn't seem to be available for uhid devices. Is this an enhancement that needs to be made to the uhid driver (to provide access to other USB descriptors (device, configuration, interface, endpoints, as well as string) or is there some way to get a string from a "string index" that I'm not seeing ? Thank you very much, Robert Kedoin robert@kedoin.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message