On Fri, Mar 2, 2018 at 10:10 AM, Michael Hennebry
<michael.henne...@rivieranexus.com> wrote:
> I have three USB devices connected,
> an Atmel ICE, a mouse and a CDC device.
> usb.core.find(find_all=True)
> finds the Atmel ICE twice, but not the others.
>
> I'm stuck on Windows 10.
> The device manager lists the CDC device under
> Ports (COM & LPT)
> Arduino Mega 2560 (COM6)
> The Arduino serial monitor has no trouble finding it.
> The device manager lists the mouse under
> Human Interface Devices
> Microsoft USB Wheel Mouse Optical
>
> ATmega2560's do not do USB natively.
> A chip that does is between the ATmega2560 and the USB cable.
>
> Is there some trick to get pyusb to notice
> the mouse and the CDC device?
>

pyusb is based on libusb, so you will inherit the limitation
of libusb under Windows.

libusb is mainly meant for generic usb device, so it means
that you should not really use libusb/pyusb with your mouse
or serial port device.

If you use libusb-win32, its supported drivers are
libusb0.sys and libusbk.sys, so only those device using
these two drivers will be usable for libusb-win32 and pyusb.

If you use libusb-1.0 API (libusb Windows), then its supported
driver are WinUSB, libusbK.sys (better not use libusb0.sys),
usbdk and generic HID (not mouse/keyboard). So unless you
use the supported driver together with your mouse and your
CDC device, they will not be really usable by libusb and pyusb.

But if you really want to try, you can try libusb usbdk backend,
which may work with your CDC device. It acts as a filter driver.

Ref: https://github.com/libusb/libusb/wiki/Windows
Ref: https://github.com/daynix/UsbDk

-- 
Xiaofan

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to