From: Jonas M. <jo...@pr...> - 2020-11-14 07:21:01
|
On Fri, Nov 13, 2020 at 3:51 AM John Beamish <jbe...@gm...> wrote: > ... > > I know I have/ or am doing something wrong but if anyone is able to advise me I would really appreciate this. > > This was supposed to be the easy bit!!! > Regards Unfortunately you complicated things for yourself by picking a Human Interface Device (HID) for your proof-of-concept. On Windows libusb (which is what PyUSB is using) wraps the HID driver, and this results in some limitations to what APIs are available. Additionally, in many OSes, including Windows, access to mice and keyboards is restricted for security reasons. You will have better luck with other devices. That said, you should also keep in mind the "lightweight reset issue" when calling `set_configuration`; the FAQ goes into more detail about this, linking to the relevant libusb documentation.[1] Hope this helps, Jonas [1] https://github.com/pyusb/pyusb/blob/master/docs/faq.rst#how-not-to-call-set_configuration-on-a-device-already-configured-with-the-selected-configuration |