Use Linux HIDRAW to print info about HID devices (USB & Bluetooth/BLE), including, most importantly, HID Report Descriptors.
Prerequisites: libudev
and pkg-config
:
sudo apt-get install build-essential pkg-config libudev-dev
git clone https://github.com/todbot/hidraw-dump
cd hidraw-dump
make
sudo ./hidraw-dump
To parse the HID Report Descriptor, use either hidrd-convert
or https://eleccelerator.com/usbdescreqparser/