RC RANDOM CHAOS

USB Cheat Sheet: Untangling the Generation, Lane, and Cable Mess

· via Hacker News

Original source

USB Cheat Sheet (2022)

Hacker News →

A developer’s frustration debugging a phantom bug — caused by misreading USB terminology — produced a compact reference for the standard’s notoriously confusing naming. The core formula is USB Gen A x B, where A is the generation and B is the number of lanes in use, with multi-lane setups relying on lane striping on transmit and lane bonding on receive. Marketing speeds, encoded throughput (8b/10b incurs roughly 20% overhead), and actual sequential read rates are three different numbers that rarely line up.

Cabling is where the spec gets physical. Four-wire cables carry power, ground, and a single half-duplex D+/D- pair. Eight-wire cables add a dedicated RX and TX pair for two lanes. Twelve-wire cables, found only in USB-C, support four lanes (two up, two down) — the only connector with enough pins for dual-lane operation. USB-C also adds CC1/CC2 pins for port-role detection, power delivery negotiation, and alt-mode switching, plus SBU1/SBU2 for DisplayPort AUX and hot-plug detection.

The spec timeline runs from USB 1.0 in 1996 through USB 4.0 in 2019, with each revision layering on speeds, lanes, and capabilities without retiring the older terminology — which is exactly why a one-page cheat sheet exists in the first place.

Read the full article

Continue reading at Hacker News →

This is an AI-generated summary. Read the original for the full story.