On Mon, Oct 18, 2021 at 2:03 PM fishx2000--- via pyusb-users
<pyusb-users@lists.sourceforge.net> wrote:
>
> Hi,
>
> I can send input/output report request via HID interface, using the following 
> command:
>     dev.ctrl_transfer(0xA1, 0x01, 0x0100|reportId, hidItfaceIdx, reportLen)
>     dev.ctrl_transfer(0x21, 0x09, 0x0200|report[0], hidItfaceIdx, report)
>
> but failed to send feature report request:
>     dev.ctrl_transfer(0xA1, 0x01, 0x0300|reportId, hidItfaceIdx, reportLen)
>     dev.ctrl_transfer(0x21, 0x09, 0x0300|report[0], hidItfaceIdx, report)
>
>
> I tried the above command in MS-Window, using libusb as backend.
> Is there any restrictions on this usage?

If it is for HID device, you may want to use HIDAPI and cython-hidapi.

There are quite some limitations for the libusb/pyusb with HID devices.

But if you really want to try out pyusb with native HID device driver, you
can try the latest libusb-1.0 git. It has one critical fix for the
feature report.
https://github.com/libusb/libusb/pull/986




-- 
Xiaofan


_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to