Changing USB device VID PID

Hi @doon1 ,

I have just changed VID,PID defines in usb_private.h to see what happens and it worked, in the same files I’ve also seen descriptions and common information published when I need to collect some usb info (lsusb -v with my OS, but you’ll surely have something like that on Win as well). After that I’ve had some troubles with the Teensy Loader (GUI) and I manually need to reset the Teensy with its button to upload new code.

Now I’ve switched to the cli utility (adding a line in my platformio.ini project file) so when Visual Studio uploads everything I can see output on console without switching to other graphical programs. but I’ve reset VID/PID information to defaults, I’ll do some tests again when I’ll finish real code and real project.

In my final release I’d like to change device descriptions and VID:PID, I’d like to upload new code to device when needed and I don’t want to press reset button to do this. I’ll have more than one teensy device in a closed box without external reset buttons, each Teensy must have different VID:PIDs because they’re doing different things and when I upload my code I’d like to upload to proper device. I still don’t know how to achieve that but hopefully I’ll find a way.

This is something I’ve already had with older AVR devices (ATMega 168,328,…) with V-USB (gcc without Arduino) and avrdude without troubles, I’d like to do the same even if TeensyLoader doesn’t want it.

Still looking information for that, PlatformIO environment is complex but seems to be a really good tool I only need to get “suggested way” and keep it maintainable with more than one device.

I’ll share info when I’ll find something.

1 Like