What to do if Windows disconnects your USB connection?

Occasionally Windows drops the USB connection. USB has no mechanism for recovery when this happens, and you need to unplug the cable and then plug it back in again to re-initialise the Windows USB drivers.

However, there are several wasys to prevent disconnection in the first place.

Four ways to prevent USB Disconnection

  1. Use a small powered USB port between the system and the Laptop or PC
  2. Disable "Allow the computer to turn off this device to save power" in USB Root Hub.
  3. Disable Selective Suspend settings in Advanced Power Options.
  4. Use Ethernet connections which, unlike USB, can self-correct after an error

1. Use a Powered USB Port

When you plug your device directly into the computer's USB port, it draws power from the computer battery. You can instead buy a powered usb hub which sits between your computer and your device. This can solve the dropping USB problem.

2. Prevent the Computer from Turning off USB Devices

  1. Open Windows Control Panel.
  2. Go to: Hardware and Sound, Device Manager.
  3. Expand the Universal Serial Bus controllers entry.
  4. Right-click the USB Root Hub and choose Properties.
  5. A dialogue box appears: click its Power Management tab.
  6. Un-check the "Allow the computer to turn off this device to save power" box.

3. Disable Selective Suspend Settings in Advanced Power Options

  1. Open Windows Control Panel.
  2. Go to: Hardware and Sound, Power Options.
  3. Select "Choose a Power Plan" and "Change plan settings".
  4. Select "Change advanced power settings".
  5. Find the entry "USB settings" and under this the "USB selective suspend setting" USB Power Settings in Control Panel
  6. Click "Enabled" and change it to "Disabled".

4. Use Ethernet Data Acquisition Devices

For long-term monitoring and control we would recommend connecting devices to the PC using Ethernet rather than USB. Unlike USB, Ethernet can self-correct after an error. Our Ethernet data acquisition devices are listed at https://www.windmillsoft.com/daqshop/ethernet.html.

Microlink 840 versatile IoT data logger
The Microlink 840 data logger communicates over Ethernet and Internet