m-stack icon indicating copy to clipboard operation
m-stack copied to clipboard

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

Open Planet911 opened this issue 5 years ago • 3 comments

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 */ };

Planet911 avatar Dec 06 '20 13:12 Planet911

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

ddavidebor avatar Jun 07 '21 11:06 ddavidebor

@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.

Planet911 avatar Jun 07 '21 12:06 Planet911

I see thanks!

ddavidebor avatar Jun 10 '21 11:06 ddavidebor