Go to Post Robotics is fun, but it isn't the most important thing in life. - Wayne TenBrink [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 16-03-2013, 15:49
eaglesfan51520's Avatar
eaglesfan51520 eaglesfan51520 is offline
Lead Programming Mentor
AKA: Steve
FRC #1687
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2009
Location: US
Posts: 15
eaglesfan51520 is an unknown quantity at this point
Strange C++ Update Error

We are having issues with the new C++ Updates. The issue is only present while we are connected to the robot over Wi-Fi. The issue is about every 5 seconds or so a momentary dropout occurs(Robot Code Flashes Red for an instant on DS). We believe it is in the library because we recompiled our old code which did not have the issue with the new libraries and the error occured. We have been able to replicate this error on 3 different cRio(one of them being an 8-slot), both versions of the Router(Revision A and B), and also changed out all the Ethernet cables to make sure they were not causing it.

Quick Notes About Our Setup:
No Dashboard Used(Configured to Remote Dashboard in DS)
No Network Tables Calls in Code
Routers Configured Using FRC Bridge Utility to be 2.4GHz
CANJaguars controlled by 2CAN 2.0(All latest firmware IFI Jags)

Any other teams have this issues?

Last edited by eaglesfan51520 : 16-03-2013 at 15:50. Reason: added CAN info
Reply With Quote
  #2   Spotlight this post!  
Unread 16-03-2013, 18:18
Jefferson Jefferson is offline
Registered User
AKA: Jeff Clements
FRC #0016 (Bomb Squad)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Mountain Home, AR
Posts: 258
Jefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond repute
Re: Strange C++ Update Error

We were having this exact issue during the build season. We traced it back to the Rev A router. Once we switched to the Rev B router, we didn't see it again.
Double check that it does happen on the Rev B router.
Reply With Quote
  #3   Spotlight this post!  
Unread 16-03-2013, 18:25
eaglesfan51520's Avatar
eaglesfan51520 eaglesfan51520 is offline
Lead Programming Mentor
AKA: Steve
FRC #1687
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2009
Location: US
Posts: 15
eaglesfan51520 is an unknown quantity at this point
Re: Strange C++ Update Error

It was happening on both versions because I remember that the Revision B router would experience dropouts around every 5 seconds for half a second while the Revision A would dropout for about 30 seconds.

Also I would like to note that is when we first turned on the robot everything was fine. Then after about five minutes of testing(no changes) the error started happening.

Last edited by eaglesfan51520 : 16-03-2013 at 18:30. Reason: Added Information
Reply With Quote
  #4   Spotlight this post!  
Unread 16-03-2013, 21:15
Jefferson Jefferson is offline
Registered User
AKA: Jeff Clements
FRC #0016 (Bomb Squad)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Mountain Home, AR
Posts: 258
Jefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond repute
Re: Strange C++ Update Error

What mode are you in? Bridge or AP?
Reply With Quote
  #5   Spotlight this post!  
Unread 16-03-2013, 21:17
eaglesfan51520's Avatar
eaglesfan51520 eaglesfan51520 is offline
Lead Programming Mentor
AKA: Steve
FRC #1687
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2009
Location: US
Posts: 15
eaglesfan51520 is an unknown quantity at this point
Re: Strange C++ Update Error

The Switch on the Radio is in the AP 2.4GHz position.
Reply With Quote
  #6   Spotlight this post!  
Unread 16-03-2013, 21:43
Jefferson Jefferson is offline
Registered User
AKA: Jeff Clements
FRC #0016 (Bomb Squad)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Mountain Home, AR
Posts: 258
Jefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond repute
Re: Strange C++ Update Error

We run in bridge mode. Might be worth setting up another router and trying it in bridge mode. That is how you will run at the competition.
Reply With Quote
  #7   Spotlight this post!  
Unread 16-03-2013, 22:27
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Strange C++ Update Error

Do you get any output on NetConsole when the dropouts occur?
Reply With Quote
  #8   Spotlight this post!  
Unread 17-03-2013, 13:17
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: Strange C++ Update Error

The code does not know, nor does it care, whether you are using a tethered or a wireless connection. Your 30-second dropout suggests an issue with the power to the router. I've watched a Rev B router survive very brief interruptions in power -- the blue lights flicker out for a moment then come back on, and on a tethered connection nothing seems to go wrong, but the team was definitely losing connectivity at times on the field.
Reply With Quote
  #9   Spotlight this post!  
Unread 17-03-2013, 14:29
eaglesfan51520's Avatar
eaglesfan51520 eaglesfan51520 is offline
Lead Programming Mentor
AKA: Steve
FRC #1687
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2009
Location: US
Posts: 15
eaglesfan51520 is an unknown quantity at this point
Re: Strange C++ Update Error

Thanks Jefferson, we switched into bridge mode with another router and the issue got resolved.
Reply With Quote
  #10   Spotlight this post!  
Unread 17-03-2013, 14:32
eaglesfan51520's Avatar
eaglesfan51520 eaglesfan51520 is offline
Lead Programming Mentor
AKA: Steve
FRC #1687
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2009
Location: US
Posts: 15
eaglesfan51520 is an unknown quantity at this point
Re: Strange C++ Update Error

Alan we do not believe the the issue is with power. We watched the lights on both routers and on the Revision A when the dropout occurred, the only thing we saw from the router is the cRIO Ethernet light go out momentary. Also the issue was consistent across two different robots, multiple power supplies, and cRIOs.
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 14:31.

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