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

Consistent string descriptors #8

Open
manuelbl opened this issue Feb 21, 2023 · 1 comment
Open

Consistent string descriptors #8

manuelbl opened this issue Feb 21, 2023 · 1 comment

Comments

@manuelbl
Copy link
Owner

USB devices can provide string descriptors such a manufacturer and product name in different languages. On macOS and Linux, the relevant string descriptors are fetched by the operating system. On Windows, this library queries them explicitly with control requests.

It is unclear, which language version is used on the different operating systems, and if they are consistent across all operating systems.

The goal of this issue is to fix investigate it and fix inconsistencies.

@manuelbl
Copy link
Owner Author

manuelbl commented May 1, 2023

Analysis Linux:

Linux seems to retrieve the first languages (declared in string string descriptor with index 0).

Analysis Windows:

For the Windows implementation, manufacturer and product name are retrieved using an explicit GetDescriptor request as there is no obvious way to get the information from Windows during device enumeration. As such, it is up to this library to specify the language ID.

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

1 participant