Skip to the content
2 layers58.2 × 38.1 mmUsb sniffer, the printed circuit board in 3D

Low-cost LS/FS/HS USB sniffer with Wireshark interface

Size
58.2 × 38.1 mm
Copper layers
2
Thickness
1.6 mm
Parts
87
Nets
124
Pads
414
Tracks, vias
601, 220
Pours
2
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
5 Jun 2023
Updated
17 Oct 2026

Overview

Usb sniffer is an open-source printed circuit board by ataradov, from the ataradov/usb-sniffer repository on GitHub, published under the BSD-3-Clause licence. It is a 2-layer board of 58.2 × 38.1 mm with 87 parts on 124 nets, routed with 601 tracks and 220 vias.

It is built around the CY7C68013A-56PVXC, LCMXO2-2000HC-5TG100C and USB3343-CP, with the MAX9032AKA+T, 24LC128-I/P and DSC6101CI2A-024.0000 among its other parts. Its parts include 31 capacitors, 19 resistors, 10 ICs, 7 diodes and 5 connectors. It belongs with the FPGA and CPLD boards of this library.

Main components

8

README

README.md

Low-cost USB Sniffer (LS/FS/HS) with Wireshark interface

This sniffer can be used standalone from a command line or as a plugin for Wireshark with direct control from the UI.

Either way, the capture is saved in a standard PcapNG format.

Wireshark UI

Here are some example capture files:

Note: You will need a recent version of Wireshark (v4.x.x). Older versions may not be able to decode USB payload, but should still show the raw data.

Hardware

The sniffer is based around Cypress CY7C68013A MCU, Lattice LCMXO2 FPGA, and Microchip USB3343 USB PHY.

Prices and availability of ICs vary, but the total BOM should be less than $50.

LCMXO2-2000HC speed grades 5 and 6 were tested and the provided JED file was built for the speed grade 5, so it should work for both. Speed grade 4 is too slow and does not meet timing requirements.

Caution: Do not buy CY7C68013A from eBay or AliExpress, they all are either fake or sketchy in some way. This IC can be quite expensive from regular suppliers, but LCSC is a legitimate supplier and they often have it at much cheaper prices.

PCBs can be ordered from OSH Park or any other PCB manufacturer, gerber files are provided.

There are also STL files for the case.

Bare PCB 3D Printed Case

Hardware bring up

This hardware does not require external programmers, both MCU and FPGA are programmed using a USB interface.

When a board with a blank EEPROM is connected, it would enumerate as an unconfigured FX2LP device.

Note: on Windows blank FX2LP will enumerate as an unknown USB device. Use supplied dummy INF file as a driver. It will associate blank FX2LP device with a generic WinUSB driver, so it would be recognized by the tools. Once the firmware runs, it would supply necessary descripptors automatically.

Note: on Linux copy 90-usb-sniffer.rules to /etc/udev/rules.d to set the permissions to access the device under a regular user.

The first step is to load the firmware into the MCU SRAM:

text
./usb_sniffer --mcu-sram usb_sniffer.bin

The device would reset and enumerate as a USB Sniffer with a dummy serial number. After that, program the EEPROM:

text
./usb_sniffer --mcu-eeprom usb_sniffer.bin

After resetting or power cycling, the device would enumerate as a USB Sniffer with a real serial number. The serial number is derived from the FPGA unique identifier, so if this step succeeds, it means that FPGA is also functional.

After that program the FPGA flash:

text
./usb_sniffer --fpga-flash usb_sniffer_impl.jed

MCU EEPROM can be reprogrammed at any time as long as it is running valid firmware.

In case the firmware gets corrupted, it is possible to run the MCU in the unconfigured mode by shorting BOOT and VCC test points (located near the EEPROM IC on the board) and resetting the device. You would need to repeat both steps for programming the MCU firmware to recover it to the working state.

The functionality and performance of the MCU and FPGA connection can be tested using the following command:

text
./usb_sniffer --test

You should be getting 40-50 MB/s. If the speed is significantly slower, connect the sniffer directly into the root USB port without intermediate hubs.

It is a good idea to run this test after significant changes to the hardware setup.

Installation

Pre-built binaries are provided for Linux and Windows.

To use with Wireshark, copy the file into the extcap plugin directory. Typical locations are ~/.local/lib/wireshark/extcap on Linux, and C:/Users/<user>/AppData/Roaming/Wireshark/extcap/ on Windows. The exact location is provided in the Help -> About Wireshark -> Folders -> Personal Extcap path.

For Linux, make sure that the binary file has an executable attribute set.

Usage

After installation, refresh the list of interfaces in Wireshark and you should see "USB Sniffer" as one of the interfaces:

Wireshark UI

The settings icon next to the interface name (highlighted in red) will bring up the settings dialog:

Wireshark UI

Here you can configure the capture speed, empty frame folding, trigger type and limit the number of the captured packets (0 for unlimited).

After interface is configured, start and stop the capture as with any other interface.

