.net - Enumerate COM ports with drivers -


i trying test code simple comms serial device (at moment hard loopback). usb serial adapter i'm using installs on com20 default, disconnecting , reconnecting few times has caused bind com21.

i try , make life little easier , search port bound usb-serial driver. on teraterm, choose dropdown shows com ports , drivers. add functionality code.

the serialport class has getportnames method gives port names, i.e. com1, com2, ..., com21 etc.

please have @ answer here: how open serial port friendly name?

it not ask for, should satisfy demands is, , can modified want.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -