sparkup:
I'm building an application for testing a line of devices.
Do the devices have USB serial number string?
If the devices would have no serial number (ie. iSerialNumber field of the device descriptor is 0), every device should appear on the same COM port number quickly, as long as they are plugged into the same USB port.
For production/testing of devices with serial number, IgnoreHWSerNum trick is available.
Using a registry editor (regedit, etc),
Add IgnoreHWSerNum entry under this key,
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\UsbFlags\
The entry name should have VID/PID of the device. For example of devices (VID/PID = 0xABCD / 0x1234)
IgnoreHWSerNumABCD1234
Set its value to 0x01 (REG_BINARY, length must be exactly one byte)
Now that Windows treat the target devices as if they have no serial number.
Tsuneo