Go to Post Robot gets bored during practice, wanted to listen to some podcasts. - Tom Bottiglieri [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 Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 15-02-2014, 16:23
DiscoStarSlayer DiscoStarSlayer is offline
Registered User
AKA: Darren
FRC #2200 (MMRambotics)
Team Role: Mentor
 
Join Date: Oct 2013
Rookie Year: 2006
Location: Burlington, ON, CA
Posts: 6
DiscoStarSlayer is an unknown quantity at this point
Can't communicate with cRIO or d-link on power on

Hello,

Our team has been having this problem the entire season and now we're realizing it's going to be a problem come competition time.

When the robot boots up the WIFI comes on, and we can connect but we are having a strange problem. If we ping the router at 10.22.0.1 and the cRIO at 10.22.0.2 we get no response. If we pull the ethernet cable out of the cRIO the router responds to pings, and if we plug the cable back in we get coms with the cRIO and it stays connected till we cut the power again.

This is fairly consistent, maybe about 5% of the time this problem doesn't happen.

Things we have tried:

Set laptop to static IP 10.22.0.5 + 0.6 + 0.9 with subnets 255.0.0.0 + 255.255.255.0
Reconfigured router using bridge tool and manually
updated firmware on router
Re-flashed crio, tried different team numbers like 10.22.1.2
used a different router, tried a different cRIO

info:
Java
Windows 7
Old cRIO's

I've been debugging this thing for the entire day and I can't figure it out. Any help would be great.
  #2   Spotlight this post!  
Unread 15-02-2014, 19:44
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: Can't communicate with cRIO or d-link on power on

Those symptoms don't match anything I can think of. Is the D-Link set to AP mode?
  #3   Spotlight this post!  
Unread 15-02-2014, 23:09
RoboMo786's Avatar
RoboMo786 RoboMo786 is offline
Student - Design
AKA: Mo Baig
FRC #3538 (Avondale RoboJackets)
Team Role: CAD
 
Join Date: Feb 2014
Rookie Year: 2014
Location: Auburn Hills, MI
Posts: 30
RoboMo786 is an unknown quantity at this point
Re: Can't communicate with cRIO or d-link on power on

Try connecting directly to the cRIO and see if it's what is causing the issues. The best thing I can think of is to make sure that all of your utilities are up to date. NI-MAX is also useful in monitoring the cRIO and resetting it.

I don't know much else since I'm a rookie, but hopefully it will help.
  #4   Spotlight this post!  
Unread 16-02-2014, 08:31
MrRoboSteve MrRoboSteve is offline
Mentor
AKA: Steve Peterson
FRC #3081 (Kennedy RoboEagles)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Bloomington, MN
Posts: 582
MrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond repute
Re: Can't communicate with cRIO or d-link on power on

On your driver station computer, can you compare the results of

arp -a

When are connected and not connected?

What output do you get from ping when it is not working?
__________________
2016-17 events: 10000 Lakes Regional, Northern Lights Regional, FTC Burnsville Qualifying Tournament

2011 - present · FRC 3081 Kennedy RoboEagles mentor
2013 - present · event volunteer at 10000 Lakes Regional, Northern Lights Regional, North Star Regional, Lake Superior Regional, Minnesota State Tournament, PNW District 4 Glacier Peak, MN FTC, CMP
http://twitter.com/MrRoboSteve · www.linkedin.com/in/speterson
  #5   Spotlight this post!  
Unread 16-02-2014, 20:34
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,756
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: Can't communicate with cRIO or d-link on power on

I'd also be interested in what ARP returns. I've occasionally seen the bridge fail to forward packets to the cRIO. If you hand-configured the router, is MAC address cloning on or off? You may want to run the radio config utility again and see if that changes the symptoms.

Also, is the DLink in AP mode or bridge?

Greg McKaskle

Last edited by Greg McKaskle : 16-02-2014 at 20:34. Reason: One more
  #6   Spotlight this post!  
Unread 18-02-2014, 13:37
DiscoStarSlayer DiscoStarSlayer is offline
Registered User
AKA: Darren
FRC #2200 (MMRambotics)
Team Role: Mentor
 
Join Date: Oct 2013
Rookie Year: 2006
Location: Burlington, ON, CA
Posts: 6
DiscoStarSlayer is an unknown quantity at this point
Re: Can't communicate with cRIO or d-link on power on

Quote:
Originally Posted by MrRoboSteve View Post
On your driver station computer, can you compare the results of

arp -a

When are connected and not connected?

What output do you get from ping when it is not working?
We will try out that command thanks. Ping outputs request timeout when the connection isn't working.

The router is in AP mode as described in the instructions at http://wpilib.screenstepslive.com/s/...o-for-home-use

I'm not sure if MAC address cloning is on or off as I can't find that setting anywhere.

We have retried programming the router with the tool but the symptoms are exactly the same, and we had to downgrade the firmware on the router because the tool doesn't work with the newest firmware.
  #7   Spotlight this post!  
Unread 18-02-2014, 14:07
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: Can't communicate with cRIO or d-link on power on

Quote:
Originally Posted by DiscoStarSlayer View Post
...we had to downgrade the firmware on the router because the tool doesn't work with the newest firmware.
What is the "newest firmware"? I wasn't aware that any of the competition-legal D-Link routers came with anything other than the one they had last year.
  #8   Spotlight this post!  
Unread 18-02-2014, 19:52
DiscoStarSlayer DiscoStarSlayer is offline
Registered User
AKA: Darren
FRC #2200 (MMRambotics)
Team Role: Mentor
 
Join Date: Oct 2013
Rookie Year: 2006
Location: Burlington, ON, CA
Posts: 6
DiscoStarSlayer is an unknown quantity at this point
Re: Can't communicate with cRIO or d-link on power on

Quote:
Originally Posted by Alan Anderson View Post
What is the "newest firmware"? I wasn't aware that any of the competition-legal D-Link routers came with anything other than the one they had last year.
I downloaded it from this site when I was experiencing the issues. http://support.dlink.com/ProductInfo.aspx?m=DAP-1522

It didn't fix anything though.
  #9   Spotlight this post!  
Unread 21-02-2014, 12:15
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,600
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Can't communicate with cRIO or d-link on power on

What was the output of the arp command?
  #10   Spotlight this post!  
Unread 21-02-2014, 12:42
Joey1939's Avatar
Joey1939 Joey1939 is offline
Registered User
AKA: Joey Holliday
FRC #1939 (Kuhnigits)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Kansas City, Missouri
Posts: 144
Joey1939 has a spectacular aura aboutJoey1939 has a spectacular aura aboutJoey1939 has a spectacular aura about
Re: Can't communicate with cRIO or d-link on power on

I believe that your ip address should be 10.22.00.xxx. I don't know if the number of zeros matter, but otherwise you would have the same ip as team 220.

This would cause you to not be able to communicate with the cRIO because it is setting its own ip to 10.22.00.2. The driver station on 10.22.0.2 is on a different subnet and wouldn't be able to communicate.
  #11   Spotlight this post!  
Unread 21-02-2014, 12:43
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,600
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Can't communicate with cRIO or d-link on power on

Quote:
Originally Posted by Joey1939 View Post
I believe that your ip address should be 10.22.00.xxx. I don't know if the number of zeros matter, but otherwise you would have the same ip as team 220.
Number of zeros doesn't matter. Team 2200 is 10.22.0.X and team 220 is 10.2.20.x
  #12   Spotlight this post!  
Unread 21-02-2014, 12:57
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: Can't communicate with cRIO or d-link on power on

Quote:
Originally Posted by Joe Ross View Post
Number of zeros doesn't matter. Team 2200 is 10.22.0.X and team 220 is 10.2.20.x
Yep. This is because of some quirks in the numbering that FIRST chose to adopt and the way that IP addressing works.

Two digit teams (ie. 71) are 10.0.71.x
Three digit teams (ie. 254) are 10.2.54.x
Three digit teams where the middle digit is a zero (ie. 701) are 10.7.1.x (note the distinction from 71's IP block)
Four digit teams (ie. 4343) are 10.43.43.x
Four digit teams where the tens digit is a zero (ie. 1404) are 10.14.4.x

similarly:
254 = 10.2.54.x
2054 = 10.20.54.x
2504 = 10.25.4.x
  #13   Spotlight this post!  
Unread 26-02-2014, 02:21
DiscoStarSlayer DiscoStarSlayer is offline
Registered User
AKA: Darren
FRC #2200 (MMRambotics)
Team Role: Mentor
 
Join Date: Oct 2013
Rookie Year: 2006
Location: Burlington, ON, CA
Posts: 6
DiscoStarSlayer is an unknown quantity at this point
Re: Can't communicate with cRIO or d-link on power on

Quote:
Originally Posted by Joe Ross View Post
What was the output of the arp command?
Hello,

The arp command returned a list of devices, the IP's and MAC addresses were visible for the cRIO, Router and Laptop. Interestingly enough the router's type showed invalid which changed to dynamic when the ethernet cable from the cRIO was removed and reinserted. The laptop and cRIO are listed as static, no device shared the same MAC address.

Interestingly enough, in our troubleshooting we tried to format the cRIO with the imaging tool which failed multiple times and we couldn't get it to work for hours until we removed power from the digital and analog sidecars, then the format worked instantly. Afterwords we could not repeat our problem at all, every cold boot resulted in an instant connection. We tested powering on again multiple times with different side carts and modules and couldn't recreate the problem. The problem returned immediately after uploading our robot code to the cRIO, even if we just tried the simple robot template the problem continued.

Competition is in a few days and I am desperate for an answer of any kind, so the help is appreciated.

Thanks
  #14   Spotlight this post!  
Unread 26-02-2014, 10:01
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,906
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: Can't communicate with cRIO or d-link on power on

When the pings stop responding try this test.

Leaving the robot power alone, push the reset button on the front of the cRIO.
It'll take about 45 seconds to reboot and start your user code.
See if the pings are reconnected afterwards.

Do you have another DLink you can swap in temporarily for another test?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 26-02-2014 at 10:07.
  #15   Spotlight this post!  
Unread 26-02-2014, 11:57
DiscoStarSlayer DiscoStarSlayer is offline
Registered User
AKA: Darren
FRC #2200 (MMRambotics)
Team Role: Mentor
 
Join Date: Oct 2013
Rookie Year: 2006
Location: Burlington, ON, CA
Posts: 6
DiscoStarSlayer is an unknown quantity at this point
Re: Can't communicate with cRIO or d-link on power on

Quote:
Originally Posted by Mark McLeod View Post
When the pings stop responding try this test.

Leaving the robot power alone, push the reset button on the front of the cRIO.
It'll take about 45 seconds to reboot and start your user code.
See if the pings are reconnected afterwards.

Do you have another DLink you can swap in temporarily for another test?
Yes we used to do the soft reset on the cRIO to fix the problem every time, we just found that unplugging the ethernet cable and reinserting it took less time.

We did swap the dlink router with another and had the same issues, we have also tried swapping cRIOs
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 02:35.

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