通用串行总线 (USB)Universal Serial Bus (USB)

通用串行总线 (USB) 提供了一个可扩展且可热插拔的即插即用串行接口,可确保为键盘、鼠标、游戏杆、打印机、扫描仪、存储设备、调制解调器和视频会议摄像机之类的外设提供标准的低成本连接。Universal Serial Bus (USB) provides an expandable, hot-pluggable Plug and Play serial interface that ensures a standard, low-cost connection for peripheral devices such as keyboards, mice, joysticks, printers, scanners, storage devices, modems, and video conferencing cameras. 对于所有使用旧端口(例如 PS/2 端口、串行端口和并行端口)的外围设备,建议迁移到 USB。Migration to USB is recommended for all peripheral devices that use legacy ports such as PS/2, serial, and parallel ports.

USB-IF 是一个特别兴趣组 (SIG),负责维护官方 USB 规范、测试规范和工具。The USB-IF is a Special Interest Groups (SIGs) that maintains the Official USB Specification, test specifications and tools.

Windows 操作系统为 USB 主控制器、集线器以及符合官方 USB 规范的设备和系统提供本机支持。Windows operating systems include native support for USB host controllers, hubs, and devices and systems that comply with the official USB specification. Windows 还提供编程接口,用于开发可与 USB 设备通信的设备驱动程序应用程序Windows also provides programming interfaces that you can use to develop device drivers and applications that communicate with a USB device.

usb 设备生成器面向驱动程序开发人员的 usb面向应用开发人员的 usbusb hck 认证usb for device buildersusb for driver developersusb for app developersusb hck certification

Windows 中的 USB USB in Windows

Windows 10:USB 的新增功能 Windows 10: What's new for USB

概述 Windows 10 中 USB 的新功能和改进。Overview of new features and improvements in USB in Windows 10.

USB 常见问题解答 USB FAQ

驱动程序开发人员提出的在 USB 中受支持的 USB 堆栈和功能的常见问题。Frequently asked questions from driver developers about the USB stack and features that are supported in USB.

针对 USB 设备的 Microsoft OS 描述符 Microsoft OS Descriptors for USB Devices

Windows 定义 MS OS 描述符,在连接到运行 Windows 操作系统的系统时,可以通过这些描述符进行更好的枚举Windows defines MS OS descriptors that allows better enumeration when connected to system running Windows operating system

Microsoft 提供的 USB 驱动程序 Microsoft-provided USB drivers

Windows 中的 USB 设备端驱动程序 USB device-side drivers in Windows

一组驱动程序,用于处理 USB 设备的常见函数逻辑。A set of drivers for handling common function logic for USB devices.

Windows 中的 USB 宿主端驱动程序 USB host-side drivers in Windows

Microsoft 提供驱动程序的核心堆栈,这些驱动程序可以与连接到 EHCI 和 xHCI 控制器的设备互操作。Microsoft provides a core stack of drivers that interoperate with devices that are connected to EHCI and xHCI controllers.

USB-IF 设备类驱动程序 USB-IF device class drivers

Windows 为许多经 USB-IF 批准的设备类、音频、大容量存储等提供随机设备类驱动程序。Windows provides in-box device class drivers for many USB-IF approved device classes, audio, mass storage, and so on.

USB 常规功能驱动程序 – WinUSB USB generic function driver–WinUSB

Windows 提供的 Winusb.sys 可以作为自定义设备的功能驱动程序加载,以及作为复合设备的函数加载。Windows provides Winusb.sys that can be loaded as a function driver for a custom device and a function of a composite device.

适用于复合设备的 USB 常规父驱动程序 – Usbccgp USB generic parent driver for composite devices–Usbccgp

多功能 USB 设备的父驱动程序。Parent driver for USB devices with multiple functions. Usbccgp 为每个这样的功能创建物理设备对象 (PDO)。Usbccgp creates physical device objects (PDOs) for each of those functions. 这些单独的 PDO 由各自的 USB 功能驱动程序管理,这些驱动程序可以是 Winusb.sys 驱动程序,也可以是 USB 设备类驱动程序。Those individual PDOs are managed by their respective USB function drivers, which could be the Winusb.sys driver or a USB device class driver.

适用于开发 USB 驱动程序的 WDF 扩展 WDF extension for developing USB drivers 通过 Windows 测试 USB 设备 Testing USB devices with Windows

在 Windows 中测试 USB 硬件、驱动程序和应用程序 Testing USB hardware, drivers, and apps in Windows

获取相关工具的信息,这些工具可以用来测试 USB 硬件或软件、捕获操作和其他系统事件的跟踪,以及观察 USB 驱动程序堆栈如何响应客户端驱动程序或应用程序发送的请求。Get information about the tools that you can use to test your USB hardware or software, capture traces of operations and other system events, and observe how the USB driver stack responds to a request sent by a client driver or an application.

