These instructions are for sniffing USB data using Wireshark on Mac OS, but the process should be similar under Linux and Windows. I was trying to reverse engineer the protocol used to communicate with a 3D printer and was thinking about hooking up an oscilloscope when I discovered that USB traffic can be captured and analyzed by Wireshark (which I had thought was only for network traffic).