Learning USB HID in Linux Part 3 - Printing reports using usbhid-dump
usbhid-dump is a USB HID Dumping utility based on libusb-1.0. It dumps
You can see from the above output, the report descriptor is printed in hexadecimal form.
To dump report descriptor in human readable form, you can use hidrd-convert utility along with usbhid-dump.
hidrd-convert utility doesn't come by default on Ubuntu, You need to manually install it.
Steps to install hidrd-convert:
1. sudo apt-get install autoconf
2. sudo apt-get install libtool
3. git clone https://github.com/DIGImend/hidrd
4. cd hidrd
5. ./bootstrap
6. ./configure
7. make
8. sudo make install
9. sudo ldconfig
Print report descriptors in human readable format using hidrd-convert:
Syntax: sudo usbhid-dump -d <vid>:<pid> -e all
Move the mouse or click buttons you will see lot of reports being received.
- Report Descriptors
- Reports
You can see from the above output, the report descriptor is printed in hexadecimal form.
To dump report descriptor in human readable form, you can use hidrd-convert utility along with usbhid-dump.
hidrd-convert utility doesn't come by default on Ubuntu, You need to manually install it.
Steps to install hidrd-convert:
1. sudo apt-get install autoconf
2. sudo apt-get install libtool
3. git clone https://github.com/DIGImend/hidrd
4. cd hidrd
5. ./bootstrap
6. ./configure
7. make
8. sudo make install
9. sudo ldconfig
Print report descriptors in human readable format using hidrd-convert:
Printing reports using usbhid-dump:
Move the mouse or click buttons you will see lot of reports being received.
This is a really informative knowledge, Thanks for posting this informative Information. FAAC
ReplyDelete