Loading...
Loading...
Embedded serial port debugging tool for serial port scanning, real-time monitoring, data sending, log recording, and Hex viewing. Automatically triggered when users mention serial port, COM port, UART, AT command debugging, baud rate, Hex streaming, serial port log capturing, serial port monitoring, viewing MCU output, or binary protocol joint debugging. It also supports explicit invocation via /serial. Even if users only say "check serial port output", "send an AT command", or "capture logs", this skill should be triggered as long as the context involves serial port communication.
npx skill4agent add zhinkgit/embeddedskills serialskill/config.json{}.embeddedskills/config.json.embeddedskills/config.json.embeddedskills/config.json{
"serial": {
"port": "",
"baudrate": 115200,
"bytesize": 8,
"parity": "none",
"stopbits": 1,
"encoding": "utf-8",
"timeout_sec": 1.0,
"log_dir": ".embeddedskills/logs/serial"
}
}| Field | Description | Default Value |
|---|---|---|
| Serial port number, e.g., | |
| Baud rate | |
| Data bits | |
| Parity: none/even/odd/mark/space | |
| Stop bits: 1/1.5/2 | |
| Text encoding | |
| Read/write timeout (seconds) | |
| Log output directory | |
--port--baudrateserial.embeddedskills/config.json.embeddedskills/state.jsonport--port| Subcommand | Purpose | Risk |
|---|---|---|
| Scan available serial ports | Low |
| View text output in real-time | Low |
| Send text or Hex data | Medium |
| View binary stream in real-time | Low |
| Save serial port logs to files | Low |
pyserialpip install pyserialscanmonitor / send / hex / logportscripts/python# Scan serial ports
python scripts/serial_scan.py [--filter <keyword>] [--json]
# Real-time monitoring
python scripts/serial_monitor.py [--port <serial port>] [--baudrate <baud rate>] [--timestamp] [--filter <regex>] [--timeout <seconds>] [--json]
# Send data
python scripts/serial_send.py [--port <serial port>] [--baudrate <baud rate>] <data> [--hex] [--crlf] [--repeat <times>] [--wait-response] [--json]
# Hex viewing
python scripts/serial_hex.py [--port <serial port>] [--baudrate <baud rate>] [--width <columns>] [--timeout <seconds>] [--json]
# Log recording
python scripts/serial_log.py [--port <serial port>] [--baudrate <baud rate>] [--output <file>] [--duration <seconds>] [--format text|csv|json] [--json]{
"status": "ok",
"action": "scan",
"summary": "Found 2 serial ports",
"details": { ... }
}{
"status": "error",
"action": "monitor",
"error": { "code": "port_busy", "message": "Serial port is occupied by another program" }
}port.embeddedskills/config.json--jsonreferences/common_devices.json