Get product id and vendor id

Hi guys, is there a way to get the vendor id and product of a USB device using java or C #

+4
source share
2 answers

Have you watched jUSB ? Of course, it is quite old and does not update, but it looks like the usb.core API works for both Linux and Windows.

It should be noted that, as conveniently, the DeviceDesriptor class, located only in the mentioned usb.core package, provides getVendorId () and getDeviceId ().

+1
source

The USB device is identified using the vendor ID and product ID . These identifiers consist of a prefix ( vid_ for the vendor identifier or pid_ for the product identifier) ​​and a 4-digit HEX number. For example, the MAX3420E has a vendor vid_06ba and a product pid_5346 .

for C# see these useful articles:

+1
source

All Articles