阅读硬件认证工具包中提供的测试的概述。硬件供应商和设备制造商可以通过这些测试准备其 USB 设备和主控制器,以便提交 Windows 硬件认证。Read an overview of tests in the Hardware Certification Kit that enable hardware vendors and device manufacturers to prepare their USB devices and host controllers for Windows Hardware Certification submission.

USB 的其他资源Other Resources for USB

官方 USB 规范 Official USB Specification

针对 USB 协议提供完整的技术详细信息。Provides complete technical details for the USB protocol.

Microsoft Windows USB 核心团队博客 Microsoft Windows USB Core Team Blog

查看 Microsoft USB 团队撰写的博文。Check out posts written by the Microsoft USB Team. 此博客重点介绍 Windows USB 驱动程序堆栈,该堆栈适用于 Windows 电脑中的各种 USB 主控制器和 USB 集线器。The blog focuses on the Windows USB driver stack that works with various USB Host controllers and USB hubs found in Windows PC. 适用于 USB 客户端驱动程序开发人员和 USB 硬件设计人员的资源,方便他们了解驱动程序堆栈实现、解决常见问题以及如何使用工具来收集跟踪和日志文件。A useful resource for USB client driver developers and USB hardware designers understand the driver stack implementation, resolve common issues, and explain how to use tools for gathering traces and log files.

OSR Online 列表 - ntdev OSR Online Lists - ntdev

OSR Online 管理的讨论列表,适用于内核模式驱动程序开发人员。Discussion list managed by OSR Online for kernel-mode driver developers.

专注硬件开发的 Windows 开发人员中心 Windows Dev-Center for Hardware Development

各种基于常见问题的资源,这些问题由不熟悉 Windows 操作系统的 USB 设备和驱动程序开发的开发人员提出。Miscellaneous resources based on frequently asked questions from developers who are new to developing USB devices and drivers that work with Windows operating systems.

USB 相关视频USB-related videos

用于 USB 设备的 UWP 应用 了解 Windows 8 中的 USB 3.0 构建卓越的 USB 3.0 设备 Windows 8 中的 USB 调试创新(第 1、第 2 和第 3 部分) UWP apps for USB devices Understanding USB 3.0 in Windows 8 Building great USB 3.0 devices USB Debugging Innovations in Windows 8 (Part I, II, & III)

适合学习的 USB 硬件USB hardware for learning

MUTT 设备 MUTT devices

MUTT 和 SuperMUTT 设备以及伴随的软件包已集成到包含 USB 测试的 HCK 套件中。MUTT and SuperMUTT devices and the accompanying software package are integrated into the HCK suite of USB tests. 它们提供的自动化测试可以在 USB 控制器、设备和系统的开发周期中使用,尤其是在进行压力测试时使用。They provide automated testing that can be used during the development cycle of USB controllers, devices and systems, especially stress testing.

OSR USB FX2 学习工具包 OSR USB FX2 Learning Kit

前提是你不熟悉 USB 驱动程序开发。If you are new to USB driver development. 此工具包最适合学习本文档集中包括的 USB 示例。The kit is the most suitable to study USB samples included in this documentation set. 可以从 OSR Online 商店获取学习工具包。You can get the learning kit from OSR Online Store.

编写 USB 客户端驱动程序(KMDF、UMDF) Write a USB client driver (KMDF, UMDF)

USB 驱动程序开发简介。Introduces you to USB driver development. 介绍在为设备提供 USB 驱动程序时如何选择最适合的模型。Provides information about choosing the most appropriate model for providing a USB driver for your device. 此部分还包括一些教程,介绍如何使用 Microsoft Visual Studio 随附的 USB 模板编写第一个用户模式的 USB 驱动程序和内核模式的 USB 驱动程序。This section also includes tutorials about writing your first user-mode and kernel-mode USB drivers by using the USB templates included with Microsoft Visual Studio.

USB 客户端驱动程序开发入门Getting started with USB client driver development

USB device driver programming reference(USB 设备驱动程序编程参考)USB device driver programming reference

编写 USB 主控制器驱动程序 Write a USB host controller driver

如果开发不符合规格的 xHCI 主控制器,或者开发自定义的非 xHCI 硬件(例如虚拟主控制器),则可编写可以与 UCX 通信的主控制器驱动程序。If you are developing an xHCI host controller that is not compliant with the specification or developing a custom non-xHCI hardware (such as a virtual host controller), you can write a host controller driver that communicates with UCX. 例如,可以考虑支持 USB 设备的无线坞。For example, consider a wireless dock that supports USB devices. 电脑通过无线坞与 USB 设备通信,使用基于 TCP 的 USB 作为传输方式。The PC communicates with USB devices through the wireless dock by using USB over TCP as a transport.

