usbhid-dump - dump USB HID device report descriptors and streams
usbhid-dump [OPTION]...
usbhid-dump uses libusb to dump report descriptors and streams from HID (human interface device) interfaces of USB devices. By default, it dumps HID interfaces of all connected USB devices, but could be limited to a subset of them, or to a single interface, using options. NOTE: usbhid-dump detaches kernel drivers from the interfaces it dumps and uses them exclusively, so no other program receives the input in the meantime. The report descriptor dumping is instantaneous, but the stream dumping continues until terminated with SIGINT (^C from the terminal) or a timeout expires. If you accidentally start dumping a stream from the USB keyboard you use to control the terminal, the system will stop receiving the input and you won't be able to terminate usbhid-dump. Just stop your input and wait until the timeout expires. The stream dumping will stop, the keyboard will be reattached to the kernel driver and you will regain control. The default stream dumping timeout is 60 seconds and could be changed with the -t option.
-h, --help Output a help message and exit. -v, --version 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. -i, --interface=NUMBER Limit interfaces by number (0-254), decimal. 255 matches any interface. -e, --entity=STRING The entity to dump: either "descriptor", "stream" or "all". The value can be abbreviated down to one letter. The default is "descriptor". -t, --stream-timeout=NUMBER Stream interrupt transfer timeout, ms. Zero means infinity. The default is 60000 (60 seconds). -p, --stream-paused Start with the stream dump output paused. -f, --stream-feedback 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: BUS:DEVICE:INTERFACE:ENTITY TIMESTAMP 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 endpoint's 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 <spbnick@gmail.com> February 2012 usbhid-dump(8)
Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.
Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.
Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.
Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.
The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.
Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.
Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.
Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.