Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
What configuration is the device in after it resets? #36
After reset the state should become "default" where after you can set address and get into "adressed" state. At this point you can set a configuration, if the device has one.
This is where Windows usually selects 1.
You can also use the value 0 to deconfigure a device.
As you are suppose to set it anyway, does it matter what configuration is set? Shouldn't it not just stay unset?
Very old issue, but... with all real USB host stacks, the stack is going to take care of assigning the address. A user mode application will only be able to talk to the device once it's in the Addressed state. The owning kernel-mode component might, or might not, assign a default configuration before a user-mode component can join the party. The design of the API should be agnostic to the current configuration of the device -- the client should be able to query the current config value, and then set what it likes. Be aware that
Even more unfortunately, some devices have