Go to Post Mike Wade was the Fall offseason guy. - Michael Leicht [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-01-2015, 17:37
Crossle86's Avatar
Crossle86 Crossle86 is offline
Software Engineer
AKA: Richard Corn
FRC #4450 (Olympia Robotics Federation)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Olympia, WA.
Posts: 92
Crossle86 is an unknown quantity at this point
roboRIO IP address assignment

I have observed that the roboRIO (RR) seems to remember its last assigned IP address around power off and back on. It seems reluctant to change its IP address when you change the dhcp assignment range in the router. It does change at times when you change the router starting address but other times seems to ignore the change and retain an earlier assignment.

This exploration came about because we had a case where mDNS just quit working and we were dead in the water. Looking at the deploy in Eclipse it falls back to the xx.xx.xx.2 fixed ip address if mDNS fails. So I thought it would be good to start the router dhcp at .2, so the RR would be assigned .2 and the fall back would work. But I was not able to get the RR to take an address below 20 (when it would take a new address from the router).

mDNS went back to working for no apparent reason and I'm spooked by this so getting the RR on .2 would seem to be good, unless there is a place in the eclipse plugin files where you can set the default IP used for deploy fall back.
Reply With Quote
  #2   Spotlight this post!  
Unread 13-01-2015, 18:59
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,576
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: roboRIO IP address assignment

A DHCP client (ie the roboRIO) is able to ask for a specific IP address. In this case, the roboRIO probably asked for it's old IP address, and if that address was still in the valid range, the dlink DHCP server probably assigned it. If you changed the dlink to serve a completely different range, eg 220-230, I would expect the roboRIO to change. Does this match the behavior you're seeing?

The dlink supports DHCP address reservation, where the server will always give out the same address to one device. You can read about it on page 30 of the manual: http://www.dlink.com/-/media/Consume...l_v2_10_EU.pdf
Reply With Quote
  #3   Spotlight this post!  
Unread 14-01-2015, 12:11
Crossle86's Avatar
Crossle86 Crossle86 is offline
Software Engineer
AKA: Richard Corn
FRC #4450 (Olympia Robotics Federation)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Olympia, WA.
Posts: 92
Crossle86 is an unknown quantity at this point
Re: roboRIO IP address assignment

Thanks for that. It makes sense. I did not realize DHCP allowed for the device to request a specific IP address. I will test changing the range.
Reply With Quote
  #4   Spotlight this post!  
Unread 19-01-2015, 16:22
NotInControl NotInControl is offline
Controls Engineer
AKA: Kevin
FRC #2168 (Aluminum Falcons)
Team Role: Engineer
 
Join Date: Oct 2011
Rookie Year: 2004
Location: Groton, CT
Posts: 261
NotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond repute
Re: roboRIO IP address assignment

FYI,

If you set the IP address of the RoboRio to a static IP such as 10.TE.AM.2, mDNS will still work, but all devices which do not support mDNS can use the static IP address.

If you have further networking questions there may be an answer on our controls website

Doing the above may be your optimal approach in all instances. This is exactly what I do on our team (static IP for RoboRio's).

when you state the mDNS did not work, and then worked again were you always using the same computer? For mDNS to work, the host computer must have a mDNS resolver.

At competition, the DS will be reprogramed to the FMS (using the competition bridge config utility), and I would suspect that it will change the range of the DHCP back to defaults, although I can not confirm if that is true, or if the user specified range will persist.

http://controls.team2168.org
__________________
Controls Engineer, Team 2168 - The Aluminum Falcons
[2016 Season] - World Championship Controls Award, District Controls Award, 3rd BlueBanner
-World Championship- #45 seed in Quals, World Championship Innovation in Controls Award - Curie
-NE Championship- #26 seed in Quals, winner(195,125,2168)
[2015 Season] - NE Championship Controls Award, 2nd Blue Banner
-NE Championship- #26 seed in Quals, NE Championship Innovation in Controls Award
-MA District Event- #17 seed in Quals, Winner(2168,3718,3146)
[2014 Season] - NE Championship Controls Award & Semi-finalists, District Controls Award, Creativity Award, & Finalists
-NE Championship- #36 seed in Quals, SemiFinalist(228,2168,3525), NE Championship Innovation in Controls Award
-RI District Event- #7 seed in Quals, Finalist(1519,2168,5163), Innovation in Controls Award
-Groton District Event- #9 seed in Quals, QuarterFinalist(2168, 125, 5112), Creativity Award
[2013 Season] - WPI Regional Winner - 1st Blue Banner

Last edited by NotInControl : 19-01-2015 at 16:25.
Reply With Quote
  #5   Spotlight this post!  
Unread 19-01-2015, 22:40
Crossle86's Avatar
Crossle86 Crossle86 is offline
Software Engineer
AKA: Richard Corn
FRC #4450 (Olympia Robotics Federation)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Olympia, WA.
Posts: 92
Crossle86 is an unknown quantity at this point
Re: roboRIO IP address assignment

The mDns issue has not recurred so I suspect that was my error. I am interested in setting static roboRIO ip address but I did not find where you do that in the rio config web pages. Where is this done?
Reply With Quote
  #6   Spotlight this post!  
Unread 21-01-2015, 08:41
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,752
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: roboRIO IP address assignment

If you decide to do this, the easiest way is to access the roboRIO's web page, by using the address as the URL. There is a networking tab, and it will let you configure it much like a wifi router.

But I'm not sold that you should turn it off. If you are using configurations where DHCP is not available, sure, but I don't understand why it isn't better to fix the DHCP situation.

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 21-01-2015, 13:47
Crossle86's Avatar
Crossle86 Crossle86 is offline
Software Engineer
AKA: Richard Corn
FRC #4450 (Olympia Robotics Federation)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Olympia, WA.
Posts: 92
Crossle86 is an unknown quantity at this point
Re: roboRIO IP address assignment

We seem to have solved the mdns issue as it is working fine now. I did find how to set a static IP on the roboRIO and also how to set the eclipse deployment fall back IP (to something other than .2) and even how to get dhcp to assign the .2 address to the rio. So, many ways to tinker with connection failure if it should become a problem again.

Thanks all.
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 05:25.

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