- Home
- Skills
- Testing & Debugging
- SPM Serial Capture
SPM Serial Capture
Capture and analyze live COM port traffic on Windows without disconnecting existing applications or MCP servers.
Free
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)
| Timestamp | Direction | Function Code | Data Payload | Checksum (CRC) | Status |
|---|---|---|---|---|---|
| 10:15:02.12 | Sent | 03 (Read) | 00 01 00 02 | 95 CB | Valid |
| 10:15:02.15 | Rcvd | 03 (Read) | 04 01 2C 00 64 | B9 32 | Valid |
| 10:15:05.44 | Sent | 03 (Read) | 00 01 00 02 | 95 CB | Valid |
| 10:15:05.48 | Rcvd | 03 (Read) | 04 01 2D 00 64 | 78 F2 | Error (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
- Check the physical shielding and termination resistors on your RS-485/Serial cable.
- I can continue monitoring to see if the CRC error frequency correlates with specific hardware events.
- If you want to see the raw bytes for the failing frame, I can switch to Dump view.
modbus_capture.csv
CSV · data export
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
.spmsession 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
- Prerequisite check verifies the Serial Port Monitor installation on Windows and confirms the required edition for the specific port state.
- Session initialization starts a new monitoring session via CLI with specific view and file redirection parameters.
- Targeted log reading samples the redirected file using
-Tailor specific patterns to avoid memory overhead from large captures. - 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
What's inside
Frequently Asked Questions
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.