Parts

87
QtyValueFootprintReferences
24100nFataradov_smd:0603C1, C2, C11, C12, C13, C16, C17, C18, C19, C20, C22, C23, C24, C25, C26, C27 +8
8 ataradov_misc:TestPoint-1.27mm-SmallTP1, TP2, TP3, TP4, TP5, TP6, TP7, TP8
710Kataradov_smd:0603R3, R7, R12, R13, R18, R19, R21
42.2uFataradov_smd:0603C14, C15, C30, C31
45.1Kataradov_smd:0603R1, R2, R4, R5
4Orangeataradov_smd:0603LED2, LED3, LED4, LED5
3MAX9032AKA+Tataradov_ic:SOT-23-8IC3, IC5, IC7
2100ataradov_smd:0603R17, R20
21uFataradov_smd:0603C9, C10
22.2Kataradov_smd:0603x4RN1, RN2
24.7Kataradov_smd:0603R15, R16
2USB-Cataradov_conn:USB-CJ1, J2
110uFataradov_smd:0603C21
120Kataradov_smd:0603R10
124LC128ataradov_ic:SO-8IC8
133Kataradov_smd:0603R14
1510ataradov_smd:0603R6
18.06Kataradov_smd:0603R11
1BAT54Sataradov_ic:SOT-23D1
1BOOTataradov_misc:TestPoint-1.27mmTP10
1CY7C68013A-56PVXCataradov_ic:SSOP-56-0.635mmIC9
1DSC6101CI2A-024.0000ataradov_ic:CDFN-4-3.2x2.5mmIC10
1DSC6101CI2A-026.0000ataradov_ic:CDFN-4-3.2x2.5mmIC6
1GNDataradov_misc:TestPoint-1.27mmTP12
1GNDataradov_conn:Pin-2.54mmJ5
1Greenataradov_smd:0603LED1
1INataradov_conn:Pin-2.54mmJ4
1LCMXO2-2000HC-5TG100ataradov_ic:TQFP-100-0.5mmIC1
1Logoataradov_misc:Logo-SmallLogo1
1MIC5504-3.3vataradov_ic:SOT-23-5IC2
1RESETataradov_misc:TestPoint-1.27mmTP11
1USB-Aataradov_conn:USB-A-SlotsJ3
1USB3343ataradov_ic:QFN-24-0.5mmIC4
1VCCataradov_misc:TestPoint-1.27mmTP9
1Yellowataradov_smd:0603LED7

Similar boards

  • 4 layers100 × 100 mmSDR board, the printed circuit board in 3D

    SDR board

    BillyWoods/Narrowband-SDR

    A four-channel narrowband SDR receiver based around the Mirics MSi001, MAX11131 and FX2LP.

    467 parts16
  • 4 layers44.9 × 47.2 mmThermalCam, the printed circuit board in 3D

    ThermalCam

    randomplum/autoliv_nv3_uvc

    Adapter for the Autoliv NV3 sensor providing USB video device class output

    131 parts9
  • 4 layers66 × 61 mmBaseband, the printed circuit board in 3D

    Baseband

    wnmusic/simpleFE

    A very low cost mixed front end (ADC, DAC, SDR)

    145 parts5GPL-2.0
  • 4 layers100 × 64 mmS6la8, the printed circuit board in 3D

    S6la8

    OutBlade/s6la8

    Open-source 8-channel logic analyzer: FX2LP + Spartan-6, with a sigrok driver. Design in progress, not yet built or tested.

    155 parts1
  • 4 layers50 × 100 mmRoboRG EDA, the printed circuit board in 3D

    RoboRG EDA

    RGVID-EU/RoboRG-EDA

    Camera motion control automation for RG: Schematics & PCB

    84 partsAGPL-3.0
  • 2 layers85.1 × 62.2 mmMic extension board, the printed circuit board in 3D

    Mic extension board

    StoneRose35/cortexguitarfx

    guitar effects processor implemented on various arm cortex platforms

    75 parts146
  • 2 layers65 × 56.5 mmPitail, the printed circuit board in 3D

    Pitail

    mcb30/dw1000

    DecaWave DW1000 Linux kernel driver

    372 parts19
  • 4 layers42.7 × 68.1 mmFpgb, the printed circuit board in 3D

    Fpgb

    dotcypress/fpgb

    Forth Programmable Breadboard

    35 parts11Apache-2.0

Questions

How big is the Usb sniffer PCB?

It measures 58.2 × 38.1 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Usb sniffer use?

87 parts, built around the CY7C68013A-56PVXC, LCMXO2-2000HC-5TG100C, USB3343-CP and MAX9032AKA+T. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Usb sniffer KiCad files?

From the ataradov/usb-sniffer repository on GitHub, at the commit this page was made from: the board is hardware/usb-sniffer.kicad_pcb and its schematic hardware/host-usb.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Usb sniffer design in my own project?

Its repository publishes it under the BSD-3-Clause licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).