Include Modem Serial Ports in Serialport.list()
Background
Currently, the Serialport.list() method does not return information about serial ports associated with modems, which are typically virtual serial ports used by communication modules.
Feature Suggestion
I propose that the Serialport.list() method be modified to include virtual serial ports corresponding to modems. This enhancement will allow users to easily access and utilize these ports within their applications.
Expected Effect
By including modem-related serial ports in the output of Serialport.list(), users will be able to:
- Easily identify and interact with virtual serial ports associated with communication modules.
- Enhance the functionality of applications that rely on these ports for data transmission and device communication.
Additional Information
- Priority: Medium. This feature would benefit developers working with communication modules but may not be critical for all users.
Serial port discovery seems gated by the logic that checks that the PortName contains the string "COM"^1
It looks like it intended to list virtual COM points per commit logs, and that's why this check is fuzzy in the first place^2.
Add new serial ports list method for Win32 New serial ports list method for Win32 allows enumerate some virtual COM ports not listed in Device Manager
Can you try to print more info about the device to figure out why it's excluded? E.g. with this PowerShell command:
Get-WmiObject Win32_PnPEntity | Where-Object { $_.Name -like "*simcom*" }