serial_pair_record
Record two serial ports simultaneously and merge both data streams into one timeline log with [A]/[B] tags and HEX views, helping debug RS485 master-slave or dual-device communication.
Instructions
同时监听两个串口,输出时间线交错的录制日志(RS485 主从对话/两设备联调)。 每行前缀 [A]/[B] 标明来源口,附 HEX 视图防波特率猜错时完全看不懂。最长 120s。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"port_a": "<port_a>",
"port_b": "<port_b>"
},
"name": "serial_pair_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| baud_a | No | ||
| baud_b | No | ||
| port_a | Yes | ||
| port_b | Yes | ||
| seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |