Skip to content

About

Ferramenta PowerShell para monitorar portas COM no Windows, auxiliando diagnostico de comunicacao serial em automacao e CLPs.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Monitor COM

What It Does

Lightweight PowerShell utility for monitoring Windows COM ports in real-time. Displays active serial ports, tracks device connections, and helps identify which port corresponds to connected USB-serial converters. Essential for automation, industrial equipment diagnostics, and serial communication testing.


Why It Exists

When working with industrial CLPs, Arduino, serial devices, or embedded systems, you need to quickly identify which COM port your device is connected to. This tool:

  • Displays active COM ports instantly
  • Highlights the most recently connected port
  • Provides quick feedback without complex tools
  • Runs directly from PowerShell—no installation needed
  • Helps with repetitive testing and hardware diagnostics

Features

  • ✓ Real-time COM port detection and monitoring
  • ✓ Refresh every 1 second
  • ✓ Highlight last connected port
  • ✓ Filter out duplicate or unknown ports
  • ✓ Support for common USB-serial converters (CH340, FTDI, Prolific)
  • ✓ Quick desktop launcher (.bat file)
  • ✓ Lightweight—no external dependencies
  • ✓ Works with Windows 10+ and PowerShell 5.1+

Tech Stack

  • Language: PowerShell
  • Platform: Windows 10+
  • Runtime: PowerShell 5.1 or later
  • Dependencies: None (uses native WMI)

Project Status

Status: Stable / Maintenance
Version: 0.1.0
Last Updated: May 2026

This is a simple, focused tool for a specific operational need. Mature enough for production use.


How to Use

Prerequisites

  • Windows 10 or later
  • PowerShell 5.1 or later
  • Permission to execute PowerShell scripts

Run the Tool

Option 1: Via Desktop Shortcut

A shortcut named "Abrir Monitor COM" (Open Monitor COM) is created on your desktop for quick access.

Option 2: Direct PowerShell Execution

# Navigate to the repo directory
cd monitor-com

# Run the script directly
powershell -NoExit -ExecutionPolicy Bypass -File .\monitor_com.ps1

Option 3: Import and use in your scripts

# Source the script
. .\monitor_com.ps1

# Use the monitoring functions
Get-ActiveCOMPorts

Project Structure

monitor-com/
├── monitor_com.ps1           # Main script
├── Abrir Monitor COM.bat     # Desktop launcher shortcut
├── README.md                 # This file
└── .gitignore               # Git ignore rules

Typical Workflow

  1. Connect a USB-serial converter to your Windows PC
  2. Run Monitor COM
  3. Observe which COM port appears
  4. Use that port in your application (HIstudio, Modbus Poll, ModRSsim, Arduino IDE, etc.)

Example output:

Active COM Ports:
COM6    USB Serial Device
COM7    Arduino Uno

Last connected: COM6

Features & Roadmap

Completed

  • Real-time port monitoring
  • Last port detection
  • USB device tracking
  • Desktop shortcut launcher

Planned / Ideas

  • Connection/disconnection logging
  • VID/PID (vendor/product ID) display
  • HTML report generation
  • Simple GUI version
  • Audio alert on new device connection
  • Configuration file for port filtering

Security & Privacy

⚠️ Notes:

  • This tool reads local COM port information only
  • No data is sent externally
  • No credentials or sensitive information is handled
  • Safe to run in any Windows environment
  • Does not modify system settings

Contributing

This is a personal portfolio project. For improvements or suggestions:

  1. Open an issue for feature requests or bug reports
  2. Feel free to fork and experiment
  3. Submit PRs for improvements or documentation

License

License: Pending decision
Currently no explicit license. If you plan to use or modify this code, ask for clarification on licensing terms.


Author

Atson Melo
Focus: PowerShell automation, Windows diagnostics, serial communication
GitHub: @AtsonMelo


Related Projects

About

Ferramenta PowerShell para monitorar portas COM no Windows, auxiliando diagnostico de comunicacao serial em automacao e CLPs.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages