Turn off USB Selective Suspend
If you are having trouble with USB connection, it is possible that the Windows power saving feature is shutting off USB ports. Follow these steps to disable selective suspend.
1. Click Windows Start icon
The flag image (4 white squares on Windows 10) at the bottom left is the Windows start icon.
2. In Search type "edit power plan"
3. Select it from the list that is shown