Do you want to know what happens in the USB devices? What data flows between your PC and your device? Here are some videos that show tips how you can figure out what data flows on your USB ports.
Reverse Engineering USB Devices [28C3]
How to reverse engineer a USB protocol for Linux
Analyze and Debug USB in 90 Seconds
Use Fresscale’s USB-KW24D512: USB Packet Sniffer in Wireshark
For more information check more USB Wireshark videos, Wireshark documentation on USB capture and Free USB Analyzer.
9 Comments
Elena says:
Hello,
First of all let me thank you for sharing you knowlage.
Would it be worth trying USB data Capture such as this – http://www.eltima.com/products/usb-capture/
Tomi Engdahl says:
Capture and view USB traces with Microsoft Message Analyzer
https://docs.microsoft.com/en-us/windows-hardware/drivers/usbcon/capture-and-view-ing-usb-traces-with-microsoft-message-analyzer-
Summary
Microsoft Message Analyzer installation and setup
Capture and view live USB traces
You can use Microsoft Message Analyzer (MMA) to capture and view live USB traces, or view an existing trace.
Instead of capturing traces by using the command line tool, logman, and then parsing them in Netmon 3.4, you can perform all those tasks from a single GUI.
Tomi Engdahl says:
Harry Gill’s process involves capturing USB packages via Wireshark and USBPcap, using Rust to replicate the data, and writing a bit of Linux software.
Developer Uses Rust to Reverse Engineer USB Device for Linux Support
https://www.hackster.io/news/developer-uses-rust-to-reverse-engineer-usb-device-for-linux-support-686260ce1dd8
The process involves capturing USB packages via Wireshark and USBPcap, using Rust to replicate the data and writing a bit of Linux software.
Tomi Engdahl says:
Breaking Down The USB Keyboard Interface With Old-Fashioned Pen And Paper
https://hackaday.com/2021/06/24/breaking-down-the-usb-keyboard-interface-with-old-fashioned-pen-and-paper/
What is better for gaming, old PS/2 style keyboards, or modern USB devices? [Ben Eater] sets out to answer this question, but along the way he ends up breaking down the entire USB keyboard interface.
It turns out that PS/2 and USB are very, very different. A PS/2 keyboard sends your keystroke every time you press a key, as long as it has power. A USB keyboard is more polite, it won’t send your keystrokes to the PC until it asks for them.
How does a USB keyboard work?
https://www.youtube.com/watch?v=wdgULBpRoXk
Tomi Engdahl says:
Usb device numbering
https://www.youtube.com/watch?v=N0O5Uwc3C0o
Tomi Engdahl says:
How does a USB keyboard work?
https://www.youtube.com/watch?v=wdgULBpRoXk
0:00 Intro
0:50 USB electrical interface
4:43 How USB encodes bits and packets
23:41 USB packet contents
29:26 USB vs. PS/2
The USB 2.0 spec: https://eater.net/downloads/usb_20.pdf
Tomi Engdahl says:
How does a USB keyboard work?
https://www.youtube.com/watch?v=wdgULBpRoXk
0:00 Intro
0:50 USB electrical interface
4:43 How USB encodes bits and packets
23:41 USB packet contents
29:26 USB vs. PS/2
The USB 2.0 spec: https://eater.net/downloads/usb_20.pdf
Tomi Engdahl says:
How does a USB keyboard work?
https://www.youtube.com/watch?v=wdgULBpRoXk
Tomi Engdahl says:
https://www.youtube.com/live/XIR0xVFsToo?si=UVTFpQPR2VVWzHMv