Device works with hub but not without

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
PHermansson
Posts: 10
Joined: Tue Oct 07, 2008 11:44 am

Device works with hub but not without

Post by PHermansson » Mon Apr 19, 2010 1:38 pm

This is a strange problem but I'm determined to find a solution. I have a few V-USB-based designs, two based on ATTiny25 without a crystal ("No 1" & No 2") and one with a 461 and a 12MHz crystal ("No3"). No1 & No2 has 47u and 0.1u over the supply lines.

No 1 and No 2 behaves the same. When connected to a powered usb-hub all is fine. When connected directly to the PC it doesn't work:

Code: Select all

usb 2-3: device descriptor read/64, error -62
[62524.840066] usb 2-3: new low speed USB device using ohci_hcd and address 102
[62524.932251] hub 2-0:1.0: unable to enumerate USB device on port 3
[62525.723216] usb 2-3: new low speed USB device using ohci_hcd and address 103
[62525.910063] usb 2-3: device descriptor read/64, error 18
[62526.129741] hub 2-0:1.0: unable to enumerate USB device on port 3


The 461-based design works i both cases. No 2 doesn't work when connected to a laptop.
No 1 & 2 uses two 1N4148 in the USB power line to get correct power. When connected directly to PC it measures 3.52V at the MCU power pins. Pin 5 (D-) = 3.18V, Pin 7 (D+) = 0.05V.
When connected to the hub: 3.49V at power pins, Pin 5 = 3.17 and Pin 7 = 0.00V.

So the power seems to be at the same levels. One thought is that the USB power from the computer is noisy, but is it noisy both in the PC and the laptop? Wish I had an oscillscope nearby...

Anyone has any ideas on what the problem is and how to fix it?

ulao
Rank 4
Rank 4
Posts: 481
Joined: Mon Aug 25, 2008 8:45 pm

Re: Device works with hub but not without

Post by ulao » Mon Apr 19, 2010 3:51 pm

I had a similar problem.

viewtopic.php?f=8&t=4149

Turns out my zeners ( surface mounts ) where the problem. I put my through hole zeners in place and it now works direct to the PC. My readings were 4.0 volt though.

PHermansson
Posts: 10
Joined: Tue Oct 07, 2008 11:44 am

Re: Device works with hub but not without

Post by PHermansson » Mon Apr 19, 2010 6:31 pm

Hmm ok. My zener are hole-mounted, and reads 3.17. Yours read 4.0. They are rated at 3.6... But this the nature of zenerdiods, they are unpredictable. But at the same time, mine reads practicle the same in both cases. Strange indeed.

Post Reply