Where is source code for Teensy serial driver installer?

Status
Not open for further replies.
Is the source code for the Teensy serial driver installer available, or are there command-line options to change the default USB vendor ID and product ID?

I want to change the VID/PID used by the USB connection of the Teensy, and need to somehow alter the driver installation to use the new VID/PID so that Windows knows to use usbser.sys as the driver.

I need to change the VID/PID because I am using a third party device (B&B USB server over ethernet) that has for some reason associated the Teensy's default VID/PID with a camera device, and is refusing to allow more than one connection at a time due to bandwidth concerns. I need to connect two Teensy's at a time, and I'm pretty sure that I can get it to work if I simply remap the VID/PID to something the server already knows to be a USB serial device.

Thanks.
 
The answer is "no", in so many ways....

No, the source isn't published.

No, there aren't any command line parameters.

No, you can't change the VID/PID, because the INF file doesn't use Hardware-Id matching at all. It uses Compatible-Id, which will match to any VID/PID.


I need to change the VID/PID because I am using a third party device (B&B USB server over ethernet) that has for some reason associated the Teensy's default VID/PID with a camera device,

Well, that's because Teensy's INF file is using Compatible-Id, which matches to anything with the correct protocol spec.

Windows uses a lower priority for Compatible-Id matching. So if you want that device to show up with its intended name, all you have to do is install its own INF with Hardware-Id matching. Hardware-Id will override Compatible-Id. However, the INF *must* be properly signed. Unsigned drivers have the absolute lowest priority and basically will never be used in the presence of any signed driver that matches.


and is refusing to allow more than one connection at a time due to bandwidth concerns.

That's a completely different problem, unrelated to the INF from Teensy!


I need to connect two Teensy's at a time, and I'm pretty sure that I can get it to work if I simply remap the VID/PID to something the server already knows to be a USB serial device.

Your analysis may or may not be correct, but either way, all you have to do is install an INF file with Hardware-Id matching to the VID/PID pair you want. As long as it's properly signed, it will override the Compatible-Id match from Teensy's INF file.
 
However, if you *really* want the raw INF file used for Teensy, here it is.

All the installer does is add this file to Windows using the WIN32 SetupCopyOEMInf function.
 

Attachments

  • cdcacm.zip
    5.5 KB · Views: 136
Last edited:
Status
Not open for further replies.
Back
Top