Go to Post Step 1. Understand the game and how to win the match and the event. - Chris Fultz [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 27-02-2010, 14:46
LyraS LyraS is offline
Registered User
FRC #2102
 
Join Date: Jan 2010
Location: California
Posts: 6
LyraS is an unknown quantity at this point
Vexing bug (possibly system watchdog related?)

We have a problem with our robot.

The symptoms are: every 30 seconds, or so, all the motors, servos and solenoids on our robot turn on and off for about 100-500 ms. This happens repeatedly over a 2-3 second interval, after which everything is fine for another 30 seconds - 1 minute (and then the whole sequence repeats).

When this "chatter" occurs, we get "Watchdog not feed" warnings on the driver station.

We get this same problem when using the out-of-the-box SimpleRobot sample code in WindRiver.

It happens with a much simpler program (<50 line and no Watchdog object instantiated at all). The program is attached.

It happens on multiple cRios.

It happens even if we raise our Task Priority to 1.

It happens if we simply set a motor running and then go into a Wait state for 10 minutes.

We've had this problem for quite a while (months) over multiple cRio image version, versions of wpilib, etc.

We are running out of ideas on debugging this. Any help would be greatly appreciated!

Thanks,

Geoff
Attached Files
File Type: cpp Source1.cpp (1.5 KB, 39 views)
Reply With Quote
  #2   Spotlight this post!  
Unread 27-02-2010, 15:17
imac256 imac256 is offline
Registered User
AKA: Ian McInerney
FRC #2022 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jun 2009
Rookie Year: 2009
Location: Aurora, IL
Posts: 30
imac256 is a glorious beacon of lightimac256 is a glorious beacon of lightimac256 is a glorious beacon of lightimac256 is a glorious beacon of lightimac256 is a glorious beacon of light
Re: Vexing bug (possibly system watchdog related?)

Does this occur over wireless or tethered operation? If it has only been tested over wireless then try tethering to see if it still persists then. What could be happening is that the network traffic is taking a long time to reach the cRIO and is causing a system Watchdog to take hold temporarily.

-Ian McInerney
Programmer, Team 2022
Reply With Quote
  #3   Spotlight this post!  
Unread 27-02-2010, 15:20
LyraS LyraS is offline
Registered User
FRC #2102
 
Join Date: Jan 2010
Location: California
Posts: 6
LyraS is an unknown quantity at this point
Re: Vexing bug (possibly system watchdog related?)

Quote:
Originally Posted by imac256 View Post
Does this occur over wireless or tethered operation? If it has only been tested over wireless then try tethering to see if it still persists then. What could be happening is that the network traffic is taking a long time to reach the cRIO and is causing a system Watchdog to take hold temporarily.

-Ian McInerney
Programmer, Team 2022
That's a good idea... I'll try that (I am running wireless).
Reply With Quote
  #4   Spotlight this post!  
Unread 27-02-2010, 16:11
LyraS LyraS is offline
Registered User
FRC #2102
 
Join Date: Jan 2010
Location: California
Posts: 6
LyraS is an unknown quantity at this point
Re: Vexing bug (possibly system watchdog related?)

That worked like charm! Thanks!
Reply With Quote
  #5   Spotlight this post!  
Unread 28-02-2010, 12:58
jalburty jalburty is offline
Joe Alburty
AKA: Joe Alburty
FRC #1763 (Paseo Pirates)
Team Role: Mentor
 
Join Date: Oct 2006
Rookie Year: 2005
Location: Kansas City
Posts: 25
jalburty will become famous soon enoughjalburty will become famous soon enough
Send a message via ICQ to jalburty
Re: Vexing bug (possibly system watchdog related?)

Now that you have it working in tethered mode. What do you plan to do for wireless?

Does anyone else suspect the router as I do?

Last edited by jalburty : 28-02-2010 at 23:16. Reason: retraction
Reply With Quote
  #6   Spotlight this post!  
Unread 02-04-2010, 20:01
Redneck's Avatar
Redneck Redneck is offline
Hacker Hick
AKA: Jamie (2.0) Moran
FRC #0599 (Robodox)
Team Role: Engineer
 
Join Date: Aug 2004
Rookie Year: 2004
Location: California
Posts: 90
Redneck is just really niceRedneck is just really niceRedneck is just really niceRedneck is just really nice
Send a message via AIM to Redneck
Re: Vexing bug (possibly system watchdog related?)

We had the exact same problem. It occurred on both wired and wireless communication. After spending an ungodly amount of time trying to debug it, we finally talked to one of the WPILib guys and he said the problem was likely the camera... apparently that task was preventing the communication task from sending data (hence the watchdog timeouts) and the only fix we had was to completely remove the camera code.
__________________


Which badges can you claim?
Reply With Quote
  #7   Spotlight this post!  
Unread 03-04-2010, 00:19
Merle Merle is offline
FRC Mentor, FLL Coach
FRC #3146 (GRUNTS)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Granby, CT
Posts: 42
Merle has a spectacular aura aboutMerle has a spectacular aura aboutMerle has a spectacular aura about
Re: Vexing bug (possibly system watchdog related?)

We had a periodic system watchdog issue (approx 4 per minute) that I finally traced down to an issue of the Classmate's power scheme (actually Intel's power saving scheme called SpeedStep). We have been programming with LabView; however, I see this as a Classmate DS/DB issue not a cRIO issue.

We would see it in wireless or tethered modes, and would see the watchdogs typically disappear when the Classmate was powered with the AC adaptor. If you see watchdog errors disappear with AC power I suggest you read more about it in this thread:
http://www.chiefdelphi.com/forums/sh...ad.php?t=84281

Merle Yoder
The GRUNTS Team #3146
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with System Watchdog JSonntag NI LabVIEW 14 20-02-2010 11:31
Hundreds of "Watchdog Expiration: System X" Errors lollypop2020 Programming 21 18-02-2010 09:52
cRIO system watchdog kamocat NI LabVIEW 2 30-10-2009 23:53
System: Watchdog problems dboisvert C/C++ 7 16-02-2009 02:36
System: Watchdog problems dboisvert C/C++ 1 15-02-2009 20:12


All times are GMT -5. The time now is 15:18.

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