cancel
Showing results for 
Search instead for 
Did you mean: 

Detecting ST-Link V2-1 virtual COM port with C#?

RAltm
Senior

Hello,

I want to connect to the VCP of a Nucleoboard by a C# application. I don't want to iterate through all available COM ports on the system, so I'm searching a way to detect if one or more Nucleoboards are connected and connect to the corresponding VCPs. Has anyone already tried that and can give me some hints?

Regards

This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Uwe Bonnes
Principal III

Well, you have to iterate through the registry. In bl*ckm*g*c does that to find the gdb port. BMP is on github https://github.com/blacksphere/ The iteration is in src/platforms/pc/serial_win.c

+1

Both COM port and USB assocativity can be fished out of the registry​ trees/nodes

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..