Author Topic: Unknown USB Device (Device Descriptor Failed)  (Read 16220 times)

h2oyeller

  • Newbie
  • *
  • Posts: 5
Unknown USB Device (Device Descriptor Failed)
« on: January 28, 2016, 11:18:42 am »
So went to reprogram a few of my Digisparks and was unable to get them to connect. Computer went through some hardware and software changes so figured I would just go reinstall latest arduino software and follow the WIKI. Got a bunch of library errors so unistalled latest version and installed older version 1.6.5. Seemed to take care of library errors. And got the request to install drives seemed to install. But still no joy can not upload , unknown device. I've tried on 2 different computers both running Windows 8.1 pro 64 bit. Any ideas. Are the drivers that the wiki points to not correct any longer?  Could use some help. Thanks

Pinus

  • Newbie
  • *
  • Posts: 35
Re: Unknown USB Device (Device Descriptor Failed)
« Reply #1 on: January 29, 2016, 02:22:34 am »
Drivers can only be installed within 5 seconds from when you plug Digispark in on the USB socket. If your computer takes more than 5 seconds to complete driver installation, it will simply not work.

I advice to delete all unused drivers (google search windows show hidden devices), reboot and try again. It is a computer/operator issue.

h2oyeller

  • Newbie
  • *
  • Posts: 5
Re: Unknown USB Device (Device Descriptor Failed)
« Reply #2 on: January 29, 2016, 04:02:02 pm »
Pinus - Thanks for the response. I was aware of the 5 second window in order to upload new code on the device. And I guess it would follow that the driver has to be present with in that time too. However I knew this was something different as I was getting the unknown USB device error immediately upon switching it on (or plugging in the digi ) once prompted.
Well long story short after cleaning things up and trying another digispark from another project it worked fine. But still unable to get the one I was doing all the trouble shooting on to work. So bottom line is I simply have something wrong with one of my digisparks guess it got corrupted some how. But again thanks for the time to help.

Pinus

  • Newbie
  • *
  • Posts: 35
Re: Unknown USB Device (Device Descriptor Failed)
« Reply #3 on: January 30, 2016, 12:23:50 am »
These things can stand quite some abuses. It might just be a USB connector issue.

h2oyeller

  • Newbie
  • *
  • Posts: 5
Re: Unknown USB Device (Device Descriptor Failed)
« Reply #4 on: January 30, 2016, 07:33:04 pm »
Agreed. But if I can't connect its of no use. The computer detects when I plug it into and pull it out of the hub. But upon plugging it in it gives the Unknown USB Device bubble. I have tried various other ports on the computer with and without hub same result. But use a different digispark with the hub and I have success. Again here I'm not even talking about trying to load new code I'm just looking for recognition. If you have a suggestion I'm more then willing to try.  Thanks

Pinus

  • Newbie
  • *
  • Posts: 35
Re: Unknown USB Device (Device Descriptor Failed)
« Reply #5 on: January 31, 2016, 01:53:19 am »
I had a Chinese digispark with micro USB female socket. After a while, plugging and unplugging, socket came off. I simply connected two resistors, one each, in series with P2 and P3, two resistors I had, less than 100 Ohm, more than 50 Ohm, not even the same value. Cut an old USB cable, took out the 4 wires, 5V, GND, D+ and D-, connected data wires to resistors free end, power cable to power pins, and I was able to program it again...

Or, if you use a ISP programmer, you can check if it gets programmed that way. I know these devices are cheaper than your time. It is up to you whether to consider it a learning experience or a total waste of time.

DigiAnge

  • Newbie
  • *
  • Posts: 5
Re: Unknown USB Device (Device Descriptor Failed)
« Reply #6 on: February 08, 2016, 09:11:00 am »
Hello,

I have quite same problem, I have only ONE Digispark, for test purposes, and I can't install the driver.

It is impossible to have the driver installec within 5 seconds, if I remove all the references to the Digispark, I must wait for 60 seconds before Windows 10 ended its database rebuild.

There another problem, when I plug the board, immediatly (not after 5 seconds), it's seems to be disconnected and reconnected, endless.

How to solve ths problem ?

It is the first time I enconter such a problem with USB connection on Windows...

FigNewton

  • Newbie
  • *
  • Posts: 8
Re: Unknown USB Device (Device Descriptor Failed)
« Reply #7 on: February 08, 2016, 10:04:47 am »
This might not be a great solution but here goes. I am running Windows as my host, and have VirtualBox setup. I am running a Ubuntu based linux distro as a virtual machine. I am using the VM to run my arduino IDE, and have the USB passthrough on VirtualBox automatically passing through my digispark to the linux machine and devices that match:

Vendor ID: 16d0
Product ID: 1753

Sometimes it doesn't work as quick as it needs to, but most of the time it will pass the device through before the 5 seconds is up, and the code will get written. So if you just can't get Windows to work properly, maybe setting up a VM and having VirtualBox tell Windows to pass through the USB device might get you some resolution. Just a thought.

DigiAnge

  • Newbie
  • *
  • Posts: 5
Re: Unknown USB Device (Device Descriptor Failed)
« Reply #8 on: February 08, 2016, 11:42:02 am »
Thank you for your answer FigNewton

I've tried with Vmware and try to strart from scratch with a XP machine, but the device is continously plugged and unplugged in windows so I can't attach the device to the virtual machine...

I'll try to install Ubuntu on another disk to view what's happen.


FigNewton

  • Newbie
  • *
  • Posts: 8
Re: Unknown USB Device (Device Descriptor Failed)
« Reply #9 on: February 08, 2016, 02:13:05 pm »
Does VMWare have the ability to automatically pass through a USB device? The only reason it even works on my VirtualBox install is that I can set up filters to auto pass the device to the virtual machine. Otherwise I would have to insert the digispark, and then see if I could click and transfer the digispark to the vm in under five seconds, which wouldn't happen. I think that's really the key to making it work in my particular case. Otherwise I would have to move out to the native Windows machine in order for the Arduino IDE to be able to catch it in the 5 sec window.