Man-wai Chang said:
When the battery was full, the yellow triangle appeared again... Well
Well Well... I guess there is no way to fool it by voltage and resistors
alone.
So do all those Apple chargers have a special chip to pretend as iTunes?
I think you should consider, that each solution is putting a particular
voltage on the pins.
In the "short D+ to D-" case, obviously the pins are at the same voltage.
If a differential receiver is looking at the two pins, and detecting + -
or - + (i.e. valid differential voltage), there is no differential voltage
when D+ is shorted to D-. The receiver cell needs to see a voltage difference
between the leads, to get a valid logic level.
Tying the D+ and D- to +5V with 150k (very weak) pullups, means D+ and D-
will battle with any weak resistors already on the iPod. USB uses pullup
and pulldown resistors as part of indicating whether a USB 1.1 or USB 2.0
device is connected.
The three resistor network
+5V --- resistor ---+--- resistor ---+--- resistor --- GND
| |
D+ D-
puts two different voltages on the D+ and D- pins. In the example I
just created, D+ will be a more positive voltage than D-. If the
receiver threshold was 0.1V say, and the difference between D+ and
D- is 0.5V, then the receiver detects a valid logic level. Which is
different than the other case. The voltages are also "mid-rail",
meaning they aren't close to 5V in value. And the receiver may have
built-in detection features, for mid-rail voltages, as a mid-rail
voltage may indicate that the other end of the link is trying to
send valid logic levels.
So all three circuits do something different, but exactly what they
do, really depends on the weak resistor structure used by a USB device.
This circuit is an overlay on top of that. As a matter of fact, the
USB device (iPod) might even be switching its pullup and pulldown resistors
on and off, as a function of what state it is in. If it is suspended
or sleeping, and wishes to maximize battery life, the resistors on
a USB device might be switched off.
All the details are undoubtedly in the 500 page USB spec, but I
don't plan on reading the whole thing, any time soon
In the slide deck link I posted before, you can see that the interface
is "tricky" and uses a lot of different levels. The question is,
how does your circuit overlay, affect how this stuff works ?
http://www.usb.org/developers/presentations/pres0602/jim_choate_sp.pdf
Paul