Skip to content

Conversation

@brendanjerwin
Copy link

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

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.
@george-echo
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants