Send/expect scripts for serial ports and AT commands
Script a serial dialogue: send, expect text, regular expressions or bytes with timeouts, capture values and check them, fail on ERROR; pass/fail results and a JUnit report. Examples for AT modems, ESP-AT, HC-05 and the STM32 bootloader.
Free
No sign-up
Nothing uploaded: files are read in your browser
Works offline after the first visit
How to use it
Connect to the port, then write a script or load an example: AT modem, ESP-AT Wi-Fi, HC-05, the STM32 bootloader or the demo console.
Each line sends text or bytes, or waits for text, a regular expression or bytes, with a timeout; capture values and check them.
Run it: every expect and check gets a pass or fail with its timing; save the result as JUnit XML for CI.
Questions
What happens when a reply does not come?
A missed expect stops the script and shows what was received last. Use expect? for replies that may not come, and fail-on "ERROR" to stop as soon as the device reports an error.
Why does each send forget what came before?
So that an old reply cannot answer a new command: after AT+CSQ, an OK left over from the previous AT would otherwise match at once.
Can it toggle reset lines?
Yes: dtr on/off, rts on/off and break drive the adapter’s modem lines, for boards that wire them to reset and boot pins.
Is my data uploaded?
No. Data goes between the serial port and this tab only; there is no server that could receive it.
Related tools
Serial terminal (Web Serial): UART console in the browser: baud, parity, text/hex, timestamps, log to file, macros, DTR/RTS; a live plotter and send/expect scripts.
Serial plotter: plot numbers from a UART live: Numbers in what a board prints (name=value, Arduino plotter format, CSV or JSON lines) plotted live, one strip per value, with min, max, mean and CSV export. Log text is left out.
UART baud rate calculator: BRR/UBRR divisor, actual baud rate and error for STM32, AVR and generic UARTs.
Flash STM32, ESP32 and RP2040 from the browser: Program HEX/S19/BIN/UF2 into an STM32 (UART bootloader, USB DFU, ST-LINK or CMSIS-DAP), an ESP32 or ESP8266 (ROM loader) or an RP2040/RP2350 (PICOBOOT or UF2); verify and read back.
DLT log viewer: AUTOSAR Diagnostic Log and Trace: filters, search, verbose and non-verbose (FIBEX), export.
Also useful for: at command script, chat script, modem test, serial automation, tera term macro, send expect, esp-at, sim800, quectel, hc-05.