Go to Post FIRST for me is getting to opportunity to learn from the smartest people I know, the mentors. - faust1706 [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

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-01-2017, 09:52
onenerdyguy onenerdyguy is offline
Registered User
FRC #5929
 
Join Date: Jan 2016
Location: Lake Park, MN
Posts: 48
onenerdyguy is on a distinguished road
Static IP vs DHCP

Last year, we had a heck of a time with connectivity dropping, and not 100% sure why. Things like the camera feed via mjpg wouldn't load up reliably and the like. While I'm sure a part of it was bandwidth, I'm wondering if a part of it could be also be mdns configs vs using static IPs. I've personally never had much luck with MDNS in other projects.

Is there a concern by statically configuring IP's for myd river station, roborio, and co-processor as long as their in the correct team number subnet, i.e. 10.59.29.xx for us, 5929?
Reply With Quote
  #2   Spotlight this post!  
Unread 12-01-2017, 10:18
marshall's Avatar
marshall marshall is offline
My pants are louder than yours.
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 1,330
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: Static IP vs DHCP

Quote:
Originally Posted by onenerdyguy View Post
Last year, we had a heck of a time with connectivity dropping, and not 100% sure why. Things like the camera feed via mjpg wouldn't load up reliably and the like. While I'm sure a part of it was bandwidth, I'm wondering if a part of it could be also be mdns configs vs using static IPs. I've personally never had much luck with MDNS in other projects.

Is there a concern by statically configuring IP's for myd river station, roborio, and co-processor as long as their in the correct team number subnet, i.e. 10.59.29.xx for us, 5929?
Team 900's expert advice:

1) Use Static IPs where possible.
2) Ensure gateways and subnet masks are set correctly.
3) Ensure connectivity of vital components prior to start of the match by building a dashboard or script.
4) Don't use the words 'balls' and 'fuel' interchangeably on ChiefDelphi.*

* This one isn't strictly related and hasn't been tested yet.
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
Reply With Quote
  #3   Spotlight this post!  
Unread 12-01-2017, 10:26
ATannahill ATannahill is offline
Registered User
AKA: Alex Tannahill
no team
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Southfield, Michigan
Posts: 3,259
ATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond repute
Re: Static IP vs DHCP

There should be no concern but I would recommend telling any FTA/FTAA/CSA that is working with your robot that you intentionally set static IPs so they do not assume that you are on mDNS.

Items 2 and 3 and 4 on Marshall's list are great points.
__________________

- Arizona North
Reply With Quote
  #4   Spotlight this post!  
Unread 12-01-2017, 10:47
marshall's Avatar
marshall marshall is offline
My pants are louder than yours.
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 1,330
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: Static IP vs DHCP

Quote:
Originally Posted by ATannahill View Post
There should be no concern but I would recommend telling any FTA/FTAA/CSA that is working with your robot that you intentionally set static IPs so they do not assume that you are on mDNS.
This is also a good point. Do make sure any FTA's know what you have done if you are troubleshooting it with them.
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
Reply With Quote
  #5   Spotlight this post!  
Unread 12-01-2017, 10:55
onenerdyguy onenerdyguy is offline
Registered User
FRC #5929
 
Join Date: Jan 2016
Location: Lake Park, MN
Posts: 48
onenerdyguy is on a distinguished road
Re: Static IP vs DHCP

Awesome, that was the answer I was hoping for. I agree, mDNS was a bit premature, and as a working network professional myself, I'm not a fan of it in the first place.

Since we're a python shop, our interactions with the majority of FTA/FTAA/CSA is limited due to the non-supported nature, but it's a good thing to keep in mind.

as for #4, I'd like to put that should apply to the majority of discussions in person as well. We had a few interesting design discussions about how our robot would be good at ball handling, would store balls in a ball sack, and that we should find a way to empty the ball sack quickly and accurately with our shooter.
Reply With Quote
  #6   Spotlight this post!  
Unread 12-01-2017, 12:44
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,086
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: Static IP vs DHCP

To echo what others have said, mDNS and static IP are equally supported by FIRST, and maybe one day mDNS will actually work. But I recommend anyone doing dashboards/coprocessors/etc to use static IPs.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
Reply With Quote
  #7   Spotlight this post!  
Unread 12-01-2017, 10:36
brian5115 brian5115 is offline
Registered User
FRC #5115 (Knight Riders)
Team Role: Leadership
 
Join Date: Sep 2016
Rookie Year: 2015
Location: Maryland
Posts: 2
brian5115 is an unknown quantity at this point
Re: Static IP vs DHCP

At CHS last year we were having similar issues so we talked to an FTA that basically said she thought FIRST had switched to MDNS prematurely, and the FMS couldn't keep up with all the robots. She told us to switch to static IPs and our issues disappeared.

Just for reference, we had two Axis cameras and a Raspberry-Pi on the network in addition to the robo-RIO and driver laptop.
Reply With Quote
  #8   Spotlight this post!  
Unread 12-01-2017, 13:10
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,248
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Static IP vs DHCP

My team uses Static IP's, and have avoided a lot of problems.

Make sure you use the default addresses. I believe they are:
10.XX.YY.zz

Where XXYY is your team number

ZZ is
1 Radio
5 RoboRio
10 Driver Station
12 Camera

I'm sure if I am wrong, someone will correct me.
__________________

Reply With Quote
  #9   Spotlight this post!  
Unread 12-01-2017, 13:16
ATannahill ATannahill is offline
Registered User
AKA: Alex Tannahill
no team
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Southfield, Michigan
Posts: 3,259
ATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond repute
Re: Static IP vs DHCP

