Never used on before so if I want to power my RaspPI and add a wifi. How would this work out?
I know I would have to connect one port to the microUSB for power but how does the wifi fit in?
Cheers
David
Never used on before so if I want to power my RaspPI and add a wifi. How would this work out?
I know I would have to connect one port to the microUSB for power but how does the wifi fit in?
Cheers
David
David, I'll try to summarize it for you.
A USB hub connects to a single upstream host port and expands it into two or more downstream host ports. Full-size host port connectors are normally "type A" while a hub's upstream connector is "type B", which is why hubs require a type-A-to-type-B lead (sometimes called "A-B") to connect them to the upstream host. The type B side is the chunky squarish end, while type A is the usual USB flat connector such as found on USB mice.
USB hubs are typically powered in one of two different ways. A self-powered hub takes its power from a dedicated external power supply, which is typically a mains wall adapter connected to the hub via a barrel connector. In contrast, a bus-powered hub takes its power from the upstream host port to which the hub is connected, through the A-B lead. In addition, when a self-powered hub does not have its external power cable attached (or the external supply isn't running), it typically behaves like a bus-powered hub and hence takes its power from its upstream USB connection.
The Raspberry Pi model B has a micro-USB connector through which it takes power from a USB charger. That connector does not have any data lines connected, so it is not a "USB port", just a power connector.
The Pi model B also has two type A host sockets, into which you can plug USB type A plugs such as your wifi dongle, or the type A plug of a type-A-to-type-B lead such as connects to your USB hub. If you connect your dongle directly into a Pi's type A host socket, then the dongle will take its power from this socket and hence indirectly from the Pi's power supply. In contrast, if you plug the dongle into a self-powered hub that is properly powered from its external power adapter, then the dongle will take its power from this external supply and hence not draw power from the Pi.
Because the Pi's power design is rather poor and USB chargers are typically quite dreadful compared to how a regulated power supply should behave (compounded by the high resistance of many micro-USB leads), it is not advisable to power high-current peripherals such as wifi dongles directly from the Pi. This is where your self-powered hub ("powered hub" for short) comes in --- it provides your dongle with data access to the Pi through the upstream USB A-B lead, but powers the dongle from the external power supply instead of from the Pi's host port.
A bit long-winded, but hopefully this helps to explain the relationship between dongles and powered hubs. 
Morgaine.
If anyone's looking for what used to be the tail end of this thread, it seems to have been split off into a thread of its own over here:
http://www.element14.com/community/thread/19316?tstart=0
I guess this was done by administrative action, owing to the topic having diverged in part into a description of the "Pi accessory" 7-port hub not actually being Pi-compatible.
Morgaine
If anyone's looking for what used to be the tail end of this thread, it seems to have been split off into a thread of its own over here:
http://www.element14.com/community/thread/19316?tstart=0
I guess this was done by administrative action, owing to the topic having diverged in part into a description of the "Pi accessory" 7-port hub not actually being Pi-compatible.
Morgaine