SPM Serial Capture

    by Electronic Team

    1

    Capture and analyze live COM port traffic on Windows without disconnecting existing applications or MCP servers.

    Free

    Security scanned

    Works with the AI Agents you already use

    SPM Serial Capture

    Example session with this skill installed

    Monitor COM4 while my Python script talks to the Modbus RTU sensor and tell me if the CRC is correct.

    • Read your context and instructions
    • Compiled the spm serial capture
    • Generated the data export

    I have started monitoring COM4 using the Modbus RTU view. The traffic is being redirected to C:\Temp\spm\modbus_capture.csv for analysis.

    Serial Traffic Analysis (COM4)

    TimestampDirectionFunction CodeData PayloadChecksum (CRC)Status
    10:15:02.12Sent03 (Read)00 01 00 0295 CBValid
    10:15:02.15Rcvd03 (Read)04 01 2C 00 64B9 32Valid
    10:15:05.44Sent03 (Read)00 01 00 0295 CBValid
    10:15:05.48Rcvd03 (Read)04 01 2D 00 6478 F2Error (CRC Mismatch)

    Analysis:
    The capture shows periodic polling of holding registers. At 10:15:05.48, the device returned a payload where the calculated CRC does not match the trailing bytes 78 F2. This typically indicates electrical noise on the RS-485 line or a grounding issue, as the previous frames were correctly formed.

    Next steps

    1. Check the physical shielding and termination resistors on your RS-485/Serial cable.
    2. I can continue monitoring to see if the CRC error frequency correlates with specific hardware events.
    3. If you want to see the raw bytes for the failing frame, I can switch to Dump view.

    modbus_capture.csv

    CSV · data export

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Debugging serial communication on Windows is often a choice between your application and your sniffer. This skill enables hardware and embedded developers to capture, log, and analyze COM port traffic while another application, terminal, or MCP server keeps the port open.

    What it does

    • Non-intrusive monitoring observes serial traffic without taking ownership of the COM port, allowing existing connections to remain active.
    • Protocol decoding provides specialized views for Modbus RTU, Modbus ASCII, and binary protocols alongside standard table and line views.
    • Live log redirection streams captured packets directly to CSV, Unicode text, or HTML files for real-time analysis.
    • Session analysis opens existing .spm session files and exports them to structured formats for historical review.
    • Protocol identification identifies unknown device protocols by analyzing frame structure, checksums, and repeating patterns.

    How it works

    1. Prerequisite check verifies the Serial Port Monitor installation on Windows and confirms the required edition for the specific port state.
    2. Session initialization starts a new monitoring session via CLI with specific view and file redirection parameters.
    3. Targeted log reading samples the redirected file using -Tail or specific patterns to avoid memory overhead from large captures.
    4. Traffic analysis summarizes the exchange, separating sent and received data to pinpoint errors or undocumented behavior.

    Frameworks & tools

    The skill requires Serial Port Monitor by Electronic Team on Windows (Vista through 11 or Server 2008 through 2022). It uses PowerShell for file system operations and process management.

    Why this beats prompting it yourself

    Generic agents cannot handle the specific CLI syntax for SPM's view-based redirection or manage Windows-specific process constraints. This skill ensures you use the correct flags for different protocols, such as Modbus, and prevents the agent from attempting to "wait" on a growing log file which would hang the session.

    Use cases

    • Debug why an AI agent or application is failing to receive a response from a PLC or MCU.
    • Reverse engineer a proprietary serial protocol by observing byte-level dumps from a peripheral.
    • Monitor long-running serial communication for intermittent timeouts without disconnecting the device.
    • Audit a serial stream for leaked credentials or sensitive data before sharing logs.

    Known limitations

    Requires Serial Port Monitor (SPM) installed on Windows. Monitoring ports already in use by other applications requires the Professional or Company edition of SPM.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 8 days ago

    • Free with an Agensi account

    Permissions

    Read Files
    Write Files
    Network Access
    Listed8 days ago

    What's inside

    Frequently Asked Questions

    Unlike standard terminal tools that require exclusive access to a port, this skill allows you to mirror and analyze traffic while your primary application or PLC software is still actively using the connection.

    The skill requires Serial Port Monitor by Electronic Team to be installed on a Windows machine (Vista through Windows 11). For monitoring ports that are already open, the Professional or Company edition of SPM is required.

    This skill includes pre-configured logic for decoding Modbus RTU, Modbus ASCII, and raw binary protocols, providing structured summaries instead of just raw hex dumps.

    The skill uses smart log sampling and tailing techniques to monitor traffic in real-time without causing memory spikes or hanging the AI session, even during high-volume data transfers.

    Yes, you can instruct the skill to stream captured data directly to CSV, HTML, or Unicode text files for historical review or integration into external reporting tools.

    New in Testing & Debugging

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.

    Free