View on GitHub

Devendra's Log

Sniff USB bus on Linux

There are two ways.

Using usbmon

Load the usbmon module

modprobe usbmon

The following command then prints data going to and fro on a bus

sudo cat /sys/kernel/debug/usb/usbmon/1u

Using Wireshark

I refer you to their USB wiki.