usb icon indicating copy to clipboard operation
usb copied to clipboard

Allow bulk transfer type in addition to interrupt

Open brendanjerwin opened this issue 2 years ago • 1 comments

More careful checking of the endpoint attributes to look only at the bits indicating transfer type.

A little more paranoia while checking the endpoint address direction as well. Not assuming non-IN is OUT now.


Caution: I really don't know what I'm doing. This is working for me, with my one device (Zebra label printer) on Windows 11 with the WinUSB driver. I'll be doing further testing on Ubuntu soon with that same printer.

FWIW, a quick glance here gives me hope that it is reasonable to enable bulk transfer: https://github.com/libusb/libusb/blob/37dee8f9dd429558e4d5bc4a804ab586abe7262a/examples/xusb.c#L911

brendanjerwin avatar Dec 22 '23 14:12 brendanjerwin

Also having issue with using this package with a Zebra printer, using these changes worked for me running MacOS 15.0 to allow me to enumerate with vendor id 0x0a5f & print labels. Thanks, hope it gets some eyes on it from someone who knows USB stuff.

george-echo avatar Oct 04 '24 17:10 george-echo