ESP32 Bit Pirate home
  • UART
  • Intermediate
  • 3 min
  • Serial CLI

Recipe · Intermediate · UART

How to auto-reply to a UART trigger pattern

Use UART trigger to send a predefined response when a byte pattern is detected.

UART trigger pattern with captured response.
Start with read-only checks, then move to write, replay or automation only when the setup is understood.
Step 1

Commands

Use the shortest command path that matches the documented firmware workflow. When a mode needs setup, follow the prompts shown on first entry.

Result

What it means

The command path is working when the target responds and the firmware prints the expected menu, status or captured data.

Troubleshooting

  • Re-enter the mode setup when pins or peripherals are not already initialized.
  • Check common ground and target voltage before blaming software.
  • Prefer Serial CLI for long captures or high-volume output.
  • Repeat the read or capture to confirm stability.

Next steps

  • Save the output in your project notes.
  • Compare the result with the full wiki page for mode-specific details.
  • Create a shorter alias if you repeat this workflow often.

UART trigger auto-reply FAQ

When is UART trigger better than a normal read?

Use trigger when the target sends a recognizable prompt or byte pattern and you want Bit Pirate to answer automatically. Use read or raw first when you are still learning the protocol.

What is a UART trigger pattern in this recipe?

It is a byte or text sequence watched on the UART stream. When the sequence appears, Bit Pirate sends the configured reply, which is useful for simple protocol handshakes and scripted lab behavior.

Can trigger replace a full UART script?

No. Trigger is useful for simple request-response behavior. For multi-step login, retries or conditional parsing, move the workflow to Python automation over serial.

Go deeper