[libhid-discuss] Broken pipe whilst setting idle

Charles Lepple clepple at ghz.cc
Mon Feb 5 22:40:12 CET 2007


On Feb 4, 2007, at 1:58 PM, Mark Lee wrote:

> Hello, VERY new to USB and HID so please bear with me.
>
> I'm getting the error:
>
> WARNING: hid_set_idle(): failed to Set_Idle for USB device
> 004/006[2]:error sending control message: Broken pipe.
>
> whilst executing the following python code:
>
>   ret = hid_set_idle(hid, 0, 0x0)
>     if ret != HID_RET_SUCCESS:
> 	    sys.stderr.write("hid_set_idle failed with return code %d.\n"  
> % ret)
>
> I'm under the impression that this should set undefinite idle for all
> reports on the given interface which has been successfully opened.
>
> What might be causing the reported failure?

Here is the underlying C code:

http://www.ghz.cc/~clepple/libhid/doc/html/hid__exchange_8c- 
source.html#l00428

As you can see, that basically passes the control message straight to  
the device.

You can try enabling libusb debug output, but the basic problem is  
that these calls are all heavily dependent on the underlying USB  
device firmware.

-- 
Charles Lepple
clepple at ghz.cc





More information about the libhid-discuss mailing list