How to list out all connected COM Ports on Windows 10 through Python Script

This blog is to show how to list all the COM ports on the terminal by using the pythons script.

If you connect multiple devices on your PC, you would like to list out all the COM port information. Basically, you can find at the device manager in the windows 10.

You can also use the Python Script to list out all the COM Ports information at the terminal.

http://www.programcreek.com/python/example/97508/serial.tools.list_ports.comports

I used the example 2 from miniterm.py.

How to capture the UART terminal log from the console

Command line usage

https://pyserial.readthedocs.io/en/latest/tools.html

serial.tools.list_ports

python -m serial.tools.list_ports:

serial.tools.miniterm

python -m serial.tools.miniterm -h:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.