Quote:
Originally Posted by rich2202 View Post
My team uses Static IP's, and have avoided a lot of problems.

Make sure you use the default addresses. I believe they are:
10.XX.YY.zz

Where XXYY is your team number

ZZ is
1 Robot Radio
5 2 RoboRio
10 5 Driver Station
12 11 Camera

I'm sure if I am wrong, someone will correct me.
I have put in the recommended way to set static IPs and how I do it as a CSA. Other things might work.
__________________

- Arizona North
Reply With Quote
  #10   Spotlight this post!  
Unread 12-01-2017, 13:31
marshall's Avatar
marshall marshall is offline
My pants are louder than yours.
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 1,330
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: Static IP vs DHCP

Let's see if we can't resolve this properly:

https://frc-qa.firstinspires.org/qa/90
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
Reply With Quote
  #11   Spotlight this post!  
Unread 12-01-2017, 13:34
ATannahill ATannahill is offline
Registered User
AKA: Alex Tannahill
no team
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Southfield, Michigan
Posts: 3,259
ATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond reputeATannahill has a reputation beyond repute
Re: Static IP vs DHCP

Quote:
Originally Posted by marshall View Post
Let's see if we can't resolve this properly:

https://frc-qa.firstinspires.org/qa/90
Have you reviewed this?

I am all for letting teams stick with what they found has worked, I was posting what I used for reference for anyone new to setting their own static IP addresses.
__________________

- Arizona North
Reply With Quote
  #12   Spotlight this post!  
Unread 12-01-2017, 13:37
marshall's Avatar
marshall marshall is offline
My pants are louder than yours.
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 1,330
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: Static IP vs DHCP

Quote:
Originally Posted by ATannahill View Post
Have you reviewed this?

I am all for letting teams stick with what they found has worked, I was posting what I used for reference for anyone new to setting their own static IP addresses.
In fact, I had not. From that link for others to reference:

Quote:
It is also possible to configure static IPs on your devices to accommodate devices or software which do not support mDNS. When doing so you want to make sure to avoid addresses that will be in use when the robot is on the field network. These addresses are 10.TE.AM.1 and 10.TE.AM.4 for the DAP1522 radio and the field access point and anything 10.TE.AM.20 and up which may be assigned to a device still configured for DHCP. The roboRIO network configuration can be set from the webdashboard.

DAP1522 radio - Static 10.TE.AM.1 programmed by Kiosk
roboRIO - Static 10.TE.AM.2 would be a reasonable choice, subnet mask of 255.255.255.0 (default)
Driver Station - Static 10.TE.AM.5 would be a reasonable choice, subnet mask must be 255.0.0.0
IP Camera (if used) - Static 10.TE.AM.11 would be a reasonable choice, subnet 255.255.255.0 should be fine
Other devices - Static 10.TE.AM.6-.10 or .12-.19 (.11 if camera not present) subnet 255.255.255.0
I'm glad that is in screensteps with no mention of it in the manual.

EDIT: On the plus side, just threw the Q&A team a softball.
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman

Last edited by marshall : 12-01-2017 at 13:41.
Reply With Quote
  #13   Spotlight this post!  
Unread 12-01-2017, 13:44
wilsonmw04's Avatar
wilsonmw04 wilsonmw04 is offline
Coach
FRC #1086 (Blue Cheese)
Team Role: Teacher
 
Join Date: Dec 2006
Rookie Year: 2007
Location: Midlothian, VA
Posts: 1,887
wilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond repute
Re: Static IP vs DHCP

We had some interesting times trying to connect to the field at he beginning of the season. It was suggested we try a static IP by our awesome FTA and the connection problems disappeared. I so no downside to setting static IP's on your 'bots as long as you put each item in the expected range.
__________________
Currently: Coach FRC 1086/FTC 93
2006-2011 Coach FRC 2106/FTC 35
If you come to a FRC event to see a robot competition, you are missing the point.
Reply With Quote
  #14   Spotlight this post!  
Unread 12-01-2017, 15:05
scca229 scca229 is offline
FTA acquiring knowledge
AKA: Nate
FRC #0060
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2011
Location: South of Phoenix, Arizona
Posts: 222
scca229 has a spectacular aura aboutscca229 has a spectacular aura about
Re: Static IP vs DHCP

Going to just highlight this one from marshall's post.

Driver Station - Static 10.TE.AM.5 would be a reasonable choice, subnet mask must be 255.0.0.0

When there is a communication problem on a DS and they have informed me they are using static IPs, or I drag it out of them after getting the deer-in-the-headlights look when I ask, this is very often the issue. Everyone is so used to using /24 submasks (255.255.255.0) when this particular one must be a /8 (255.0.0.0). The funny thing is that most versions of Windows that I know of automatically default to a /8 when you enter a 10. IP.
__________________
Nate
Reply With Quote
  #15   Spotlight this post!  
Unread 12-01-2017, 15:27
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,383
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Static IP vs DHCP

This is one area that I have a strong opinion on.

If reliability is one of your team's goals for the season, then why take a risk on mDNS?
Yes, usually mDNS works just fine. But, I did say usually.

Why not just lock down your IPs to KNOWN values and move on.
They won't change, you know where each device is addressed, and connections on the field will JUST WORK! What more could you ask for?
Well, OK, you could ask for an easy to find guide to setting your IP's statically. Fortunately, this thread already has what you really need to know.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
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 23:52.

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