Using libusb with two or more devices
Kjell Eirik Andersen <kjell.eirik.andersen <at> tandbergstorage.com>
2007-07-09 09:21:32 GMT
Kjell Eirik Andersen wrote:
> Thanks for your reply.
> I now have libusb working perfectly with two equal devices
> simoultanously (they have different serial numbers).
> I have done the following observations :
> 1. First install one device (which has not been installed before), and
> WinXP prompts for driver.
> 2. After succesful driver installation, run this command in a dos box:
> REG ADD HKLM\System\CurrentControlSet\Control\UsbFlags /v
> IgnoreHWSerNum<yourVIDPID> /t REG_BINARY /d 01
> 3. It is now possible to insert other equal devices in the same USB
> port, and WinXP will not prompt for driver.
> 4. If I insert a device in a different USB port, WinXP prompts for
> I had no success in avoiding step 4 above, googling the subject hints
> that it wont be possible. My serialnumber is 5 digits, language code
> 0x0409 (US English).
>>I'm surprised you get reprompted for a driver - you do have unique
>>I was referring to such statements as *http://tinyurl.com/ywb5dc
>>*Is your serial number correctly formatted as UTF-8, i.e. every other
>>character zero? You should see your serial number in the registry ast
>>the position I detailed, or in the properties dialogue box for the
>>deivce in the device manager.
My serial num's are unique and correctly formated, and I see them in the
Looks like if I skip entering the IgnoreHWSerNum key, I don't get
reprompted when moving the same device from port to port. But in this
case I'm repromted when plugging in a new device with different serial
If I do enter the IgnoreHWSerNum key, I get reprompted when moving the
same device from port to port. But in this case I'm not repromted when
plugging in a new device with different serial no.
Seems to me that I can't have it both ways ! (one and only one driver
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.