PORTS Forum

Ports and Interfaces => USB => Topic started by: Frank Neumann on November 21, 2019, 10:36:00 pm

Title: How can I read Manufact, Product and Serial of the device
Post by: Frank Neumann on November 21, 2019, 10:36:00 pm
Hi,

how is it possible to read the Manufact, Product and Serial of the device with the code from Jan Axelson
http://janaxelson.com/files/generic_hid_vb_50.zip

Thanks in advanced
Frank
Title: Re: How can I read Manufact, Product and Serial of the device
Post by: Frank Neumann on November 22, 2019, 10:57:38 am
Noboady an idea?
Title: Re: How can I read Manufact, Product and Serial of the device
Post by: bpaddock on November 22, 2019, 03:39:49 pm
I ran the program in that zip file and it did not show the Manufacturer or Product ID of my device.
Program is for doing device testing by sending/receiving a few bytes.

What is your actual goal?
To build a program or simply learn what a device is?

For the later one of these may work:

https://nirsoft.net/utils/usb_devices_view.html
or
https://www.nirsoft.net/utils/device_manager_view.html
Title: Re: How can I read Manufact, Product and Serial of the device
Post by: Frank Neumann on November 22, 2019, 07:52:46 pm
Hi bpaddock,

my question is, how can I implement the function for read the device Information like Manufacture, Product and serial ?

BR
Frank
Title: Re: How can I read Manufact, Product and Serial of the device
Post by: Jan Axelson on November 22, 2019, 08:22:47 pm
Take a look at devcon:

https://github.com/microsoft/Windows-driver-samples/blob/master/setup/devcon/devcon.cpp