有没有办法在计算机端更改 USB 设备描述符? [英] Is there a way to change USB device descriptor on computer side?

查看:73
本文介绍了有没有办法在计算机端更改 USB 设备描述符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设计一个外围设备,它在与 Windows 上的程序通信时从 USB 端口获取电源.我打算为它使用一个便宜的 IC (CH340G),但是它被配置为默认在低功耗模式下打开端口,通过将 MaxPower 参数设置为 0x30 (96 mA) 并且不能从 IC 侧进行配置.如果我能在电脑端更改这个参数,我会节省很多钱.

I am designing a peripheral that draws power from USB port while communicating with a program on Windows. I am planning to use a cheap IC for it (CH340G), however it's configured to open the port in low power mode by default, by setting the MaxPower parameter to 0x30 (96 mA) and it cannot be configured from the IC side. I would save a lot of money if I could change this parameter from computer side.

这可以完成,还是我应该寻找另一个芯片?

Can this be done, or should I look for another chip?

推荐答案

不,USB 描述符是由主机从设备读取的,USB 协议中没有标准方法来更改它们.您必须更改设备的硬件和/或固件才能更改描述符.

No, USB descriptors are read from the device by the host and there is no standard way in the USB protocol to change them. You have to change the hardware and/or firmware of the device to change the descriptors.

这篇关于有没有办法在计算机端更改 USB 设备描述符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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