01 Overview
UART Echo is the starting point for serial debugging: read a byte, write it back. It doesn't implement any business protocol, only proves pins, baud, and wiring.
Use it when bringing up a second UART, connecting to meters, PLCs, or wireless modules. Don't rush to write protocol stacks before confirming the physical link.
Skip it when the protocol is already stable; add Modbus or custom frame parsing on top of echo, not permanent echo.
Hardware-wise, TTL to TTL is a direct cross connection; RS485 requires a transceiver and termination resistor. Common ground is mandatory.
Software-wise, ESP-IDF's UART driver provides event loops and buffer management for async RX/TX.
This is a public ESP-IDF example for verifying basic serial functionality, not product-specific logic.