Arduino-USB-Rename icon indicating copy to clipboard operation
Arduino-USB-Rename copied to clipboard

vid pid

Open amritgenius opened this issue 1 year ago • 3 comments

connecting two or more avr boards with different naming is not possibile ( they all appear as the same name ) because they have same usb_pid.

amritgenius avatar Aug 24 '24 22:08 amritgenius

Which OS is this on? I vaguely recall windows being pretty good at differentiating devices based on PID/VID/Version, but I can't remember if they took strings into account. At any rate, they're often "sticky" and sometimes require a device uninstall to get the name to be re-recognised after programming.

mon avatar Aug 26 '24 02:08 mon

am using win11, but i can confirm that also the win10 is doing the same. now am using same vid but diff pid to differentiate midi device naming of two arduino pro micro. can you please add a pid variable to library? i have tried with no luck,

amritgenius avatar Aug 26 '24 10:08 amritgenius

Changing the vid/pid is way too much effort for me, since it works in the tools that I developed this for: image

The main reason is that to change the PID using pluggableUSB you'd need to override the entire device descriptor request, which is a bit of effort. It's also noncompliant with the USB spec (since PIDs are assigned by the USB IF). The best way I found is to change the device version, but that is also part of the device descriptor.

If you'd like some pointers - I'd check out how the Arduino USB stack currently handles USB_DEVICE_DESCRIPTOR_TYPE / USB_CONFIGURATION_DESCRIPTOR_TYPE, and see if you can modify USBRename::getDescriptor to override that as well.

mon avatar Aug 28 '24 12:08 mon