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
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to