Windows reset usb device

How to Reset the USB Ports on Windows 10? | Detailed Tutorials [Partition Manager]

By Vicky | Follow | Last Updated December 02, 2020

Summary :

Do you have the problem “how do I reset my USB ports”? If yes, you come to the right place. You can find two ways to reset your USB ports from the post. After resetting, the problems related to USB ports should be resolved.

Quick Navigation :

USB ports allow USB devices (like printers, scanners, mice, storage devices, etc.) to be connected. However, sometimes USB ports are not working or other related issues happen, and one of the solutions to these issues is to reset the USB ports. The question “how do I reset my USB ports” might be asked. Scroll down and you will know how to do that.

Way 1: Reset Your USB Ports via Device Manager

You can reset your USB ports on Windows 10 through Device Manager. The tutorial is below.

Step 1: Open Device Manager. There are many ways to access Device Manager and the most simple way is below.

  1. Right-click the Windows icon on the taskbar.
  2. Select Device Manager from the list.

Step 2: On Device Manager, find Universal Serial Bus controllers and expand it.

Step 3: You will see a list of the USB controller. Right-click one of the USB controllers and then click Uninstall device. Repeat this for all the USB controllers on the list.

Step 4: Restart your computer. Windows will automatically scan the system and reinstall the uninstalled USB controllers, which resets your USB ports.

Way 2: Reset Your USB Ports via Registry Editor

Alternatively, you can follow the tutorial below to reset your USB ports on Windows 10.

Step 1: Open Registry Editor.

  1. Press Windows + R to call out the Run Command.
  2. Input regedit and then hit Enter.

Step 2: Go to the path: HKEY_LOCAL_MACHINE à SYSTEM à CurrentControlSet à Services à USBSTOR.

Step 3: Double-click Start in the right pane. Then, set the value data as 3. Finally, click OK to confirm and save the change.

What You Might Be Interested in

Do USB ports go bad? Certainly, USB ports can go bad. The following situations can lead to USB port corruption or malfunction.

1. The environment is too humid.

USB ports are exposure to the air. Therefore, they are prone to rust when the environment is too humid, resulting in poor contact and slow down data transmission.

Why is your external hard drive transferring so slow? This post unveils the reasons for the issue and shows you how to improve the transfer speed.

2. Use inferior USB extension cables.

The interface on the inferior USB extension cables usually unmatched with the USB ports, being either too loose or too tight.

Too loose will easily lead to poor contact and even fall off during use. Too tight is not conducive to plugging and unplugging and this easily results in scratches on the USB ports, which will cause rust.

Читайте также:  Как убыстрить работу компьютера windows

3. Improperly connect and disconnect USB devices.

Improper connection or disconnection will not only cause the USB port to loosen but also damage the data in the USB devices like USB flash drive. When you plug a USB device and want to unplug it, the interval should be at least 5 seconds.

The End

Have you reset your USB ports by following one of the above ways? If you encounter some issues during the reset process, please leave the issues in the following comments and I will try to help you figure them out.

ABOUT THE AUTHOR

Position: Columnist

Vicky is a website editor who has been writing tech articles since she was graduated from university. Most of her articles talk about Windows PC and hard disk issues. Some of her articles also touch on YouTube usage and issues.

During her spare time, she likes to spend time reading, watching videos, and sitting on her Yoga mat to relax.

How do I reset USB devices using the Windows API?

Do you know a way to use the Windows XP API to reset the USB bus? In other words, I’d like the OS to kick out any USB devices that are currently connected, and then auto-detect everything anew.

I’m aware of devcon, and I suppose I could do system calls out to it, but I’m hoping for a direct call into the API.

4 Answers 4

From kernel mode: You can force a specific USB device to be re-connected, as if it was unplugged and replugged again, by sending an IOCTL_INTERNAL_USB_CYCLE_PORT to its PDO. (This can only be done from a kernel mode, e.g. through a helper driver.) This ‘cycle’ operation will cause a USB reset to occur, after which the device would be re-enumerated. For example, if the device comes back with a different USB device descriptor, a different driver may be matched for it.

