Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
By the way, there are various devices that routinely violate the standard and draw more than 500mA. e.g. most (if not all) keyboards with LEDs on each key. Most of them violate it, and most computers or hubs let them work.
edit: Also the spec allows a tree of unpowered hubs so it's not even a question of violating the standard, the supply may just run out.
They violate it. 2.0 spec allows 500mA only, and it's only higher for chargers. Chargers aren't supposed to be used on computers though. The main reason they exist in the standard is political and market pressure for mobile phones to have the same interface. It can be considered irrelevant though I guess it will make the case of computers allowing the violation of the standard for non-charger devices more common.
11.5.1.2 Powered-off
(...)
If a hub was configured while the hub was self-powered, and then if external power is lost, the hub must place all ports in the Powered-off state. If the hub is configured while bus powered, then the hub need not change port status if the hub switched to externally applied power. However, if external power is subsequently lost, the hub must place ports in the Powered-off state.
Consequently, a hub configured in bus-powered state won't be a allowed to impose part of the device power need to the host.11.11 Hub Port Power Control
Self-powered hubs may have power switches that control delivery of power downstream facing ports but it is not required. Bus-powered hubs are required to have power switches.
tpetar go read the spec (or just the wikipedia article) because you're arguing against a fact: USB 2.0 allows only 500mA per device unless it's a charger and that's a fact.
That there is a violation of the standard across the board is also more less a fact.
It says it will be required to have powered switches on that state. I don't know what power switches actually mean in this context. Do they allow only one of the two sources to be used? Do they allow simultaneous powering? (which was the question of this thread)Referring to the original question
Consequently, a hub configured in bus-powered state won't be a allowed to impose part of the device power need to the host.
You can be out but I'm not arguing either, it's a spec clause.I'm not arguing, I just try to help, sorry for that, I'm out.
Power switches means that the hub has means to disconnect the power of individual ports. As far as I see, there's no particularly requirement how both power sources are combined or switched. Diode or-ing isn't banned.It says it will be required to have powered switches on that state. I don't know what power switches actually mean in this context. Do they allow only one of the two sources to be used? Do they allow simultaneous powering? (which was the question of this thread)
I don't think that a self-powered hub (means a hub with self-powering option, in other words an external power connector) will be usually "plugged in to the external source". All USB hubs that I have in my office are optional self-powered but none presently is.Also that's just one of the two states. Won't self powered hubs be de facto on 'configured on a self-powered state' since they'll be plugged in to the external source usually when powering on the upstream bus?
Yes, that's also my understanding of the paragraph. Altough the required behaviour seems to be clearly specified in USB 2.0, you might ask if it's 1. reasonable and 2. practical. You possibly want to keep the USB devices in operation during an momentary power loss.The first paragraph is violated here for sure. I unplug the external power from a powered hub and it keeps going with upstream power.
7.2.1.2.1 Over-current Protection
The host and all self-powered hubs must implement over-current protection for safety reasons, and the hub must have a way to detect the over-current condition and report it to the USB software. Should the aggregate current drawn by a gang of downstream facing ports exceed a preset value, the over-current protection circuit removes or reduces power from all affected downstream facing ports. The over-current condition is reported through the hub to Host Controller, as described in Section 11.12.5. The preset value cannot exceed 5.0 A and must be sufficiently above the maximum allowable port current such that transient currents (e.g., during power up or dynamic attach or reconfiguration) do not trip the over-current protector. If an over-current condition occurs on any port, subsequent operation of the USB is not guaranteed, and once the condition is removed, it may be necessary to reinitialize the bus as would be done upon power-up. The over-current limiting mechanism must be resettable without user mechanical intervention. Polymeric PTCs and solid-state switches are examples of methods, which can be used for over-current limiting.
I have a few heavy duty devices and a powered hub and I wonder what's the flow of current in those things.