Go to Post You have to start at the bottom to get to the top, usually. - Kyle [more]
Home
Go Back   Chief Delphi > Technical > Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-03-2015, 10:17
java4first java4first is offline
(Java) Programming Mentor
AKA: Stu
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 2011
Location: Goffstown, NH
Posts: 56
java4first is an unknown quantity at this point
Continual Joystick Disconnect During Match

Hi -

We are having a really weird problem that hopefully someone can shed some light on ...

Thanks!
Stu


In a nutshell, during competitions - in a given match, the two joysticks will go 'disabled' at least once, and usually several times during the match teleoperated mode (they may be doing it in autonomous mode as well, but we obviously wouldn't be aware of it), halting active control of the robot and requiring the 'F1' rescan to bring them back to life. We have no problems at all when running tethered in the pits, or when running wirelessly during build season or during out of the bag practice sessions back home. Needless to say, it makes competing hard (and frustrating for the drive team).

More details:

- We are using Lenovo laptops (refurbished if that matters) running Windows 7 with patches current to the end of Build Season. We have no anti-virus or firewall software, and all three variants of the Windows firewall are disabled. We have a power management configuration that is set to never turn anything off when the laptop is powered on.

- We just competed at the Pioneer Valley District Event, and were not starting the FRC Driver Station program until we were connected to the field (which was a change from our normal procedure of coming ready to go - but that seemed to be causing problems for the field and we were asked to change).

- Because of the problems, we started doing a connectivity check of the two controllers after starting the Driver Station before each match started, and they were always green and flashed when you hit a button.

- We have an Ethernet coupler normally, but tried plugging directly into the laptop

- We are using two Logitech Dual Action gamepad controllers. At our last competition, we went out and bought two brand new ones to swap in, and it made no difference. We just bought to Xbox controllers to try at our next competition and see if that makes a difference.

- During the last match, we switched the tab to the one that shows the USB controller plugins - and when it fails, they go from green (connected / present) to grey ... until you run the F1 scan, when they return and go green again.

- We are running one of the Axis cameras at the default configuration for resolution and compression. We tried upping the compression and it didn't make a difference.

- If we look at the log file after the match, the data rate is down at the bottom of the graph, so I don't think it's a problem with communication bandwidth to the robot (although from what I have read in the FMS documentation, I don't see how the connection of the controllers could be affected by that anyway).

- We do notice what seems to be a correlation in spikes on lost packets at the times of the disconnects ... although I'm not sure whether it is related to the problem or caused by the F1 rescan process.

- The software on the robot isn't doing anything special or different from previous years in terms of just using the standard WPILib Java classes to instantiate and poll the controllers for stuff.

- There doesn't seem to be much correlation as to when it occurs, although in the match where we watched the USB tab, it seemed to happen right when the transition from autonomous to teleop occurred.

- It seems unlikely that it's related to the student driver & operator physical actions, as we never have problems at home and they are just as active with the controller motion in their hands there as at a competition.

If there is anything else I can look at or provide for information that would help troubleshoot this, let me know ... but we are really at a loss trying to figure out what the problem is. We do plan to bring several different laptops to our next competition and see if we can change that variable.
Reply With Quote
  #2   Spotlight this post!  
Unread 13-03-2015, 13:55
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 429
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
Re: Continual Joystick Disconnect During Match

We had a similar issue at our event last weekend Springfield ma, ne district event).
Almost every match we had on the field our operator and driver joystick would swap while in teleoperated mode. The drive team reported having seen something indicating that the joysticks were unplugged in match. When the sticks were recognized as being plugged in again, they would occasionally (often) be swapped. As in the stick which was previously used to move the drivetrain was now affecting the lifting mechanism and intake (operator joystick). And the stick which was previously used for the operator was now controlling the drivetrain.

We are using two Logitech F310 gamepads. Our DS are running fresh installs of Windows 7, w/ latest chipset and Logitech drivers installed.

We attempted using 3 different laptops over the course of the event, one of which was used by another team (4048) without issue (AFAIK) during eliminations.

We have never seen this kind of behavior in the pits/practice field/or during at home tests.

I had presumed this was caused by ESD, as there was n abnormally high amount of static electricity buildup due to the floor coverings used at the event.

We attempted to aid static discharge during matches by having the DS laptop plugged in during the match, this didn't seem to make a difference.

I have not had a chance to go through all our log files yet, but they are available here for reference if anyone finds that helpful: https://drive.google.com/folderview?...DQ&usp=sharing

Logs from the event would be on 3/5 - 3/7, I've inclouded logs from days prior as a baseline comparison in the event that is useful information.

My only though going forward was to try to use two different kinds of joysticks, one F310 and one xbox360 controller, in hopes that if we do lose connection to our sticks in match, they will at least come back up on the right port in the DS.
__________________
http://team2168.org
Reply With Quote
  #3   Spotlight this post!  
Unread 14-03-2015, 20:11
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,731
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Continual Joystick Disconnect During Match

Is the laptop plugged in at the Driver Station, or on battery?
USB has a separate power saving setting that can cut power to the usb ports while on battery.
You can (and should) disable that feature through the Device Manager -> USB controllers properties.

Also avoid flashy game controllers with flashy LEDS, as they drain more power and force a usb power cutback all the sooner.

Connect each controller directly to a laptop usb port and not through a usb hub. A hub concentrates the power requirements and will more readily drive can force a usb power cutback.

For the joysticks switching positions, do you double-click on them the lock them in position? You can tell if they are locked because they get an underline.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #4   Spotlight this post!  
Unread 15-03-2015, 22:38
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 429
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
Re: Continual Joystick Disconnect During Match

I have not tried the double click feature, we will give that a go.

Do you know how the DS software uniquely identifies the sticks? They are the same make/model.
__________________
http://team2168.org
Reply With Quote
  #5   Spotlight this post!  
Unread 15-03-2015, 22:48
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Continual Joystick Disconnect During Match

Here is what I remember.

DirectInput is used for the nonXBox joysticks. If the joysticks are of different types, I believe that will be the primary distinction. For identical types, the USB port number will be used.

For XBox controllers that are plugged in when the DS boots, they are port based. But if the DS is running and the joysticks are plugged in, the enumeration is based on insertion order. This makes things very confusing at times.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 16-03-2015, 10:27
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 429
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
Re: Continual Joystick Disconnect During Match

I was hoping you would respond. Thanks!

Sounds like using two different models of joysticks is the most fool proof route.
__________________
http://team2168.org
Reply With Quote
  #7   Spotlight this post!  
Unread 23-03-2015, 15:13
dougwilliams's Avatar
dougwilliams dougwilliams is offline
Engineer - Controls, Electronics
FRC #2053 (TigerTronics)
Team Role: Mentor
 
Join Date: May 2013
Rookie Year: 2013
Location: Vestal, NY
Posts: 109
dougwilliams is on a distinguished road
Re: Continual Joystick Disconnect During Match

We had the same issue during some practice matches this last weekend. We had a new (this season) laptop and xbox controllers.

We believe we found the root cause when we the inner part of the USB connector fell out entirely. We will try and get this replaced by Dell under warranty.

One of our off season projects is now to find a more robust USB solution for competition play. We are considering soldering some controllers or cut-off USB extension cables to the innards of the USB connectors directly.

Does anyone else have a more robust USB connection solution?
Reply With Quote
  #8   Spotlight this post!  
Unread 24-03-2015, 12:25
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: Continual Joystick Disconnect During Match

Just an update.

We uninstalled the Thinkpad power saving software, changed the USB power settings to always on and switched to wired XBox controllers. We had zero drop outs at UNH this past weekend.
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
Reply With Quote
  #9   Spotlight this post!  
Unread 06-04-2015, 16: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: 243
BitTwiddler is on a distinguished road
Re: Continual Joystick Disconnect During Match

Quote:
Originally Posted by Kingofl337 View Post
Just an update.

We uninstalled the Thinkpad power saving software, changed the USB power settings to always on and switched to wired XBox controllers. We had zero drop outs at UNH this past weekend.
Team 1726 is having this problem also. We are using a 3 year old Lenovo Thinkpad with Windows 7 for the DS. We use two different models of Logitech gamepads (one is a dual action and the other is similar but with colored buttons). One or both will drop out together during a match but come back after an F1 rescan. We use LabView on the robot.

Sounds like the Lenovos running Windows 7 is a common configuration judging by what I read in this forum.
How did you uninstall the Thinkpad power saving software? I don't have access to the machine right now.

Last edited by BitTwiddler : 06-04-2015 at 17:02. Reason: Updated information
Reply With Quote
  #10   Spotlight this post!  
Unread 06-04-2015, 16:28
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: 5,953
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: Continual Joystick Disconnect During Match

I'll see if I can find the laptops in the back of the Suburban
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:40.

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