USB Device address changes

Hi, I have USB devices that all having same VENDOR NAME, PRODUCT NAME, VENDOR ID, and PRODUCT ID. I have tried to use their ADDRESS number in DeviceNicknames to identify them . But it seems the ADDRESS are not persistent (I'm not sure if this is due to reboot or something else...). Is there any way to make sure the nickname is always asigned to right device?

My server is Windows server.

Thanks,

#2

Im guessing your devices also do not have any serial number? The serial number would appear in the device properties in the virtualhere client.

In that case it is impossible to distinguish devices if they have no unique characteristic. Usually the address should stay the same unless you delete the server config.ini file in windows. The address is stored in the config.ini file so this shouldnt change.

#3

Hi Michael, my software has unique 'serial number' retrieved from these USB devices, but they do not appear in the device properties in the virtualhere client. Perhaps they use different fields to store those numbers.

Regarding address stored in the config.ini, do you refer to 'DeviceIdMap'? If I restore same DeviceIdMap with new config.ini file, will the device address stay the same?

Thanks.

#4

The USB standard specifies that the serial number must come from a specific descriptor https://www.beyondlogic.org/usbnutshell/usb5.shtml#DeviceDescriptors see (iSerialNumber) field. So if you are the manufacturer of that particular device then you should change your firmware to supply a unique string for that index. If you are not the manufacturer of that device then you are stuck.

However yes DeviceIdmap is the field that should be copied over if you want to keep the same address. However you cant unplug / replug devices in different ports as it will lose the address. So the devices must stay in the same port