Go to Control Panel > Device Manager > Ports.Ģ. Now you need to follow the below steps to get the vid and PID.ġ. To find the vid (Vendor ID) and PID (Product ID) of a serial USB device first you need to attach the device with your PC. You can See this Article, Read & Write Windows Registry The registry of the windows kept the information of the device, so simple logic here to open the windows registry and get the com id. But it is not a good idea to show all com port, I want that application to identify the com id itself.Įvery USB device has a unique hardware id (the combination of VID and PID), so to accomplish the above task my approach is to get COM PORT of USB Serial Device on the basis of VID/PID. So the solution is that displays the list of all known com ports and users select the correct com port. We cannot fix the COM ID of the USB device in the application because the device could be enumerated with different com id on a different machine as per the availability. Here comport is using for the communication. In my one project, I need to create an application to upgrade the firmware of the device.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |