networkinghackingIT support

Kept in this browser · My desk

Stands for: universal asynchronous receiver-transmitter

A universal asynchronous receiver-transmitter (UART): the circuit that sends bytes as a timed stream of bits on one wire, with start, stop and optional parity bits, and no shared clock; on embedded boards it usually carries the serial console.

Both ends must agree beforehand on speed, data bits, parity and stop bits, written as a line such as 115200 8N1; nothing is negotiated, which is why a mismatch prints garbage. Texas Instruments' TL16C550D datasheet describes the classic design: characters of 5 to 8 bits, even, odd or no parity, one to two stop bits, a clock divisor of XIN divided by 16 times the baud rate, and the least significant bit sent first. The U-Boot boot loader's default console speed is 115,200 baud.

Levels. A UART pin swings between ground and the chip's supply, often 3.3 volts, while the old RS-232 port used about plus or minus 10 volts; connecting the two directly can damage a board, so adapters translate levels (the Tigard from 1.8 to 5.5 V, the Bus Pirate 5 from 1.2 to 5 V). Wiring. A header needs ground, transmit and receive; the modem-control lines RTS, CTS, DTR, DSR and DCD are optional. Security. ETSI EN 303 645 lists the UART among debug interfaces and requires, in provision 5.6-4, that a physically accessible debug interface be disabled in software; its example is a UART disabled in the boot loader so that no logon prompt or menu appears. An open console that offers a shell or a boot menu is therefore a weakness, not a feature, on a shipped product.

Also known as: universal asynchronous receiver-transmitter, serial console, console serial, 8n1, uart console

← Back to U Back to the glossary