I work with a lot of various microcontrollers and frequently run into the problem outlined above. In response, I’ve submitted this RTS Dynamic Folder to the RTS toolbox repo which will create a set of connections for all available serial ports with various (configurable) speed and framing options. On my system the result looks like this:
Here’s the documentation for this simple PowerShell script:
Attached Serial Devices Dynamic Folder
This script utilizes PowerShell to generate a list of available serial devices, along with RTS Custom Properties defining speeds and framing settings, to generate a set of Terminal connections for each combination of port/speed/framing.
The resulting folder structure will look something like the following:
Attached Serial Devices
|-- USB Serial Device (COM12)
| |-- COM12 9600 8N1
| |-- COM12 9600 7E1
| |-- COM12 19200 8N1
| `-- COM12 19200 7E1
`-- USB-SERIAL CH340 (COM34)
|-- COM34 9600 8N1
|-- COM34 9600 7E1
|-- COM34 19200 8N1
`-- COM34 19200 7E1
https://github.com/royalapplications/toolbox/blob/master/Dynamic%20Folder/Microsoft/Windows/AttachedSerialDevices%20(Windows%20PowerShell).md#requirements**Requirements**
This solution only works under Windows due to its use of WMI to identify available COM ports.
https://github.com/royalapplications/toolbox/blob/master/Dynamic%20Folder/Microsoft/Windows/AttachedSerialDevices%20(Windows%20PowerShell).md#custom-properties**Custom Properties**
https://github.com/royalapplications/toolbox/blob/master/Dynamic%20Folder/Microsoft/Windows/AttachedSerialDevices%20(Windows%20PowerShell).md#port-speeds
Port Speeds
This field must contain comma-separated list of serial port speeds in numeric format.
Example 1: 9600
Example 2: 9600,19200,115200https://github.com/royalapplications/toolbox/blob/master/Dynamic%20Folder/Microsoft/Windows/AttachedSerialDevices%20%28Windows%20PowerShell%29.md#frame-settings
Frame Settings
This field must contain comma-separated list of serial port framing standards (8N1, 7E1, etc) in alphanumeric format, and each entry must be in double quotes.
Example 1: “8N1”
Example 2: “8N1”,“7E1”