How to restart USB device(如何重启USB设备)

转载 2016年08月31日 16:49:09

使用devcon.exe (源代码及可执行程序请从:http://download.csdn.net/detail/dotphoenix/9617582 下载)


DevCon (Devcon.exe), the Device Console, is a command-line tool that displays detailed information about devices on computers running Windows. You can use DevCon to enable, disable, install, configure, and remove devices.
DevCon runs on Microsoft Windows 2000 and later versions of Windows.


DevCon Restart
Stops and restarts the specified devices. Valid only on the local computer.
    devcon [/r] restart {* | ID [ID ...] | =class [ID [ID ...]]} 

Parameters

 /r
Conditional reboot. Reboots the system after completing an operation only if a reboot is required to make a change effective.
*
Represents all devices on the computer.
 ID
Specifies all or part of a hardware ID, compatible ID, or device instance ID of a device. When specifying multiple IDs, type a space between each ID. IDs that include an ampersand character (&) must be enclosed in quotation marks.
The following special characters modify the ID parameter.
Character Description
*
Matches any character or no character. Use the wildcard character (*) to create an ID pattern, for example, *disk*.
@
Indicates a device instance ID, for example, @ROOT\FTDISK\0000.
'
(single quote)
Matches the string literally (exactly as it appears). Precede a string with a single quote to indicate that an asterisk is part of the ID name and is not a wildcard character, for example, '*PNP0600, where *PNP0600 (including the asterisk) is the hardware ID.
 
 =class
Specifies the device setup class of the devices. The equal sign (=) identifies the string as a class name.
You can also specify hardware IDs, compatible IDs, device instance IDs, or ID patterns following the class name. Type a space between each ID or pattern. DevCon finds devices in the class that match the specified IDs.
Comments
The system might need to be rebooted to make this change effective. To have DevCon reboot the system, add the conditional reboot parameter (/r) to the command.
Sample Usage
devcon restart *
devcon restart pci*
devcon restart "PCI\VEN_115D&DEV_0003&SUBSYS_0181115D"
devcon restart =printer
devcon restart =printer *desk*


Example
Example 38: Restart a device

相关文章推荐

How to reset usb device in linux

How to Reset USB Device in Linux by ROMAN10 on MAY 4, 2011 · 7 COMMENTS ...

USB设备在连接PC时的reset从何而来?

最近在做烧写工具的优化工作,有一些关于USB的内容需要总结一下其中包括设备的初始化过程和枚举过程。 在枚举的过程中,设备会一直等PC端的状态,当等到reset命令时会对设备进行重新枚举。但是这个res...
  • codectq
  • codectq
  • 2014年07月30日 19:53
  • 2778

How to Reset USB Device in Linux–using libusb

本文转载至:http://www.roman10.net/how-to-reset-usb-device-in-linuxusing-libusb/ This is a follow up of...

usb枚举过程分析之hub_events

当守护程序第一次运行或usb port上状态发生变化,守护进程被唤醒都会运行hub_events函数,这个函数在usb系统中处理核心位置,usb的枚举过程就是由它完成,usb枚举过程流程图如图1所示;...
  • fanqipin
  • fanqipin
  • 2013年01月08日 14:23
  • 12586

InnoSetup 打包文件夹的解决方案

【VC++】InnoSetup 打包文件夹的解决方案 已有 1230 次阅读 2012-7-23 19:48 |个人分类:VC++|系统分类:科研笔记|关键词:文件夹 的 应用程序 ...

使用Inno Setup 打包.NET程序,并自动安装.Net Framework

Inno Setup 是一个windows系统下的安装包制作程序。它是免费的(而且允许免费用于商业用途)。官网网站:http://www.jrsoftware.org/ 虽然说.NET 可以使用...

how to make usb composite device

hds2g Member posted October 18, 2006 10:09 AM             hello.. I want to make t...

How to programatically unplug & replug an USB device in linux?

在linux,更新了usb设备的firmware后,你需要重新插拔一下usb设备来让系统读取到新的usb设备信息。 我们可以通过软件的方式让usb设备reset,实现hot-replug目的,让系统...

usb unknow device 无法识别的USB设备 Enhanced Host Controller 静电

近日发现连接的HP LaserJet 1022打印机时常出现莫名的脱机现象,通过开关打印机电源或插拔连接的USB口总能解决脱机问题。但今天,任凭我怎样开关打印机的电源和插拔连接不同的USB口,系统始终...

DOS下检索XHCI下所有的USB设备,并显示出设备接在哪个端口上,以及该USB device的speed。

XHCI:即可扩展的主机控制器接口,目前主要是面向USB3.0设备的,同时它也支持USB2.0及以下的设备。其中USB2.0使用的是EHCI,USB1.1使用的是OHCI。           为了...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:How to restart USB device(如何重启USB设备)
举报原因:
原因补充:

(最多只允许输入30个字)