|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Using a USB switch for an interruptible connection?
Situation: Device A is connected by USB to a USB switch. The switch is connected to Device B. A needs to send information to B, but only after a certain time. For example, A can NOT send information to B for the first 30 seconds, but MUST send information after the first 30 seconds.
No connections can be manually changed or removed. We are trying to get a button or toggle in place so that A sends information when the state of the button or toggle is changed from false to true. Any ideas of what to buy or what to jury-rig (and how) to make this possible? |
|
#2
|
|||||
|
|||||
|
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. |
|
#3
|
|||||
|
|||||
|
Re: Using a USB switch for an interruptible connection?
It really depends on what data rate you need to support.
Is this a USB 1.0 application or a USB 2.0 application? To maintain a high speed 2.0 application will most likely require an integrated circuit solution, a slower speed application should work fine with a relay as Nate explained. If you need to go to a high speed integrated circuit solution, Digi-Key has a bunch of chips in the $2.00 range. But they are all surface mount... |
|
#4
|
|||||
|
|||||
|
Re: Using a USB switch for an interruptible connection?
On an aside, thats a beefy relay you got referred to. You may be able to find something cheaper/lighter without a 5 ampere rating.
|
|
#5
|
|||||
|
|||||
|
Re: Using a USB switch for an interruptible connection?
Yeah, I basically just did a search for DPST relay, and picked one of the first ones that came up...was just meant as an example of what kind you would need, and not a recommendation of that relay in particular.
|
|
#6
|
|||||
|
|||||
|
Re: Using a USB switch for an interruptible connection?
Jeff,
Would a CMOS switch have an application here? Something like a 4053... |
|
#7
|
||||
|
||||
|
Re: Using a USB switch for an interruptible connection?
Thanks for the quick replies, particularly the suggestion to use a relay. We're going in that direction.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| away around the USB chicklet for using USB Controllers | Stobei | Programming | 2 | 26-01-2008 14:27 |
| Using a USB Controler | Ethulin | Control System | 8 | 27-01-2006 21:46 |
| Ideas for using the NI USB-6009 DAQ device | Andrew Schuetze | National Instruments LabVIEW and Data Acquisition | 0 | 05-01-2006 22:55 |
| USB DAQ Wireless connection? | StevenB | National Instruments LabVIEW and Data Acquisition | 1 | 01-01-2006 03:49 |
| Using iBooks and a Secure Connection | Joe Matt | Scouting | 8 | 05-02-2002 21:26 |