为 USB 主控制器开发 Windows 驱动程序Developing Windows drivers for USB host controllers

为 USB 设备编写功能控制器驱动程序 Write a function controller driver for a USB device

可以开发控制器驱动程序,用于处理由主机发送到设备的所有 USB 数据传输内容和命令。You can develop a controller driver that handles all USB data transfers and commands sent by the host to the device. 此驱动程序可以与 Microsoft 提供的 USB 功能控制器扩展 (UFX) 通信。This driver communicates with the Microsoft-provided USB function controller extension (UFX).

为 USB 功能控制器开发 Windows 驱动程序Developing Windows drivers for USB function controllers

USB 函数类扩展 (UFX) 参考USB function class extension (UFX) reference

编写 USB 类型 C 连接器驱动程序 Write a USB Type-C connector driver

Windows 10 引入了对新 USB 连接器:USB 类型 C 的支持。Windows 10 introduces support for the new USB connector: USB Type-C. 可以为连接器编写驱动程序,以便与 Microsoft 提供的类扩展模块UcmCx 通信,以便处理与类型 C 连接器相关的场景,例如,哪些端口支持类型 C、哪些端口支持功率输出。You can write a driver for the connector that communicates with the Microsoft-provided class extension module: UcmCx to handle scenarios related to Type-C connectors such as, which ports support Type-C, which ports support power delivery.

为 USB 类型 C 连接器开发 Windows 驱动程序Developing Windows drivers for USB Type-C connectors

USB 连接器管理器类扩展 (UcmCx) 参考USB connector manager class extension (UcmCx) reference

编写 USB 双角色控制器驱动程序 Write a USB dual-role controller driver

Windows 10 现在支持 USB 双角色控制器。USB Dual Role controllers are now supported in Windows 10. Windows 包括的随机客户端驱动程序适用于 ChipIdea 和 Synopsys 控制器。Windows includes in-box client drivers for ChipIdea and Synopsys controllers. 对于其他控制器,Microsoft 提供一组编程接口,方便双角色类扩展 (UrsCx) 及其客户端驱动程序互相通信,从而处理双角色控制器的角色切换功能。For other controllers, Microsoft provides a set of programming interfaces that allow the dual-role class extension (UrsCx) and its client driver to communicate with each other to handle the role-switching capability of a dual-role controller.

有关此功能的详细信息,请参阅:For more information about this feature, see:

USB 双角色驱动程序堆栈体系结构USB Dual Role Driver Stack Architecture

USB 双角色控制器驱动程序编程参考USB dual-role controller driver programming reference

编写用于模拟设备的 USB 驱动程序 Write a USB driver for emulated devices

Windows 10 引入了对模拟设备的支持。Windows 10 introduces support for emulated devices. 现在可以开发模拟通用串行总线 (USB) 主控制器驱动程序和连接的虚拟 USB 设备。Now you can develop an emulated Universal Serial Bus (USB) host controller driver and a connected virtual USB device. 这两个组件组合成单个 KMDF 驱动程序,该驱动程序可以与 Microsoft 提供的 USB 设备模拟类扩展 (UdeCx) 通信。Both components are combined into a single KMDF driver that communicates with the Microsoft-provided USB device emulation class extension (UdeCx).

开发模拟 USB 设备 (UDE) 的 Windows 驱动程序Developing Windows drivers for emulated USB devices (UDE)

模拟 USB 主控制器驱动程序编程参考Emulated USB host controller driver programming reference

编写 UWP 应用 Write a UWP app

提供如何在 UWP 应用中实现 USB 功能的分步说明。Provides step-by-step instructions about implementing USB features in a UWP app. 若要为 USB 设备编写此类应用,需要使用 Visual Studio 和 Microsoft Windows 软件开发工具包 (SDK)。To write such an app for a USB device you need Visual Studio and Microsoft Windows Software Development Kit (SDK) .

与 USB 设备通信,从开始到完成Talk to USB devices, start to finish

Windows.Devices.UsbWindows.Devices.Usb

编写 Windows 桌面应用 Write a Windows desktop app

介绍应用程序如何通过调用 WinUSB 函数与 USB 设备通信。Describes how an application can call WinUSB Functions to communicate with a USB device.

编写 WinUSB 应用程序Write a WinUSB application

WinUSB 函数WinUSB functions

常见编程方案 Common programming scenarios

列出了驱动程序或应用在与 USB 设备通信时需执行的常见任务。List of common tasks that a driver or an app performs in order to communicate with a USB device. 快速了解每个任务所需的编程接口。Get quick info about the programming interfaces you need for each task.

USB 示例USB samples

USB 的 UWP 应用示例UWP app samples for USB

USB 的 Windows 驱动程序示例Windows driver samples for USB

开发工具Development tools

下载适用于 Windows 的工具包和工具 Download kits and tools for Windows