Please advice me, is there any built in function to retrieve “PID” and “VID” when USB is hooked up to the system? If not, what is the best way to get USB “HID” and “PID”? I need these two to detect USB HID device.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since your tag specifies
C#I’m going to assume that you want to do this using Microsoft Windows.Using Windows I find this information using Device Manager under Computer Management (right-click on
My Computerand selectManage). UsingView->Devices by connectionopen up thePCI busnode and then all of the USB nodes until you find the device you are looking for. Below is an example from my PC showing three USB devices onIntel(R) 82801G (ICH7 Family) USB Universal Host Controllerentries.Then look at the properties of the device -> then details -> then select property hardware ids and you should get the VID and PID of the device.