BK7231GUIFlashTool icon indicating copy to clipboard operation
BK7231GUIFlashTool copied to clipboard

Not all COM ports are enumerated

Open jdockx opened this issue 5 months ago • 0 comments

Not all COM ports appear to be enumerated in the application. Mine =(Silabs CP2102 based) wasn't being enumerated, so I checked which function does the enumeration.

I saw that this was Line 83 in FormMain.cs: string[] newPorts = SerialPort.GetPortNames();

After looking up the SerialPort class through MS it seem to check a registry entry for all COM ports: Computer\HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM The entries look like this:

Image

There wasn't an entry for my device, so I added it manually and restarted the application and it worked.

I don't know the reason why my serial port wasn't populated in this registry, but adding it manually worked.

jdockx avatar Jul 28 '25 07:07 jdockx