1

I have a Raspberry Pi 3B, a powered USB hub, and an external USB drive. The HDD is connected to the Hub, and the Hub to a power outlet. But going from the Pi, do I really need 2 cables (one for power, going into the micro-USB plug, and another from a big USB to the hub-disk) ? I tried with just the micro USB (to the hub) but the HDD is not detected, and I read somewhere that the Pi's micro USB is "power only".

Gnurfos
  • 123
  • 5

3 Answers3

1

If this will work at all you need 2 cables. It MAY work with some hubs, but a compliant hub will not supply sufficient current to run the Pi reliably and most non-compliant hubs supply too low voltage.

Milliways
  • 62,573
  • 32
  • 113
  • 225
1

You need both cables.

I disagree with Milliways statement that it may work with some hubs - the Pi 3's micro USB connector is definitely power only. If you take a look at the 'POWER IN' section of the Pi 3's schematics, in the top left corner of the diagram, you can see that the middle three pins (Data +, Data -, and USB OTG ID) aren't connected to anything.

Power In section of Raspberry Pi 3B schematics

There is absolutely no way that anything other than power can be transmitted through that connector.

Glorfindel
  • 620
  • 1
  • 9
  • 16
goobering
  • 10,750
  • 4
  • 40
  • 64
1

going from the Pi, do I really need 2 cables (one for power, going into the micro-USB plug, and another from a big USB to the hub-disk)?

Yes, but contra the other answers this doesn't have to do with the nature of the Pi's microUSB connector, it has to do with the way USB hubs in general work. Even if that microUSB connector did accept data, it could not be used for power and hosting at the same time (OTG connections can, but they are a special case).

This is because USB hubs normally have one special connector which is the data uplink connection to the host they are to be used with. The reason there's only one is because you can use a hub to connect multiple slave devices to one master, but not to multiple masters. I.e., you cannot connect a drive to a hub, your desktop to a hub, and your laptop to a hub and access the drive from both computers.

In fact, naively trying to do so might damage the computers, since the USB master-slave relationship is not symmetrical. The issue damage wise is that masters may provide power to slaves but not vice versa. If you try to hook up two computers using the normal ports on a USB hub, the hub will try and power the computer and the computer will try and power the hub. One of the voltage regulators will win and circuitry on the opposite side may then get damaged (which may perhaps lead to damage on both sides).

So the connection from a normal port on the hub to the microUSB power jack on the Pi provides power. You can "backpower" at least some pis (perhaps only older models, I'm not sure) via the normal USB jacks, but this is a risky idea. Further, if you do that, you still won't be connected to the drive because a slave does not connect to a slave on the same hub. Only the master does, and again, there is only one of those.

Generally the data uplink port will be a nonstandard size connector on the hub. There is a picture here with explanation of how this is supposed to be set up. The data uplink cable is the one with red dots. Notice it does not connect to a normal port on the hub.

Make sure you do that properly or again, there is the possibility of damaging the pi and/or the hub.

goldilocks
  • 60,325
  • 17
  • 117
  • 234