Go to Post The spirit of FIRST is about learning not just about winning. - MamaSpoldi [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 27-10-2009, 22:03
Ragnarokae Ragnarokae is offline
Registered User
AKA: Anthony
FRC #0967 (Linn-Mar Robotics)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Marion, IA
Posts: 55
Ragnarokae will become famous soon enough
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?
__________________
Eschew obfuscation.

"I never enter into a battle of wits with an unarmed person. Therefore, I cannot fight."
  #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...
  #3   Spotlight this post!  
Unread 28-10-2009, 13:47
Jeff Pahl's Avatar
Jeff Pahl Jeff Pahl is offline
likes to look at shiny things...
FRC #5148 (New Berlin Blitz)
Team Role: Engineer
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Waukesha, WI
Posts: 344
Jeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond reputeJeff Pahl has a reputation beyond repute
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...
__________________
Team 5148 - 2014 Wisconsin Regional Rookie All-Stars!!

Mentor: 1379: 2004-2008 / 2530: 2008-2013 / 2861: 2009 / 5148: 2014-??
Lead Robot Inspector: 10,000 Lakes '09 - '11 / Lake Superior '11-'12 / Northern Lights '13, '15 - '16 / Championship '09 - '12, '14 - '15
Attending/Inspecting 2017: TBD, Wisconsin, STL Championship

"Sometimes the questions are complicated and the answers are simple" -Dr. Seuss
  #4   Spotlight this post!  
Unread 29-10-2009, 11:48
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
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   Spotlight this post!  
Unread 29-10-2009, 18:03
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?

Quote:
Originally Posted by Mike View Post
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.
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.
__________________
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...
  #6   Spotlight this post!  
Unread 30-10-2009, 07:49
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,792
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Using a USB switch for an interruptible connection?

Jeff,
Would a CMOS switch have an application here? Something like a 4053...
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #7   Spotlight this post!  
Unread 10-11-2009, 19:42
Nemo's Avatar
Nemo Nemo is offline
Team 967 Mentor
AKA: Dan Niemitalo
FRC #0967 (Iron Lions)
Team Role: Coach
 
Join Date: Nov 2009
Rookie Year: 2009
Location: Iowa
Posts: 804
Nemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond repute
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.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 02:51.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi