[libhid-discuss] coldplug hid_interrupt_read problems

Allen Curtis ajcurtis84 at gmail.com
Fri Nov 14 22:37:35 UTC 2008


False alarm!

There were two devices connected at the same time. The hotplug  
operation reordered the devices and when the program was restarted,  
the other device was found.

Thanks
Allen


On Nov 14, 2008, at 1:52 PM, Allen Curtis wrote:

> Hello,
>
> I am trying to interface with a HID USB device, on the other side of  
> a hub. I mention the hub because this problem did not exist or was  
> not as pronounced in prior testing without a hub.
>
> After power-on, I can not communicate with the device. If I hotplug  
> the device and restart the program it works.
>
> I tried inserting the code as part of the initialization:
>    usb_clear_halt(hid->dev_handle,0x81); //if endpoint is 0x81
>    usb_reset(hid->dev_handle);
>
> But it did not fix the problem. (I don't know how to get the  
> endpoint number either)
>
> Is there a way to force an equivalent of a hotplug? Get the whole  
> bus to enumerate itself?
>
> Any help would be appreciated.
>
> TIA
>
> Allen




More information about the libhid-discuss mailing list