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

Correct the Microsoft OS string that indicates this device supports extended feature descriptors #28

Open
Planet911 opened this issue Dec 6, 2020 · 3 comments

Comments

@Planet911
Copy link

FYI Last byte of this structure must be 0x01

struct microsoft_os_descriptor os_descriptor =
{
0x12, /* bLength /
0x3, /
bDescriptorType /
{'M','S','F','T','1','0','0'}, /
qwSignature /
MICROSOFT_OS_DESC_VENDOR_CODE, /
bMS_VendorCode /
0x01, /
bPad Must be 0x01 */
};

@ddavidebor
Copy link

Hi @Planet911
Do you remember what issue the wrong descriptor caused?

@Planet911
Copy link
Author

@ddavidebor
Hmmm, it's been a while, but as I recall the device would not enumerate as a WCID WinUSB device (i.e. WinUSB assigned as the driver automatically) on Win10 until I changed that last byte to 0x01. I saw that 0x01 was used in several examples on the web, and it definetly works with that. Maybe other numbers work too, not sure. My fork of m-stack includes a working WCID example.

@ddavidebor
Copy link

I see thanks!

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

No branches or pull requests

2 participants