是否有用于更改USB电源输出的软件或代码 [英] Is there software or code to alter USB power output

查看:62
本文介绍了是否有用于更改USB电源输出的软件或代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我查看了 this ,但没人能特别确定他们的想法,我有点无论如何还是不同的。我想将USB电源线(红色和黑色)连接到手机上,这样就不必使用电池了(电池还是没电了,这只是一个实验)。问题是,当我只需要3.7V时,USB标准可确保提供最低4.35V的电压。有谁能确定您可以或不能通过编程方式调节功率输出?我还有其他一些疑问:睡眠模式提供哪种电源?

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 and black) up to my phone so I don't have to use a battery (the battery is dead anyway and this is just an experiment). The problem is that USB standards ensure that a minimum of 4.35V is supplied, when I only want 3.7V. Does anyone know for sure that you can or cannot regulate power output programmatically? Some other queries I have are: What kind of power does the sleep mode provide? And what would I need to code something in to play with this, C++?

推荐答案

不,您不会找到计算机吗?允许您在软件中设置此电压。会破坏USB规范。

No, you won't find a computer that allows you to set this voltage in software. It would break the USB specification.

默认情况下,您可以获得150mA的电流,如果USB设备与计算机进行协商,则可获得500mA的电流(需要设备中的一点逻辑) )。乘以5V得到所提供的功率。

You can get 150mA by default, and 500mA if your USB device negotiates it with the computer (requiring a little bit of logic in the device). Multiply by 5V to get the provided power.

这篇关于是否有用于更改USB电源输出的软件或代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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