Is there software or code to alter USB power output

后端 未结 2 1590
梦毁少年i
梦毁少年i 2020-12-21 21:28

I had a look at this and this but no one sounded particularly sure of their ideas and I\'m kind of after a different thing anyway. I want to hook my usb power cables (red an

2条回答
  •  被撕碎了的回忆
    2020-12-21 22:14

    A bit more info on the answer from Pascal:

    1. The normal operation (Non-Configured mode) is 100mA

    2. In theory, the operating system should check the MaxPower value of the device's configuration descriptor to decide if to allow it to draw more than 100mA. In practice, PCs do not do it (and have no way to control it). So you can try taking 500mA. (Of course connecting a bus powered hub and linking more then one 500mA device, should, not work.)

    3. If the device is not actively used, the OS may (and should) suspend it. When suspended the power is limited to 1-0.5mA (Again, in theory, since it can not be controlled by software).

提交回复
热议问题