USB connection not working VUSB

avrusb

ar 29 22:12:14 stevendesktop kernel: [ 4265.290019] usb 5-1: device descriptor read/64, error -62
Mar 29 22:12:15 stevendesktop kernel: [ 4265.572782] usb 5-1: new low speed USB device using ohci_hcd and address 52
Mar 29 22:12:15 stevendesktop kernel: [ 4265.990018] usb 5-1: device not accepting address 52, error -62
Mar 29 22:12:15 stevendesktop kernel: [ 4266.160020] usb 5-1: new low speed USB device using ohci_hcd and address 53
Mar 29 22:12:16 stevendesktop kernel: [ 4266.580018] usb 5-1: device not accepting address 53, error -62
Mar 29 22:12:16 stevendesktop kernel: [ 4266.580032] hub 5-0:1.0: unable to enumerate USB device on port 1

These are the messages that appear in the logs when I connect my avr. What could of caused these errors.

pin D-
I have D- connected to a 68R resistor in series. The other end goes to my avr. I wired a 1.5K pull in parallel to the 68ohm resistor. A zener 0.5w 3.6v parallel to pin 2 of the type A socket.

pin D+
Wires in series to a 68ohm resistor. The other end to avr. A zener in parallel to the D+ pin. Also wired to int0 pin.

It's self powered at the moment so therefore I don't need to connect the 5v and gnd pins right?

When I connected the D+ pin to my scope I could see a square wave being generated. I tested the frequency it's bang on 16MHZ. Though I did notice occasionally it went down to 15.98.

So what could be wrong?

Best Answer

pin D- I have D- connected to a 68R resistor in series. The other end goes to my avr. I wired a 1.5K pull in parallel to the 68ohm resistor. A zener 0.5w 3.6v parallel to pin 2 of the type A socket.

sounds like your pulling D- up to your board's supply (it should be pulled up to 3.3V), at least i think thats what your trying to say. If the 1.5k is actually in parallel with the 68 ohm resistor, that is a problem.

As you haven't connected the ground from the USB link, the other end has no reference at all for what you've pulled that pin up to. Nor is your controller seeing the pull downs on the host side of the link.

Connect the ground from the USB link to your board ground.