Jetson UART preflight — read-only metadata and synthetic examples Python 3.9+; standard library only; no installation required. Download uart_diagnostics.py and test_uart_diagnostics.py into one directory. Replay the four invented troubleshooting cases on any supported desktop: python3 uart_diagnostics.py --demo PYTHONDONTWRITEBYTECODE=1 python3 test_uart_diagnostics.py Optional on Linux, only after identifying your own serial device: python3 uart_diagnostics.py --inspect /dev/ttyTHS1 The name is an example, NOT a known universal Jetson header mapping. A selected /dev/serial/by-id symlink is accepted if it resolves to a supported /dev/tty name. The inspection performs stat/access/readlink-style metadata operations, reads at most 8192 bytes from each of /proc/cmdline, /proc/device-tree/model and /etc/nv_tegra_release, and prints JSON. It never opens a serial port, writes serial bytes, changes pinmux, toggles DTR/RTS, installs packages or uses sudo. No network access. A report stays on stdout; inspect device identifiers and kernel command-line content before sharing it publicly. Meaning and limits: - USB is confirmed only by a usbN ancestor in the sysfs device path. A name such as ttyACM0 is a hint, not proof when that metadata is missing. - Access is os.access with the invoking process's real IDs at inspection time, not a guarantee of later open success. Do not run under sudo. - An exact console= name match is a conflict to investigate. No match cannot exclude getty, another process, firmware/debug output or a different alias. - Character-device status is necessary but cannot establish driver health. - The script does not identify physical pins, measure voltage, read baud rate, test wires, validate a loopback, or establish that a device is safe to open. - Four cases and eight unit checks are synthetic. They are not Jetson hardware validation. Consult the article for the separate optional bench procedures. Article: https://thomasthelliez.com/blog/uart-protocol-on-jetson-orin-nano/ Packet framing/recovery is separate: https://thomasthelliez.com/blog/uart-packet-recovery-bounded-parser/