decode_usb_packet
Decode raw USB 2.0 packets offline to inspect PID, address/endpoint/frame, payload, CRC5/CRC16 checks, and SETUP requests without hardware.
Instructions
Decode one raw USB 2.0 packet: PID, address/endpoint/frame, payload, CRC5/CRC16 check, and SETUP request decoding for 8-byte DATA0 payloads. No hardware needed.
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": {
"hex_bytes": "<hex_bytes>"
},
"name": "decode_usb_packet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex_bytes | Yes | Raw USB packet as hex (PID first, CRC included), e.g. '2d0010'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||