Is there a way to change USB device descriptor on computer side?

依然范特西╮ 提交于 2019-12-11 16:55:55

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/52150849/is-there-a-way-to-change-usb-device-descriptor-on-computer-side

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!