ESP32 Bit Pirate home
  • DIO
  • Beginner
  • 5 min
  • Edges

Recipe · Beginner · DIO

How to sniff GPIO edges from the CLI

The DIO wiki documents sniff <gpio> to log rising/falling edges and scan to detect transitions across a group of pins.

Passive signal sniffing waveform.
Edge sniffing is the quick “is anything happening here?” test.

Wiring View

Signal source BP DIO SignalGPIO inputGNDGND
Generated from the wiring summary: Signal source to BP DIO.
Step 1

Commands

Use sniff for one pin or scan when you are trying to find active lines.

Result

What success looks like

If transitions appear, the pin is active. Use the logic analyzer adapter next when you need accurate timing or decoded protocols.

Troubleshooting

  • The line is idle and needs a pull-up or pull-down.
  • You are watching the wrong GPIO.
  • The signal is faster than the CLI output is useful for.
  • No shared ground with the target device.

Next steps

  • Use measure <gpio> [ms] for a rough frequency estimate.
  • Use SUMP/PulseView or the Web Logic Analyzer for timing.
  • Use protocol-specific sniffers for UART, SPI, I2C or SubGHz after you know the line role.

GPIO edge sniffing FAQ

When is CLI edge sniffing useful?

Use it when you only need to know whether a line toggles and in which direction. It is faster than setting up a full capture for a first-pass signal check.

What kind of signal is CLI edge sniffing meant for?

CLI edge sniffing is best for human-scale transitions, button lines, interrupts and low-rate activity. Faster protocols are better handled with the logic analyzer workflow.

When should I stop using sniff and capture logic instead?

Switch to a logic analyzer when you need timestamps, pulse widths, bus decoding, multiple channels or repeatable timing evidence.

Go deeper