
What Happens When You Plug Something In
What Happens When You Plug Something In USB: The Protocol That Ate Every Port Reading time: ~15 minutes You plugged in a USB drive. A notification popped up. You dragged some files over. You yanked the cable out without clicking "safely remove" and felt a tiny pang of guilt. That guilt is warranted, but not for the reason you think. Between the moment you pushed that connector in and the moment your OS mounted a filesystem, your computer conducted a multi-round negotiation involving device identity, power budgets, endpoint capabilities, and transfer scheduling — all over two twisted wires carrying differential signals at 480 million bits per second. The drive didn't announce itself. Your computer had to ask . That's the first thing most people get wrong about USB. It's not a peer-to-peer protocol. It's a polled, host-controlled bus where nothing speaks unless spoken to. A Brief History of Cable Hell Before USB, connecting a peripheral to a PC was an exercise in suffering. Serial ports
Continue reading on Dev.to Tutorial
Opens in a new tab


