PORTS Forum
Ports and Interfaces => Serial Ports => Topic started by: WestfW on September 22, 2011, 12:51:37 am
-
Is there a way to get information about the underlying hardware and/or driver associated with a particular (probably virtual) COM port? COM16: USB Vendor X ID Y SerNo Z
COM22: USB MODEM Vendor X ID Y Serno Z
COM25: TCP driver foo.exe
(or do you have to approach this from the other direction, scanning USB devices (and etc) and figuring out which COM port they provide?)
-
The devcon example in the WDK shows how to obtain the information you can view in Device Manager and thus might be useful to you:
http://msdn.microsoft.com/en-us/library/ff544818%28VS.85%29.aspx
Jan
-
I found some clues in the USB forums, tracked them down and munged them together and came up with something that seems to more-or-less work.
C:\blah>.\ArduScan
Possible Arduino on COM6, VID 0x0403 PID 0x6001
Serno FTD61T6QA\0000
Code (cygwin, mingw) here: https://github.com/WestfW/ArduScan
(It's not very pretty, since I'm normally an Embedded C kinda person, rather than a Windows C++ person.)