Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux command/tool for getting continuous HID reports from a USB device

lsusb -v gives the information of the device descriptor of a USB device. Is there any command/tool which can give us the continuous HID input reports from a USB HID device in Linux?

like image 319
Raulp Avatar asked Oct 28 '25 10:10

Raulp


1 Answers

When lsusb shows your device is 60 on a bus 1:

usbhid-dump -s 1:60 -f -e stream

Example output:

001:060:000:STREAM             1479575666.731004
 02 1F

.001:060:000:STREAM             1479575666.859017
 01 1E

.001:060:000:STREAM             1479575666.987019
 02 1F

First line is path, type, timestamp. Second line is raw report, so if you use several report ids, then first byte is report id. If you don't use report ids, then it's your message straight from the beginning

like image 178
ReDetection Avatar answered Oct 30 '25 01:10

ReDetection