Go to Post Uhh... we were supposed to be building a robot? *looks at giant wooden Trojan Rabbit in the corner that was built instead for the past 6 weeks* Whoops... - Adam Richards [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 06-04-2015, 15:01
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,020
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
USB ports going away during match

We had an interesting issue this weekend with our driver controls dropping out. Things had been working well previously, we attended the San Antonio regional and had only one instance that I can remember of the controllers (Logitech Gamepads) not working, we unplugged them and plugged them back in and they were fine. But this weekend at Arizona, they started acting up Friday afternoon, where they would appear to be connected, then just after the match started one or both would "go away". Sometimes they came back with a USB Rescan, other times they needed to both be unplugged and reconnected.

The problem got worse late Saturday, in our final few matches we had to Rescan several times during the match to keep driving.

There was one code change before the issue started Friday, we added a vi module to make one of the buttons act as a toggle.

Each gamepad is connected to a "real" USB port on the DS laptop, there is no external hub. The laptop is on it's 3rd year, and has been working well.
Reply With Quote
  #2   Spotlight this post!  
Unread 06-04-2015, 15:14
kiettyyyy's Avatar
kiettyyyy kiettyyyy is offline
Registered User
FRC #1538 (The Holy Cows)
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2005
Location: San Diego, CA
Posts: 181
kiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond repute
Send a message via AIM to kiettyyyy
Re: USB ports going away during match

This has happened to our team multiple times. Twice at AZ East this year. Numerous times in previous years.

We were fortunate enough not to have this happen to us at San Diego last week. However, I was volunteering as a CSA at the event and fixed a number of teams during matches.

It seems to manifest itself during the autonomous to teleoperated control transition.
__________________
-Kiet Chau

2004-2008 - Software Developer/Driver on Team #968
2008-2011 - Software Developer/Coach/Mentor/"Engineer" on Team #968
2011-Present - Mentor & Engineer on Team #1538
www.team1538.com
Reply With Quote
  #3   Spotlight this post!  
Unread 06-04-2015, 15:16
marshall's Avatar
marshall marshall is offline
My pants are louder than yours.
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 1,325
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: USB ports going away during match

Quote:
Originally Posted by MrForbes View Post
We had an interesting issue this weekend with our driver controls dropping out. Things had been working well previously, we attended the San Antonio regional and had only one instance that I can remember of the controllers (Logitech Gamepads) not working, we unplugged them and plugged them back in and they were fine. But this weekend at Arizona, they started acting up Friday afternoon, where they would appear to be connected, then just after the match started one or both would "go away". Sometimes they came back with a USB Rescan, other times they needed to both be unplugged and reconnected.

The problem got worse late Saturday, in our final few matches we had to Rescan several times during the match to keep driving.

There was one code change before the issue started Friday, we added a vi module to make one of the buttons act as a toggle.

Each gamepad is connected to a "real" USB port on the DS laptop, there is no external hub. The laptop is on it's 3rd year, and has been working well.
We have seen a similar issue. Every time it has happened to us it has been because of a fault in the cable for the Logitech gamepad controllers. We do our best to have the students treat them with a bit of respect but they just get beat up.
Reply With Quote
  #4   Spotlight this post!  
Unread 06-04-2015, 15:21
angelah angelah is offline
Registered User
FRC #3547
Team Role: Mentor
 
Join Date: Jul 2013
Rookie Year: 2009
Location: Michigan
Posts: 90
angelah has a spectacular aura aboutangelah has a spectacular aura about
Re: USB ports going away during match

That's how we spent last year. This year we switched to joysticks because of that problem. A more extreme solution, but it worked for us.
Reply With Quote
  #5   Spotlight this post!  
Unread 06-04-2015, 15:22
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 251
BitTwiddler is on a distinguished road
Re: USB ports going away during match

Not sure if it makes a difference but we use two Logitech controllers, one for the driver and one for the operator. As far as I know, they both drop out at the same time.
Reply With Quote
  #6   Spotlight this post!  
Unread 06-04-2015, 15:26
Boltman Boltman is offline
Registered User
FRC #5137 (Iron Kodiaks)
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2014
Location: San Diego
Posts: 861
Boltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud ofBoltman has much to be proud of
Re: USB ports going away during match

We fixed our usb issues in Ventura with simple "Power Option" setting changes on the windows laptop there are main ones and ones specific to USB ports in the advanced area.
__________________

Iron Kodiaks Team #5137 San Marcos, CA

2016 Semi-Finalist | Central Valley Alliance Captain #2
2016 Semi-Finalist | San Diego 2nd bot alliance #8
2015 Semi-Finalist | Ventura 3rd bot alliance #3
2015 Quarter-Finalist| San Diego 2nd bot alliance #5
2014 Rookie All-Star | #21 San Diego | Galileo Division #91

Last edited by Boltman : 06-04-2015 at 15:29.
Reply With Quote
  #7   Spotlight this post!  
Unread 06-04-2015, 15:26
marshall's Avatar
marshall marshall is offline
My pants are louder than yours.
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 1,325
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: USB ports going away during match

Quote:
Originally Posted by BitTwiddler View Post
Not sure if it makes a difference but we use two Logitech controllers, one for the driver and one for the operator. As far as I know, they both drop out at the same time.
That's interesting and useful info. If that is the case then that to me points to either a software fault or a more upstream hardware fault like the USB controller within the laptop.

As I said though, we've seen it happen to us and it is typically one controller that drops and it is because of a faulty cable. I've been able to repair a handful of the controllers but it is typically more cost effective to recycle it and then buy a new one.
Reply With Quote
  #8   Spotlight this post!  
Unread 06-04-2015, 16:12
kiettyyyy's Avatar
kiettyyyy kiettyyyy is offline
Registered User
FRC #1538 (The Holy Cows)
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2005
Location: San Diego, CA
Posts: 181
kiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond repute
Send a message via AIM to kiettyyyy
Re: USB ports going away during match

Most of the fixes that I've done for teams was to change the power settings for the USB port.

To clarify, the issue is not isolated to gamepad controllers of a specific brand. This can happen to ANY joystick device.
__________________
-Kiet Chau

2004-2008 - Software Developer/Driver on Team #968
2008-2011 - Software Developer/Coach/Mentor/"Engineer" on Team #968
2011-Present - Mentor & Engineer on Team #1538
www.team1538.com
Reply With Quote
  #9   Spotlight this post!  
Unread 06-04-2015, 16:24
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,020
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: USB ports going away during match

Actually one of the controllers was dropping, and the other stayed "lit up" on the DS display. And we changed the dropping controller with another one during one of the last matches, and the problem persisted, with no apparent change.

We can look at power settings, but I'm a bit confused why something like that would make the USB port come and go several times during a match, while the control is being used continuously? Although I do understand that Windows works in strange and mysterious ways.

I wonder if this is the advanced setting? btw this is on my desktop, which also runs Windows 7. I could probably end global climate change by leaving the setting as is, rather than allowing the pesky USB hub to run all the time!
Attached Thumbnails
Click image for larger version

Name:	usb.jpg
Views:	86
Size:	37.1 KB
ID:	18780  
Reply With Quote
  #10   Spotlight this post!  
Unread 06-04-2015, 16:41
kuraikou's Avatar
kuraikou kuraikou is offline
Registered User
AKA: Alex
FRC #4183 (Bit Buckets)
Team Role: Alumni
 
Join Date: Nov 2012
Rookie Year: 2013
Location: Tucson, Arizona
Posts: 73
kuraikou is an unknown quantity at this point
Re: USB ports going away during match

We were having the same issue at AZ East but we fixed the issue by triple checking the connection before every match and being ready to replug and rescan at the beginning of each match. Our issue was caused by bad USB ports and cables on our ps4 controllers, so we got new cables and that helped significantly.
__________________
2012 Utah regional Rookie All Star
2013 Phoenix regional Judges Award
2014 Hub City Quality Award
2014 Arizona Regional Excellence in Engineering Award
2015 Arizona East Regional Creativity Award
2015 Arizona East Regional winning alliance captain
Reply With Quote
  #11   Spotlight this post!  
Unread 06-04-2015, 16:44
evanperryg's Avatar
evanperryg evanperryg is offline
IT'S THE BUMP N' DUMP
AKA: Evan Grove
FRC #4536 (The Minutebots)
Team Role: Mentor
 
Join Date: Apr 2013
Rookie Year: 2011
Location: Minneapolis, MN
Posts: 657
evanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond reputeevanperryg has a reputation beyond repute
Re: USB ports going away during match

Correct me if I am wrong, but I believe 2451 may have been having a similar problem at Midwest, that caused them to withdraw from alliance selections.
__________________
FRCDesigns Contributor | "There is only one corner of the universe you can be certain of improving, and that's your own self." -Aldous Huxley
2012-2016 | FRC Team 2338: Gear it Forward
2013
Wisconsin Regional Winner 2014 Midwest Regional Finalist 2015 Midwest Regional Chairman's Award, Finalist, Archimedes Division Champion, IRI Semifinalist 2016 Midwest Regional Chairman's Award, Finalist, Archimedes Division Gracious Professionalism Award, R2OC Winner
2015 | FTC Team 10266: Mach Speed
2015
Highland Park Qualifier Winner, Motivate Award
2017-???? | FRC Team 4536: The Minutebots

Thanks to the alliances and friends I've made along the way: 33 74 107 111 167 171 234 548 1023 1089 1323 1625 1675 1732 1756 2064 2077 2122 2202 2358 2451 2512 2826 3936 3996 4039 4085 4241 5006 5401 5568 5847 5934
Reply With Quote
  #12   Spotlight this post!  
Unread 06-04-2015, 16:58
Jared's Avatar
Jared Jared is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Connecticut
Posts: 602
Jared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond repute
Re: USB ports going away during match

Here's a few ideas:

-Turn off the power save setting. This has caused similar problems for some teams in the past

-Uninstall and reinstall the USB driver

-Make sure that there is no other USB device that could be shorting the USB 5V supply.

-Make sure the contacts on the USB connectors are not corroded or dirty

-Make sure the USB cable fits snugly. If it doesn't, you can try gently crushing the joystick connector so that it has a better fit.

-Make sure the laptop is plugged in when you're driving.

-Make sure the laptop battery is healthy. Bad batteries can cause really weird things to happen.

-Uninstall/Reinstall the USB driver

-Disable your wireless adapter and bluetooth (if you have it). Sometimes the bluetooth adapter connects to an internal usb port, and may be causing issues.
Reply With Quote
  #13   Spotlight this post!  
Unread 06-04-2015, 16:59
kiettyyyy's Avatar
kiettyyyy kiettyyyy is offline
Registered User
FRC #1538 (The Holy Cows)
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2005
Location: San Diego, CA
Posts: 181
kiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond repute
Send a message via AIM to kiettyyyy
Re: USB ports going away during match

Quote:
Originally Posted by MrForbes View Post
Actually one of the controllers was dropping, and the other stayed "lit up" on the DS display. And we changed the dropping controller with another one during one of the last matches, and the problem persisted, with no apparent change.

We can look at power settings, but I'm a bit confused why something like that would make the USB port come and go several times during a match, while the control is being used continuously? Although I do understand that Windows works in strange and mysterious ways.

I wonder if this is the advanced setting? btw this is on my desktop, which also runs Windows 7. I could probably end global climate change by leaving the setting as is, rather than allowing the pesky USB hub to run all the time!
Jim, this is the setting that you'd be looking for.
__________________
-Kiet Chau

2004-2008 - Software Developer/Driver on Team #968
2008-2011 - Software Developer/Coach/Mentor/"Engineer" on Team #968
2011-Present - Mentor & Engineer on Team #1538
www.team1538.com
Reply With Quote
  #14   Spotlight this post!  
Unread 06-04-2015, 17:05
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,020
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: USB ports going away during match

Thanks for all the suggestions, everyone!

We have several things to check. We have not been plugging in the DS laptop charger during matches, it's been running on battery all the time.

I don't have the laptop here, hopefully it made it home on the bus Saturday night, and I can check it in an hour or so when I drop off the robot at school.
Reply With Quote
  #15   Spotlight this post!  
Unread 06-04-2015, 19:16
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: USB ports going away during match

Quote:
Originally Posted by MrForbes View Post
We have not been plugging in the DS laptop charger during matches, it's been running on battery all the time.
Failing to take advantage of the provided power at the field is not a good idea. It's too easy for Windows to kick in power-saving features if you're not plugged in. And if you do successfully disable them all, you're going to run down the battery much faster than "normal".
Reply With Quote
Reply


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


All times are GMT -5. The time now is 07:10.

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