Friday, April 3, 2015

Get idVendor and idProduct of your Arduino/USB devices

To know the idVendor and idProduct of your Arduino/USB devices, in Linux system, we can use the dmesg command, to read messages from kernel ring buffer.


- with your Arduino/USB devices NOT connected, run the command to clear the buffer.
$ sudo dmesg -c

- Connect Arduino/USB devices, enter the command:
$ dmesg

- The latest connect device will be shown, include its idVendor and idProduct:

No comments:

Post a Comment