View Single Post
  #2   Spotlight this post!  
Unread 28-10-2009, 11:14
Unsung FIRST Hero
Nate Smith Nate Smith is offline
FRC Key Volunteer Trainer
AKA: CrazyNate
no team
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Old Town, Maine
Posts: 1,029
Nate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to behold
Send a message via AIM to Nate Smith Send a message via Yahoo to Nate Smith
Re: Using a USB switch for an interruptible connection?

Without going into the details of how to exactly when to control making the switch(microprocessor choice, etc.), your USB cable consists of 4 wires, +5v, d+(data positive), d-(data negative) and ground. Depending on what device A is, if it has any sort of "bootup" time, you may not want to use the power lines as your "switch". What I would recommend is a DPST relay(something like this) connected to the d+ and d- lines on the USB cable. Then, through your choice of control methods, turn the relay "on" at the end of that initial 30 second period, thereby connecting d+ and d- between devices A and B. You may have to experiment with the timing for when to switch the relay on, as there may be a delay after the devices are connected before they each realize that the other is there.

Hopefully this helps somewhat, I can provide more details if you are interested.
__________________
Nate Smith
nsmith@smythsoft.com
12 seasons, 4 teams, and more time logged behind the scorekeeper's table than I care to remember...
returning for 2011? only time will tell...