我可以编写一个打开/关闭 USB 的程序吗 [英] Can I write a program that swiches USB on/off

查看:24
本文介绍了我可以编写一个打开/关闭 USB 的程序吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 USB 调制解调器,它经常掉线.发生这种情况时,我拔下并从 USB 端口重新插入它,它会立即恢复信号;我可以编写一个程序来执行此操作,而不必物理断开调制解调器与端口的连接吗?

I have a USB modem and it often drops the signal. When this happens I pull unplug and re-plug it from the USB port and it gets the signal right back; Can I write a program that does that without having to physically disconnect the modem from the port?

推荐答案

取决于操作系统.例如,对于 FreeBSD,您可以使用usbconfig ugenX.Y power_off",然后使用power_on".

Depends on the operating system. For example, with FreeBSD you can use "usbconfig ugenX.Y power_off" and then "power_on".

这篇关于我可以编写一个打开/关闭 USB 的程序吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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