USB 2.0 2 Way Manual Share Switch 1 Printer to 2 PC's: Amazon.co.uk: Electronics
Hi I have built a Openelec media center with a USB HDD fitted inside a case im trying to work out how to created a automatic switch like the one in link above that will allow me to connect its as a portable HDD to the computer when USB cable is plugged and if not then USB drive is connected to pie
Conditions
If (connection 2 usb connection = true) {
Connect as potable drive on PC
}
else{
Connect as potable drive on raspberry
}
As the USB supply 5v im thinking if this is detected on the USB connection two it could switch the data connections to that connection if power to connection 2 is absent the connection is left on the pi as default.