From user mode: You can do this by ejecting the device through the CfgMgr API. For example, to go over all USB hubs and eject all devices:

  1. Find all devices having device interface GUID_DEVINTERFACE_USB_HUB with SetupDiGetClassDevs(. DIGCF_DEVICEINTERFACE) .
  2. Enumerate over the returned device information set ( SetupDiEnumDeviceInfo ).
  3. For each device, get the DevInst member:
    1. Invoke CM_Get_Child(DevInst) and then CM_Get_Sibling repeatedly to go over all child nodes of the hub (i.e. the USB devices).
    2. For each child node, call CM_Request_Device_Eject .

Well, use can use the Setup API (SetupDiXXX functions) to enumerate the USB devices in the system, and then call WinUsb_ResetPipe on each one, but I’m not sure if that’s what you’re looking for. It’s been a while since I worked with USB devices, but as I recall, there is no standard way to reset a device (i.e. simulate a power off/power on cycle). If it’s possible for a particular device, you’d have to send an appropriate IOCTL (using DeviceIOControl) to the driver. The IOCTL would vary from manufacturer to manufacturer.

It’s possible to cycle the parent port on the USB hub the device is attached to, as well. This will result in, among other things, apparrent unplug/replug actions, as you will see a balloon popup when this occurs.

Much of this is poorly documented, and honestly, I’ve gotten the impression there are only a handful of people at Microsoft who really understand it well. The design decision I’ve made for future devices I design is that I intend to include watchdog functionality on both sides, as well as a device-side full reset function. That way, if the device figures out it is confused, it can just cut its own power for a second and fully reset, if the host can’t communicate with it, it could do the same thing, and if the device thinks everything is fine but the host knows better, the host could order it to reset.

Читайте также:  Very small windows computers

There are at least three APIs worth looking into for this problem: the Setup API, the Config Manager API, and various WMI extensions. However, be cautious about diving into WMI if you intend to use an Embedded XP target, as you will have to include a lot of other things in your OS image you might otherwise not need.

How to reset USB device every boot (Windows)

My mouse (Saitek R.A.T.7) is not working well when i tun on my PC, X axis is not working as intended. I have to plug it out and then in to computer to make it work well. Is there some way to make mouse reset or something like that everytime my ststem starts? (I have already tried all conventional stuff like drivers to make mouse work).

2 Answers 2

Getting devcon

You can use the devcon utility to remove a USB device and perform a hardware scan to redetect the device. If you are on a 64-bit version of Windows, the IA-64 exe will not work since IA-64 is a different architecture than x64. In this case, you can extract the correct exe file from the Windows Driver Kit ISO, as described here or download the exe from here, as provided by one of the people commenting on that blog post.

Note: You really do need to get the correct 64-bit version of the exe if your OS is 64-bit. You can use the i386 version to list devices, but the remove command will fail!

Resetting the device using devcon

When you have the correct exe for your system (32-bit or 64-bit) you need to figure out the device ID for your mouse. These commands need to be run from an elevated command prompt.

Hint: you can start an elevated command prompt by finding the command prompt in the start menu, right clicking the menu item and selecting run as administrator. In Windows 8, from the desktop view, you can press win + x and select command prompt (admin) in the menu that pops up.

Begin by asking devcon to list the status for all USB devices. Example:

In this example I will cycle the Bluetooth module. First disconnect the device using the remove parameter of the devcon command. Specify the device path by prefixing it with @ . Note that the & character, which appears in the device name, is used as a control character to the command prompt just like in UNIX, so you need to put the device name in quote marks to successfully pass it to the devcon command.

Hint: you can copy and paste text from the command prompt window by clicking it’s task icon in the top left corner of the window and use the edit menu. After you’ve selected text, ress enter to perform the copy operation.

Now give devcon the rescan command to find the device again.

At this point, you might want to try running these command while the mouse is in a faulty state. It may be that the mouse requires a physical power cycle to start working properly, and that this method doesn’t actually fix the problem.

Running the commands at startup with elevated privileges

You can now use the Windows task scheduler to run the command on startup. Create a .cmd file containing the following lines. Replace the file path with the full path to the place where you store devcon.exe . Replace the device path with the correct device path for your mouse. Remember the quotes, and the @ . Make sure the file has a .cmd extension and not a .cmd.txt extension.

Читайте также:  Что такое 3g модем линукс

