Reputation: 63
i am implementing a Virtual Com Port using an STM32. I would like to have the device appear in Windows Device Manager with a customer desciption. at the moment it appears under "Ports (COM & LPT)" as "STMicroelectronics Virtual COM Port).
Would anyone know how to do this? I have tried updating the string descriptors in usb_desc.c but this does not seem to change how the device appears in Device Manager.
Upvotes: 2
Views: 5781
Reputation: 108
Actually, the string "STMicroelectronics Virtual COM Port" does not come from the device descriptor loaded onto the STM32. It comes from the STM32 VCP Windows driver's .inf file and may be edited with a text editor.
Upvotes: 1
Reputation: 21
You can simply uninstall the driver and try again because as Etienne said: Windows sometimes does not detect the change in your device descriptors.
Upvotes: 0
Reputation: 4984
Those strings are indeed coded in the file usb_desc.c from the ST USB-Library.
Windows sometimes does not detect the change in your device descriptors, since the device USB descriptors are saved in the system the first time you connect the device.
When you plug the device again Windows checks its Vid/PID (Vendor ID - Product ID) and uses what it already knows about the device.
When Windows doesn't recognize the modification. You should try to assign another VID/PID to the device or delete the device instance from the device manager (right click->uninstall) and then plug the device again.
Upvotes: 0