Go to Post Life is so much better when you do what you love rather than what others want you to do. - KelliV [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 03-19-2012, 03:45 PM
Willn147 Willn147 is offline
Registered User
FRC #0168
 
Join Date: Mar 2012
Location: Miami
Posts: 7
Willn147 is an unknown quantity at this point
Watchdog and Communication Issue

Hello, I am the head programmer for team 168. We have been having problems with communication. Every so offten we lose connection to the robot wirelessly. We built a test robot and are experencing the same problem. I have tried both my custom LabView code and the basic Arcade drive code that FIRST provides. We are using our own laptop this year. Any help would be apriciated. Thanks,
William Nichols
  #2   Spotlight this post!  
Unread 03-19-2012, 03:52 PM
dellagd's Avatar
dellagd dellagd is offline
Look for me on the field!
AKA: Griffin D
FRC #2590 (Nemesis) #2607 (The Fighting Robovikings)
Team Role: Mentor
 
Join Date: Sep 2011
Rookie Year: 2011
Location: PA
Posts: 890
dellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond repute
Re: Watchdog and Communication Issue

Are you using a 2CAN?
__________________
Check out some cool personal projects in computers, electronics, and RC vehicles on my blog!

2016 MAR DCMP Engineering Excellence Award
2016 MAR Westtown Innovation in Control Award
2016 MAR Hatboro-Horsham Industrial Design Award
2015 Upper Darby District Winners - Thanks 225 and 4460!
2015 Upper Darby District Industrial Design Award
2015 Hatboro-Horsham District Winners - Thanks 2590 and 5407!
2014 Virginia Regional Winners - Thanks so much 384 and 1610, I will never forget that experience!
2014 Virginia Quality Award
2014 MAR Bridgewater-Raritan Innovation in Control Award
2014 MAR Hatboro-Horsham Gracious Professionalism Award
2013 MAR Bridgewater-Raritan Innovation in Control Award
2012 MAR Lenape Quality Award
  #3   Spotlight this post!  
Unread 03-19-2012, 04:52 PM
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,112
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: Watchdog and Communication Issue

Run a WiFi sniffer program like inSSIDer, looking for other wireless networks that might be interfering with the one your robot is using.
  #4   Spotlight this post!  
Unread 03-20-2012, 03:19 PM
Willn147 Willn147 is offline
Registered User
FRC #0168
 
Join Date: Mar 2012
Location: Miami
Posts: 7
Willn147 is an unknown quantity at this point
Re: Watchdog and Communication Issue

No, we are not using 2CAN. I downloaded inSSIDer and I don't see anything that would be interfering. There are only two other Networks: hpsetup and the weak school wifi. They are both on different channels then the one that our robot is on.
  #5   Spotlight this post!  
Unread 03-20-2012, 03:34 PM
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,509
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Watchdog and Communication Issue

Is this when you have permanently deployed code to the cRio, or are you running the code from a computer?

If the latter, we've often seen this issue. It is related to the latency in your network, and may go away when you permanently deploy.

In addition, check your CPU utilization on the tab in the driver station. It will also show packet loss, and should be a good indicator of where the problem might be.
  #6   Spotlight this post!  
Unread 03-20-2012, 03:42 PM
Willn147 Willn147 is offline
Registered User
FRC #0168
 
Join Date: Mar 2012
Location: Miami
Posts: 7
Willn147 is an unknown quantity at this point
Re: Watchdog and Communication Issue

We are using deployed code, right now I am having trouble even connecting to the robot. I can see the network, but it looses connection. The CPU% is flatlining, but overall it seems a bit high (a little bit over 50%)
  #7   Spotlight this post!  
Unread 03-20-2012, 05:20 PM
the programmer's Avatar
the programmer the programmer is offline
Registered User
AKA: Erik Orlowski
FRC #2830 (Riverside Robotigers)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2006
Location: Wisconsin
Posts: 29
the programmer has much to be proud ofthe programmer has much to be proud ofthe programmer has much to be proud ofthe programmer has much to be proud ofthe programmer has much to be proud ofthe programmer has much to be proud ofthe programmer has much to be proud ofthe programmer has much to be proud of
Re: Watchdog and Communication Issue

A few things to check:
- How fast can you ping the robot (in CMD ping 10.xx.yy.2)
- If the pings are averaging more than ~4 msec then you're debugging a problem in networking, if not then you're debugging a problem with software

If it's a networking problem I would try to isolate what link is causing the problem (computer ==> DS radio, DS radio ==> robot bridge, robot bridge ==> cRio) this should get you started on diagnosing and fixing the problem.

If it's a problem with software, I would reimage the cRio making sure you have the current firmware and check to make sure the DIP switch settings are right.
__________________
2006-2008: FLL Student
2009-2014: C.O.R.E. 2062
2010-?: FLL Referee
2015-?: Riverside Robotigers 2830
  #8   Spotlight this post!  
Unread 03-20-2012, 08:19 PM
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,112
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: Watchdog and Communication Issue

Quote:
Originally Posted by Willn147 View Post
We are using deployed code, right now I am having trouble even connecting to the robot. I can see the network, but it looses connection. The CPU% is flatlining, but overall it seems a bit high (a little bit over 50%)
50% is not high. In my experience, the default LabVIEW code runs about 60%.

Let's try some basic troubleshooting. Where is the D-Link mounted? Is it next to any motors? Is it adjacent to metal? Are any speed controllers or power converters nearby? How's your wiring? Please describe specifically where the D-Link gets its power.
  #9   Spotlight this post!  
Unread 03-21-2012, 01:56 PM
Willn147 Willn147 is offline
Registered User
FRC #0168
 
Join Date: Mar 2012
Location: Miami
Posts: 7
Willn147 is an unknown quantity at this point
Re: Watchdog and Communication Issue

I pinged 10.1.68.2. All packets were received but im getting an average time of 652ms. The D-Link is wired to the power converter, which is wired to the PD. I checked the voltage coming off the Power converter and its ~5v. Its mounted on plexiglass near metal, but I pulled the D-link off the robot and it didnt change the problem. It sounds like the problem is the 652ms.
  #10   Spotlight this post!  
Unread 03-21-2012, 02:01 PM
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
Re: Watchdog and Communication Issue

We had a VERY similar problem at our school.

Our router was set to the 2.4Ghz setting, and usually it had no problems.

However, we are located next to a gym, and one day we were getting ping times ranging from 2ms to 800ms.

It turns out there was a basketball game going on in the gym, and their equipment was interfering with our router.

We switched to 5Ghz and didn't have a problem.
  #11   Spotlight this post!  
Unread 03-21-2012, 02:06 PM
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,721
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Watchdog and Communication Issue

When you lose connection, how long does it stay out?

When you lose connection, what are the status lights doing?

Is there anything common you're doing with the robot (like accelerating to full speed from stop) most of the times you lose connection?

Where on the PD board is the converter hooked up to?


Answers to all of these questions can help us to get a better idea of where the problem might be.
  #12   Spotlight this post!  
Unread 03-21-2012, 02:10 PM
Willn147 Willn147 is offline
Registered User
FRC #0168
 
Join Date: Mar 2012
Location: Miami
Posts: 7
Willn147 is an unknown quantity at this point
Re: Watchdog and Communication Issue

The main thing I am worried about is the Boca Competition next week. Is this something that will go away once we get to competition, when the D-link has it settings changed and/or there is less interference? It would be nice to test the test robot now, but it isn't essential; we can test with a cable. I’m looking into whether or not our computer has 5.00ghz capabilities.
  #13   Spotlight this post!  
Unread 03-21-2012, 02:12 PM
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
Re: Watchdog and Communication Issue

Quote:
Originally Posted by Willn147 View Post
The main thing I am worried about is the Boca Competition next week. Is this something that will go away once we get to competition, when the D-link has it settings changed and/or there is less interference? It would be nice to test the test robot now, but it isn't essential; we can test with a cable. I’m looking into whether or not our computer has 5.00ghz capabilities.
Most newer computers have 5Ghz capability.

Another thing you can try though, is move locations. If you don't still get the lag and dropped comms, then there might be interference in your location.
  #14   Spotlight this post!  
Unread 03-21-2012, 02:22 PM
Willn147 Willn147 is offline
Registered User
FRC #0168
 
Join Date: Mar 2012
Location: Miami
Posts: 7
Willn147 is an unknown quantity at this point
Re: Watchdog and Communication Issue

The connection is intermittent at best, it fully loses connection about every 30 seconds, but both the robot code and communications LED on our laptop flickers every ~.5seconds. They don’t turn off and on in unison; it seems random as far as I can tell. This is not always the case: sometimes the connection can be perfect for a while (max 2 minutes), but this is rare. I have not found any correlation between location and connection. The robot jerks from full speed to stop at the same time the communications LED turns off. There isn’t any noticeable lag in the communication, it just isn’t sending any directions when the communication breaks off. The power converter is connected to 30amp max section of the PD, and we are using a 20amp breaker. We tried connecting the D-Link to a wall socket and this didn’t change the problem, I don’t think it’s a power issue.
  #15   Spotlight this post!  
Unread 03-21-2012, 02:27 PM
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,721
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Watchdog and Communication Issue

Quote:
Originally Posted by Willn147 View Post
The power converter is connected to 30amp max section of the PD, and we are using a 20amp breaker.
This could be the issue. Connect it to the regulated 12V output on the end of the board (next to the 24V output for the cRio), instead of through a breaker.

The regulated output will continue giving 12V to the power converter until your battery hits about 4.5V. The breakers, on the other hand, simply pass through the apparent battery voltage. When you're driving your CIMs and other motors, you'll see this battery voltage will drop below 10V frequently due to the load, and when it drops low that power converter can't work properly.

I saw this exact same issue with a team up in Duluth. They pushed their robot forward full power, and comms dropped out for 30 seconds or so. We could tell from the FMS that it was the radio, and when I went to their pit that was the first thing we looked at. After fixing it, they didn't have any comm issues for the rest of the competition.
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


All times are GMT -5. The time now is 06:48 PM.

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