切断USB端口的电源 [英] Killing power to a USB port

查看:100
本文介绍了切断USB端口的电源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法以编程方式关闭电源或杀死Mac上的USB端口?

Is there a way to programatically turning off the power or killing a USB port on the Mac?

推荐答案

我相信USB电源通常直接来自电源.它可能通过母板或其他硬件将其与数据线组合在一起,但我认为电压从未通过任何可编程电路.如果您想停用数据传输,那可能是可能的,因为这是由扩展文件(IOUSBMassStorageClass.kext)处理的,但是如果不进行物理修改端口,我认为您将无法停用电源.

I believe that the USB power typically comes directly from the power supply. It might go through the motherboard or some other hardware to combine it with the data lines, but I don't think the voltage ever goes through any programmable circuitry. If you wanted to deactivate the data transfer, that would probably be possible since that is handled by an extension file (IOUSBMassStorageClass.kext), but short of modifying the port physically, I don't think you will be able to deactivate the power.

这篇关于切断USB端口的电源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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