force power over usb
Hans Petter Selasky
hselasky at c2i.net
Mon May 23 08:47:42 GMT 2005
On Monday 23 May 2005 08:04, Daniel Rucci wrote:
>
>Standard Device Descriptor:
> bLength 18
> bDescriptorType 01
> bcdUSB 0110
> bDeviceClass 02
> bDeviceSubClass 00
> bDeviceProtocol 00
> bMaxPacketSize 8
> idVendor 22b8
> idProduct 4902
> bcdDevice 0001
> iManufacturer 1
> iProduct 2
> iSerialNumber 0
> bNumConfigurations 1
>
>Configuration 0:
> Standard Configuration Descriptor:
> bLength 9
> bDescriptorType 02
> wTotalLength 67
> bNumInterface 2
> bConfigurationValue 1
> iConfiguration 4
> bmAttributes c0 (self-powered)
> bMaxPower 50 (100 mA)
There is only one configuration, and that configuration is self-powered, so
I'm not sure if that cable is for charging. But do you know if it charges
under other OS'es ?
> Standard Interface Descriptor:
> bLength 9
> bDescriptorType 04
> bInterfaceNumber 0
> bAlternateSetting 0
> bNumEndpoints 1
> bInterfaceClass 02
bInterfaceClass is "CDC"
> bInterfaceSubClass 02
bInterfaceSubClass is "ABSTRACT_CONTROL_MODEL"
> bInterfaceProtocol 01
> iInterface 5
according to defines in /sys/dev/usb/*
There is a spec available at:
http://www.usb.org/developers/devclass_docs/usbcdc11.pdf
But I'm not sure if it describes "bInterfaceProtocol 01".
What you can do is:
cat /dev/ugen0.1 | hexdump
Then do something on the phone and see what happens.
> Standard Interface Descriptor:
> bLength 9
> bDescriptorType 04
> bInterfaceNumber 1
> bAlternateSetting 0
> bNumEndpoints 2
> bInterfaceClass 0a
> bInterfaceSubClass 00
> bInterfaceProtocol 00
> iInterface 16
To get this interface working you will have to ask the vendor for information.
Maybe they've got a specification for it that is not propritary?
--HPS
More information about the freebsd-usb
mailing list