window设备VID\PID\REV\MI - HIDClass Hardware IDs for Top-Level Collections

12/15/2021

This section specifies the hardware IDs that the HID class driver generates for top-level collections.

Vendors must use the formats that are designated as vendor hardware ID formats to identify top-level collections. All other device ID formats are reserved for internal use only.

The hardware IDs that the HID class driver generates for a devnode depends on the following:

Number of functions supported by the underlying transport
Number of Top Level Collections in the Report Descriptor
Based on these factors, there are 4 categories of hardware IDs

TypeSingle TLCMultiple TLC
Single-FunctionCase 1Case 2
Multi-FunctionCase 3Case 4

Case 1: Single-function device with single TLC

Condition under which this Hardware ID format is used:

  • Number of functions supported by the underlying transport = 1 &&
  • Number of TLC = 1

Hardware ID Format:

  • HID\Vid_v(4)&Pid_d(4)&Rev_r(4)
  • HID\Vid_v(4)&Pid_d(4)
  • HID_DEVICE_UP:p(4)_U:u(4)
  • HID_DEVICE

Case 2: Single-function device with multiple TLC

Condition under which this Hardware ID format is used:

  • Number of functions supported by the underlying transport = 1 &&
  • Number of TLC > 1

Hardware ID Format:

  • HID\Vid_v(4)&Pid_d(4)&Rev_r(4)&Colb(2)
  • HID\Vid_v(4)&Pid_d(4)&Colb(2)
  • HID_DEVICE_UP:p(4)_U:u(4) [RESERVED FOR WINDOWS INFs ONLY]
  • HID_DEVICE [RESERVED FOR WINDOWS INFs ONLY]

Case 3: Multi-function device with single TLC

Condition under which this Hardware ID format is used:

  • Number of functions supported by the underlying transport > 1 &&
  • Number of TLC = 1

Hardware ID Format:

  • HID\Vid_v(4)&Pid_d(4)&Rev_r(4)&MI_z(2)
  • HID\Vid_v(4)&Pid_d(4)&MI_z(2)
  • HID_DEVICE_UP:p(4)_U:u(4) [RESERVED FOR WINDOWS INFs ONLY]
  • HID_DEVICE [RESERVED FOR WINDOWS INFs ONLY]

Case 4: Multi-function device with multiple TLC

Condition under which this Hardware ID format is used:

  • Number of functions supported by the underlying transport > 1 &&
  • Number of TLC > 1

Hardware ID Format:

  • HID\Vid_v(4)&Pid_d(4)&Rev_r(4)&MI_z(2)&Colb(2)
  • HID\Vid_v(4)&Pid_d(4)&MI_z(2)&Colb(2)
  • HID_DEVICE_UP:p(4)_U:u(4) [RESERVED FOR WINDOWS INFs ONLY]
  • HID_DEVICE [RESERVED FOR WINDOWS INFs ONLY]

Special purpose hardware ID

The following are hardware IDs (for internal use only) that Windows uses to provide default system functionality.

Device TypeUsage PageUsageHardware ID
Pointer0x010x01HID_DEVICE_SYSTEM_MOUSE
Mouse0x010x02HID_DEVICE_SYSTEM_MOUSE
Joystick0x010x04HID_DEVICE_SYSTEM_GAME
Game pad0x010x05HID_DEVICE_SYSTEM_GAME
Keyboard0x010x06HID_DEVICE_SYSTEM_KEYBOARD
Keypad0x010x07HID_DEVICE_SYSTEM_KEYBOARD
System control0x010x80HID_DEVICE_SYSTEM_CONTROL
Consumer audio control0x0C0x01HID_DEVICE_SYSTEM_CONSUMER
Important notes:
  • There are no compatible IDs generated by HIDClass
  • Vendor 3rd party INFs must only match against the hardware IDs
  • Hardware IDs that contain HID_DEVICE_SYSTEM_* are “special” devices that the operating system opens for its use. Vendor provided INF must not match on these special hardware IDs.
  • Vendor provided 3rd party HID transport minidrivers must provided the fields listed below to ensure that HIDClass can generate the appropriate hardware IDs.
    Legend:
FieldContainsHexadecimal ValueMeaning
v(4)four hex digits0x0000-0xFFFFVendor ID
d(4)four hex digits0x0000-0xFFFFProduct ID
r(4)four hex digits0x0000-0xFFFFRevision Number
z(2)two hex digits0x00-0xFFInterface number (only used with composite USB devices.)
b(2)two hex digits0x00-0xFFCollection number (only used with multiple-TLC devices.)
p(4)four hex digits0x0000-0xFFFFUsage Page Number for TLC
u(4)four hex digits0x0000-0xFFFFUsage Number of TLC

参考资料

USB规范大全 https://zhuanlan.zhihu.com/p/414072449

其中:
UVC规范
UVC全称USB video class,主要用于USB视频传输领域内。常见的UVC设备就是USB摄像头。

UVC规范:http://www.usbzh.com/article/forum-12.html
UVC调试笔记:http://www.usbzh.com/article/forum-6.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值