问题
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