USB is a differential signal, not a digital one (like a GPIO square wave), and once you lose the training the connection is lost: it's basically a replug, but you can't do it too quickly, so you need to build a circuit to switch it; or just have a smart hub that electrically switches it by maintaining all of the connections (phy links).
No comments yet.