Unique identifier (other than Vid/Pid) for an USB device that can be retrieved using SetupDixxx() APIs
-
In my application I need to have the ability to uniquely identify an USB device that is inserted. For example: Example 1) If an USB mouse is inserted, I should be able to figure out that it is a particular mouse from a particular manufacturer and it is of particular model. Example 2) If an USB stick is inserted, I should be able to figure out that it is a particular USB stick from a particular manufacturer and it is of particular model.
These needs to be achieved without taking into vid/pid since I am looking into a case of shared. I dont mind using Vid/Pid also provided I get another unique identifier which I can couple with Vid/Pid as an identifying key. I can add this key to a configuration file in my application to figure out whether it is a device for which I would want the application to take some action on. Any help/direction/suggestion is highly appreciated. -
In my application I need to have the ability to uniquely identify an USB device that is inserted. For example: Example 1) If an USB mouse is inserted, I should be able to figure out that it is a particular mouse from a particular manufacturer and it is of particular model. Example 2) If an USB stick is inserted, I should be able to figure out that it is a particular USB stick from a particular manufacturer and it is of particular model.
These needs to be achieved without taking into vid/pid since I am looking into a case of shared. I dont mind using Vid/Pid also provided I get another unique identifier which I can couple with Vid/Pid as an identifying key. I can add this key to a configuration file in my application to figure out whether it is a device for which I would want the application to take some action on. Any help/direction/suggestion is highly appreciated.USB knows about vendor ID and product ID, and it allows for unique numbers (serialnumber). IIRC vid and pid are mandatory, however I'm sure a serial number is not, it is just an optional string. I do know most if not all USB stick vendors provide one. When no serial number is present, there's nothing you can do about it. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.
-
USB knows about vendor ID and product ID, and it allows for unique numbers (serialnumber). IIRC vid and pid are mandatory, however I'm sure a serial number is not, it is just an optional string. I do know most if not all USB stick vendors provide one. When no serial number is present, there's nothing you can do about it. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.
Thanks very much Luc. Curious to know what IIRC stands for? Could please let me know the expansion for the same? Thanks, Sharath
-
Thanks very much Luc. Curious to know what IIRC stands for? Could please let me know the expansion for the same? Thanks, Sharath
you want the fish? or the fishing rod? Google: acronym IIRC :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.
-
Thanks very much Luc. Curious to know what IIRC stands for? Could please let me know the expansion for the same? Thanks, Sharath
IIRC = If I Recall/Remember Correctly ?? I thought it could be some standard/specification related term :) Thanks, Sharath