Start the task scheduler (start menu, all programs, accessories, system tools, task scheduler). In the right panel, select «create task». Enter a name for the task. Select «run whether user is logged in or not» and «run with highest privileges.» In the triggers tab, create a trigger for «on startup». In the actions tab, create a new action and find your .cmd file. Click OK and OK, and reboot. Now, the problem should hopefully be solved.

Как исправить Неизвестное USB устройство сбой сброса порта в Windows 10?

При просмотре Диспетчера устройств на вкладке Контроллеры USB можно заметить желтый восклицательный знак с описанием ошибки «Неизвестное USB устройство (сбой сброса порта)». При отображении этого предупреждения, весьма вероятно, что оборудование не будет функционировать надлежащим образом или правильно распознано системой.

Причины ошибки

Windows 10 не может распознать устройство USB и ссылается на сбой при сбросе порта по нескольким причинах:

  1. Неисправные драйверы . При возникновении неполадок с драйверами система не способна распознать оборудование и отображает предупреждение, что оно неизвестно. Поэтому требуется их переустановка.
  2. Устройство отключено системой . Windows выключает определенные устройства для экономии энергии, что в итоге приводит к подобной проблеме. Отключите эту опцию в разделе управления питанием.
  3. Отключена функция отладки . Чтобы решить проблему, включите USB Debug в настройках БИОС.

Переустановка драйвера контроллера

Операционная система может отметить устройство, как неизвестное, из-за устаревших драйверов. Также он может быть поврежден в результате ошибок и сбоев при обновлении ОС. Возможно, потребуется диск к материнской плате, чтобы переустановить все интегрированные на ней модули, или загрузить последнюю версию с сайта производителя.

Откройте Диспетчер устройств с помощью системного поиска или командой devmgmt.msc , запущенной из окна командного интерпретатора (Win + R).

Раскройте вкладку «Контроллеры USB». Кликните правой кнопкой мыши на записи неизвестного USB устройства (сбой сброса порта) и выберите «Удалить».

В верхнем меню откройте вкладку Действие и щелкните на пункт «Обновить конфигурацию оборудования», которое проверит устройства без драйверов и переустановит их автоматически, или перезагрузите компьютер.

Посмотрите, отображаются ли контроллеры с желтым треугольником, отмеченные как неизвестные.

Отключение функции экономии энергии

Устройства могут быть выключены системой, когда не используются для экономии энергии. Когда оно не активно, ОС может выбросить сообщение о сбое при сбросе порта. Для устранения проблемы нужно отключить опцию энергосбережения.

Откройте диспетчер с помощью команды devmgmt.msc , запущенной из окна «Выполнить». Раскройте Контроллеры USB, затем правым щелчком мыши на неизвестном устройстве разверните контекстное меню и выберите Свойства.

В верхнем меню щелкните на вкладку Управление электропитанием и снимите флажок с опции «Разрешить отключение для экономии энергии».

Средство устранения неполадок

По отзывам пользователей, многим удалось быстро решить неполадку с неизвестным портом после запуска средства устранения неполадок.

Чтобы воспользоваться этим инструментом в Windows 10 выполните следующие шаги:

Перейдите в раздел Устранения неполадок с помощью команды ms-settings:troubleshoot , запущенной из окна командного интерпретатора (Win + R).

В правой части экрана найдите раздел «Оборудования и устройства». Кликните на него и запустите процесс.

Если установлены другие версии Windows:

Откройте Панель управления командой control из окна командного интерпретатора (Win +R). Переключите просмотр в правом верхнем углу на крупные значки и перейдите в раздел Устранения неполадок – Оборудование и звук.

В разделе Оборудование и устройства запустите сканирование.

Включение функции отладки

На компьютерах Dell функция отладки в настройках БИОС используется для управления портами USB 3.0, поскольку могут возникнуть проблемы с установкой Windows на ПК, которые не поддерживают эту версию контроллера.

Включите компьютер и при появлении первого экрана (POST-процедур) нажмите на клавишу, которая указана в строке Setup, для входа в настройки БИОС.

Найдите опцию USB Debug, обычно она расположена в разделе дополнительных настроек.

Установите значение Enabled (Включено) для этой опции, сохраните изменения и выйдите с Биоса.

Оцените статью