Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is anyone aware of a USB Switch that is programmable or controlled via the PC?

I am writing a test application that requires the device (a mobile phone) to be plugged in via USB to a PC for initialization and then plugged in to a wall charger for a particular test.

Ideally I'd be able to have the phone plugged into the switch and then have two outputs from the switch - one to the PC and one to the wall charger. And then be able to set which connection to use from the PC.

Any thoughts?

share|improve this question

closed as off-topic by Michael Kjörling, mdpc, Nifle, Kevin Panko, Excellll May 14 '15 at 14:14

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking for hardware shopping recommendations are off-topic because they are often relevant only to the question author at the time the question was asked and tend to become obsolete quickly. Instead of asking what to buy, try asking how to find out what suits your needs." – Michael Kjörling, mdpc, Nifle, Kevin Panko, Excellll
If this question can be reworded to fit the rules in the help center, please edit the question.

1  
I hate to say it, but this would be a trivial device for you to create yourself if you were willing to hack up a few USB cables. All you need is a four-pole double throw switch. Hook up all of your inputs and outputs, and bam, insta-USB switch. And it won't cost more then a dollar if you already have the cables! – Breakthrough Jun 23 '11 at 16:38
    
Ah, I see what you mean now - you want to use the switch from the PC. In that case, you could use a microcontroller (control it via USB or serial) to switch between the two with a bunch of relays. – Breakthrough Jun 23 '11 at 16:48
    
Right... That's similar to what I'm currently doing (switching using a PXI switch module)... But I was hoping to find a COTS solution. – J J Jun 24 '11 at 1:21
    
Get an Arduino and some relays :) – billc.cn Aug 1 '11 at 0:37

http://www.obdev.at/products/vusb/powerswitch.html

simple and cheap, will have to change it to operate relays instead of just powering lights.

I haven't build the powerswitch example, but have used vusb for both serial and keyboard projects. works with really cheap hardware.

share|improve this answer

This product offering from Acroname looks like it might fit your needs. Programmable through C++ and Python API interface and designed for test automation and regression.

http://acroname.com/products/s77-usbhub-2x4-0

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.