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
  • Report Descriptors
  • Reports
Print Report descriptors using usbhid-dump:

 
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:

 
 Syntax: sudo usbhid-dump -d <vid>:<pid> -e all

Move the mouse or click buttons you will see lot of reports being received.

Comments

  1. This is a really informative knowledge, Thanks for posting this informative Information. FAAC

    ReplyDelete

Post a Comment

Popular posts from this blog

bb.utils.contains yocto

make config vs oldconfig vs defconfig vs menuconfig vs savedefconfig

PR, PN and PV Variable in Yocto