|Output a help message and exit.|
|Output version information and exit.|
|-s, -a, --address=bus[:dev]|
|Limit interfaces by bus number and device address. Both 1-255, decimal. Zeroes match any bus or device.|
|-d, -m, --model=vid[:pid]|
|Limit interfaces by device vendor and product IDs. Both 1-FFFF, hexadecimal. Zeroes match any vendor or product.|
|Limit interfaces by number (0-254), decimal. 255 matches any interface.|
|The entity to dump: either "descriptor", "stream" or "all". The value can be abbreviated down to one letter. The default is "descriptor".|
|Stream interrupt transfer timeout, ms. Zero means infinity. The default is 60000 (60 seconds).|
|Start with the stream dump output paused.|
|Enable stream dumping feedback: print a dot to stderr for every transfer dumped.|
USR1/USR2 Pause/resume stream dump output.
usbhid-dump outputs dumps in chunks. Each chunk is separated by an empty line and starts with the following header line:
Here, BUS, DEVICE and INTERFACE are bus, device and interface numbers respectively. ENTITY is either "DESCRIPTOR" or "STREAM". TIMESTAMP is timestamp in seconds since epoch.
After the header the actual dump data follows as hex bytes. A descriptor chunk includes the whole report descriptor. Every stream chunk includes a whole report, usually, but if a report is bigger than endpoints wMaxPacketSize, it will span several chunks.
Dump report descriptor for a device with address 3 on bus number 2: usbhid-dump -a 2:3
Dump report stream for a device with vendor ID 0x5543 and product ID 0x0005: usbhid-dump -m 5543:0005 -es
Dump report descriptor from interface 1 of a device with vendor ID 0x5543: usbhid-dump -m 5543 -i 1 -ed
Dump report streams from all HID interfaces of all USB devices (caution: you will loose control over the terminal if you use USB keyboard): usbhid-dump -es
Nikolai Kondrashov <email@example.com>
|-->||USBHID-DUMP (8)||February 2012|