简体   繁体   English

我有2个相同的HID USB设备,每个设备都有其自己的控制程序,每个程序如何知道那里有哪个HID设备?

[英]I have 2 identical HID USB devices, each one has it's own control program, how can each program know which HID device is theres?

Is there a way to assign one HID device to a program and then another identical HID device to another program without each of them grabbing randomly the first HID device they enumerate? 有没有一种方法可以将一个HID设备分配给一个程序,然后再将另一个相同的HID设备分配给另一个程序,而不必让每个HID设备随机获取它们枚举的第一个HID设备? I'd need some kind of unique identifier. 我需要某种唯一的标识符。 Is there such thing? 有这样的事吗? On windows xp/vista/7. 在Windows XP / Vista / 7上。

The port is your default enumeration value. 端口是您的默认枚举值。 Configure your code to allow explicit specification of the port. 配置您的代码以允许显式指定端口。

Depending on a uuid of a device is probably not going to give you the results you expect in the long run. 从长远来看,取决于设备的uuid可能不会为您提供预期的结果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM