Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple Pac-Drive devices. #79

Merged
merged 1 commit into from
Jan 25, 2021

Conversation

Japi42
Copy link
Contributor

@Japi42 Japi42 commented Jan 25, 2021

Updates umtool to support multiple Pac-Drive boards, fixes issue #48 . The Pac-Drive boards must have been ordered from Ultimarc with unique IDs. All Pac-Drive boards use 0x1500 as the Product ID, the device release number (bcdDevice) of the USB device is what indicates the board ID (according to the Windows Pac-Drive SDK code on the Ultimarc website, though that code calls the field "Version Number" instead of "Device Release Number"). A new function named "openUSBWithReleaseNumber" has been added to common.c that traverses the USB device list and opens the device with the matching vendor/product/release number combination. The pacdrive.c code has been updated to use this function for opening the device. These changes have been tested with board IDs 1 and 2 but should work for 3 and 4 as well.

Copy link
Owner

@katie-snow katie-snow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for adding this functionality.

@katie-snow katie-snow merged commit 540d403 into katie-snow:master Jan 25, 2021
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