How does a USB keyboard work?
7 人推荐 · 跨 6 个月 · 2021–2025

中文导读
底层硬件科普博主 Ben Eater 深入拆解 USB 键盘的通信协议。从物理电气接口、比特流与数据包编码,一直讲到数据载荷解析,并与经典 PS/2 接口进行了对比。
为什么 HN 推它
HN 读者强烈推荐的底层协议透视指南,把复杂的 USB 差分信号与轮询机制讲解得通俗透彻又严谨细致。
「只要你抽得出 30 分钟,这绝对是一场不可多得的精彩拆解。」HN 网友原话:Fantastic breakdown if you have 30 minutes
英文原摘要(HackerTube / Claude 整理)
Ben Eater explains how a USB keyboard communicates, covering the electrical interface, bit and packet encoding, packet contents, and a comparison with PS/2.
HN commenters recommend it as a clear, comprehensive explanation of USB signaling and keyboard polling.
HN 上的提及
he made a video about the basic USB protocol
There’s a great video here that goes through all this
that video is a very pleasant and understandable explanation of the USB protocol
USB is more complicated than PS/2
Suggested as intro to keyboard signalling