2013-11-17 06:14 AM
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.2013-11-17 08:19 AM
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
2013-11-17 03:44 PM
Good info thanks!