> For the complete documentation index, see [llms.txt](https://0xpthree.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://0xpthree.gitbook.io/notes/hardware/usb.md).

# USB

## Monitor USB Communication

1. Start Wireshark

```
$ sudo modprobe usbmon
$ sudo wireshark
```

2. Find associated USB port with either `lsusb` or `dmesg`. Example of lsusb output:

```
$ lsusb
...
Bus 001 Device 011: ID 047d:2048 Kensington Orbit Trackball with Scroll Ring
```

3. Set a filter with corresponding bus and device ID, i.e. `usb.src == "1.11.1"`. When you move the trackball you should now see a lot of USB communication.

<figure><img src="/files/4j7nk4BWveOaPODJwoS8" alt=""><figcaption></figcaption></figure>
