Hello!
I'm experimenting with V-USB as replacement electronics for my Medion-SteeringWheel (which is a peace of crap and also not running on vista with original electronics.. Sorry, just had to tell that ).
I've changed the "USB_CFG_VENDOR_NAME" and DEVICE_NAME in usbconfig to my own and adapted length constants, still when i connect the device it says "Template" in the game controllers list. What could I have missed?
Still "Template"?
Re: Still "Template"?
Windows may have cached this info for your VID/PID pair. You can somehow flush that cache, but I'm not a Windows expert.
Re: Still "Template"?
Yea, Windows will read the name only once -- the first time it sees a new device. It then stores it in the registry and will use that name afterwards. To fix it: While the device is connected, go to the device manager --> Human Interface Devices. Find the HID-Compliant game controller entry (check the VID/PID in the Properties/Details tab), right click the entry and Uninstall it. Disconnect and reconnect the device, it should now come up w/ the correct name.
Re: Still "Template"?
Is this new behavior in XP? If Windows caches the vendor and product string, our shared PID won't work. This used to work when I tested it...
Or do we still read the correct name if we use libusb? Or the method used to find HIDs?
Or do we still read the correct name if we use libusb? Or the method used to find HIDs?
Re: Still "Template"?
AFAIK Windows does that only for HID devices it takes control of (keyboards, mice & game controllers), vendor class devices are unaffected by that. Reading the name via libusb should always work since it bypasses most of the windows baggage. Reading the name via the HID api should work too, the buffering happens in the DI layer higher up.
There is a way around that BTW. Windows identifies a device by VID/PID and serial no. string if implemented -- the serial no. string would be a better "extended" device identfier than the name & vendor strings, at least for non-vendor class HID devices.
There is a way around that BTW. Windows identifies a device by VID/PID and serial no. string if implemented -- the serial no. string would be a better "extended" device identfier than the name & vendor strings, at least for non-vendor class HID devices.
Re: Still "Template"?
Thanks for the info! The serial number is a good idea. We might spend some more PIDs for serial-number-based discrimination...