cancel
Showing results for 
Search instead for 
Did you mean: 

Change Device Description for STM32 Virtual Com Port in Windows

justinwoolich
Associate III
Posted on November 17, 2013 at 15:14

Hi

I am using an STM32 in a project as a Virtual Com Port, everything is working really well, however i would like the Virtual Com Port to appear with a custom Device Description in Windows device manager. Would anyone know how to do this, at the moment it appears as ''STMicroelectronics Virtual COM Port'' (see below)

I have tried editing the strings in usb_desc.c but this only seems to affect the device name that appears when the device is being installed.

0690X00000604oFQAQ.png
2 REPLIES 2
tsuneo
Senior
Posted on November 17, 2013 at 17:19

1) On the registry

The device name comes from this registry entry, HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\Vid_0483&Pid_5740\<Serial_Number>\FriendlyName 2) On the INF file Above registry entry is made just when the device is plugged in to the PC. The string comes from the INF file.

C:\Program Files\STMicroelectronics\Software\Virtual COM Port Driver\stmcdc.inf
;------------------------------------------------------------------------------
; String Definitions
;------------------------------------------------------------------------------
[Strings]
PRVDR = ''STMicroelectronics''
MFGNAME = ''STMicroelectronics.''
DESCRIPTION = ''STMicroelectronics Virtual COM Port'' ;;; <----

a) After device installation, you may change the registry value using SetupDiSetDeviceRegistryProperty( SPDRP_FRIENDLYNAME ) by your PC application (in admin previlage). b) For new device installation, you may change the string on the INF file. Please note, modification of the INF file breaks MS certification (stmcdc.cat) It brings up warning on installation, or it disturbs installation on Windows 8. Tsuneo
justinwoolich
Associate III
Posted on November 18, 2013 at 00:44

Good info thanks!