capture_uart_auto_tcp
Capture and decode UART waveforms from an oscilloscope with automatic calibration of voltage range, baud rate, and trigger for accurate signal analysis.
Instructions
Capture UART waveform and auto-decode with full self-calibration.
Features
P1: VDIV/OFST auto-ranging from live MAX/MIN measurement.
P2: Baud-rate auto-detection from run-length statistics (baudrate=0).
P3: Noise-trigger retry: re-ARMs when PKPK < min_pkpk_v.
P4: TDIV auto-calculated to fit max_bytes at the given/detected baud rate.
P5: cpd sanity-check: re-derives codes-per-div when WAVEDESC value is off.
Parameters
channel: Oscilloscope channel (default C1). baudrate: Nominal baud rate. 0 = auto-detect. probe_attn: Probe attenuation factor (1 or 10). max_bytes: Estimated maximum message length in bytes (for TDIV sizing). timeout_s: Seconds to wait for a valid trigger. max_trigger_attempts: Re-ARM attempts before giving up. min_pkpk_v: Minimum PKPK (V) to accept a trigger as genuine.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | No | C1 | |
| baudrate | No | ||
| max_bytes | No | ||
| timeout_s | No | ||
| min_pkpk_v | No | ||
| probe_attn | No | ||
| max_trigger_attempts | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||