在Windows下重命名USB HID设备 [英] Rename a USB HID device under Windows

查看:493
本文介绍了在Windows下重命名USB HID设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我向使用通用HID类与主机PC通信的USB设备编写了固件。

I wrote a firmware to a USB device that uses the generic HID class for communicating with the host PC.

将设备连接到PC时,它会显示我在固件中放入了硬编码的字符串,但是在驱动程序安装结束(使用通用Windows驱动程序)之后,设备的名称更改为通用 USB输入设备。

When connecting the device to the PC, it shows the hard-coded string I put in the firmware, but after the driver installation is over (using the generic Windows driver), the device's name is changed to a generic "USB Input Device".

如何重新命名设备?

推荐答案

您不能这样做。设备管理器显示由设备驱动程序安装时注册的字符串-在您的情况下,它是通用Windows驱动程序(显然,除了USB协议的支持外,它不了解您专有的固件功能)。您需要在Windows USB驱动程序之上编写一个驱动程序,以提供所需的功能。

You can't do that. The device manager shows the string that is registered at installation by the device driver - in your case it's the generic Windows driver (which obviously has no knowledge of your proprietary FW functionality beyond support of USB protocol). You need to write a driver on top of the Windows USB driver to give you the functionality you want.

这篇关于在Windows下重命名USB HID设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