-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
how to get multiple interface info? #593
Comments
I never heard of MI values, but very likely your device returns the ports in a fixed order so you can try out |
https://learn.microsoft.com/en-us/windows-hardware/drivers/install/standard-usb-identifiers There is some information about multiple interfaces on this website: Multiple-Interface USB Devices Each interface has a device ID of the following form: USB\VID_v(4)&PID_d(4)&MI_z(2) Where: v(4) is the vendor code that the USB committee assigns to the vendor. d(4) is the product code that the vendor assigns to the device. z(2) is the interface number that is extracted from the bInterfaceNumber field of the corresponding interface descriptor. |
the ports are numbers in the order as they are returned by the device. This typically is fixed. Please try and use 0,1,2 instead of 2,4,6 |
Hi,all:
My usb device has three ports on PC:
USB\VID_2C91&PID_0002&MI_06\6&3911747D&1&0006
USB\VID_2C91&PID_0002&MI_02\6&3911747D&1&0002
USB\VID_2C91&PID_0002&MI_04\6&3911747D&1&0004
also, it has three ports on my phone,but i can only get port num (0,1,2) in the port list, which comes from these codes:
" text1.setText(item.driver.getClass().getSimpleName().replace("SerialDriver","")+", Port "+item.port);"
I know how to get VID&PID, but i don't kown how to get MI ?
I need to obtain MI information and distinguish these ports
The text was updated successfully, but these errors were encountered: