> 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="https://2314265932-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLZ9hPT4FtAP57VrTApYv%2Fuploads%2F869zmAos8tahpjiSTclm%2Ffd60ef62-4f51-4c21-a292-02c64dedae4e.png?alt=media&amp;token=fdcb1495-4444-4c7d-ac6f-a0b424a774ac" alt=""><figcaption></figcaption></figure>
