Detecting the IPOD as HID device
greg at kroah.com
Wed Aug 25 09:42:41 PDT 2010
On Wed, Aug 25, 2010 at 06:31:10PM +0200, Maciej Grela wrote:
> 2010/8/25 Greg KH <greg at kroah.com>:
> > On Wed, Aug 25, 2010 at 09:29:50PM +0530, Sandeep G.R wrote:
> >> Hi All,
> >> I have an iPOD and when connect to my linux host(ubuntu 10.04)
> >> by default it will detect as usb mass storage i need to write a driver so
> >> that when the iPOD is connected to the linux host the device should change
> >> its configuration from mass storage to HID device.
> > Why would you want to do that?
> > And what type of HID device? Does the ipod export a HID device
> > interface already?
> Yes, it does. My ipod classic has two configurations - one is normal usb-storage
> and the second one has audio and HID ifaces. The HID EP doesn`t seem to
> send any events and the audio says "cannot get freq at ep 0x81" so it`s not very
> useful at the moment.
Odds are the HID one is there so that a userspace Windows program can
control the device (iTunes?). That's the easy way to write a userspace
Windows usb driver. It probably isn't a real "HID" device at all,
especially if you can't parse the HID descriptors.
More information about the devel