Add WCID support for DFU Runtime interface#140
Open
legonigel wants to merge 1 commit into
Open
Conversation
This adds Microsoft OS 1.0 Descriptors (WCID) to the DFU Runtime interface (interface skuep#6) to allow Windows hosts to automatically bind the WinUSB driver. - Defines Microsoft OS String Descriptor (index 0xEE) with the "MSFT100" signature and vendor code 0x20. - Implements Microsoft Compatible ID Feature Descriptor returning "WINUSB" for the DFU Runtime interface (ITF_NUM_DFU_RT). - Adds the STR_IDX_MS_OS_STRING (0xEE) case to tud_descriptor_string_cb to return the MS OS string descriptor. - Implements tud_vendor_control_xfer_cb to handle the vendor control request for Compatible ID feature descriptors. This removes the need for Windows users to manually bind the WinUSB driver using tools like Zadig for dfu-util to communicate with the DFU Runtime.
Collaborator
Author
|
On some further testing, I'm not 100% sure this works correctly yet. Let me try a bit more. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds Microsoft OS 1.0 Descriptors (WCID) to the DFU Runtime interface (interface 6) to allow Windows hosts to automatically bind the WinUSB driver.
This removes the need for new Windows users to manually bind the WinUSB driver using tools like Zadig for dfu-util to communicate with the DFU Runtime. Unfortunately, this doesn't help people that have already plugged in an AIOC, since windows "helpfully remembers" this in the registry and appears to not check it twice.
For more details see https://github.com/pbatard/libwdi/wiki/WCID-Devices