I plugged in a USB serial port adaptor. It magically appeared, and SComm32.CommName can see the port in all its glory. I unplugged the adaptor and .CommName can still see the adaptor (much better eyesight than I have). Is this as expected? If so, the please change the help documentation text for CommName to say that 'using .CommName can enumerate all comm ports connected' to 'enumerates all ports that have been connected since the last reboot'. Am I missing something? TIA, Bob.
Posted on: Jun 11 2020 at 02:51:20 PM
CommName is getting the name from Windows. It's simply asking windows for the windows friendly name of com 'n' So if windows returns a name then it would be wrong of scomm32 to ignore it.
I suppose, if you want to be certain then write your own PortName function that also attempts to open/close the port. or something like that.
Reply - add a comment to this topic.
You may enter letters, numbers and standard punctuation only. HTML and other scripts/tags will be rejected.